packages feed

Pugs-6.2.13.3: Pugs.cabal

Name            : Pugs
Version         : 6.2.13.3
license         : BSD3
license-file    : LICENSE
cabal-version   : >= 1.2
copyright       : 2005-2008, The Pugs Contributors
maintainer      : Audrey Tang <audreyt@audreyt.org>
category        : Language, Pugs
stability       : experimental
build-type      : Simple
homepage        : http://pugscode.org/
synopsis        : A Perl 6 Implementation
description     : A Perl 6 Implementation
author          : Audrey Tang <audreyt@audreyt.org>
tested-with     : GHC
-- c-sources       : src/perl5/p5embed.c
-- hs-source-dirs  : src
-- extensions      : ForeignFunctionInterface
-- include-dirs    : /usr/local/include /opt/local/include /usr/local/lib/perl5/5.9.5/darwin-2level/CORE
extra-source-files:
    src/Pugs.hs
    src/Pugs/AST.hs
    src/Pugs/AST.hs-boot
    src/Pugs/AST/Eval.hs
    src/Pugs/AST/Internals.hs
    src/Pugs/AST/Internals.hs-boot
    src/Pugs/AST/Internals/Instances.hs
    src/Pugs/AST/Pad.hs
    src/Pugs/AST/Pos.hs
    src/Pugs/AST/Prag.hs
    src/Pugs/AST/SIO.hs
    src/Pugs/AST/Scope.hs
    src/Pugs/AST/Utils.hs
    src/Pugs/Bind.hs
    src/Pugs/Class.hs
    src/Pugs/CodeGen.hs
    src/Pugs/CodeGen/JSON.hs
    src/Pugs/CodeGen/PIL1.hs
    src/Pugs/CodeGen/PIR.hs
    src/Pugs/CodeGen/PIR/Prelude.hs
    src/Pugs/CodeGen/Perl5.hs
    src/Pugs/CodeGen/YAML.hs
    src/Pugs/Compile.hs
    src/Pugs/Compile/Pugs.hs
    src/Pugs/Config.hs
    src/Pugs/Cont.hs
    src/Pugs/Embed.hs
    src/Pugs/Embed/Haskell.hs
    src/Pugs/Embed/Parrot.hs
    src/Pugs/Embed/Perl5.hs
    src/Pugs/Embed/Pugs.hs
    src/Pugs/Eval.hs
    src/Pugs/Eval/Var.hs
    src/Pugs/Exp.hs
    src/Pugs/Exp.hs-boot
    src/Pugs/External.hs
    src/Pugs/External/Haskell.hs
    src/Pugs/Help.hs
    src/Pugs/Internals.hs
    src/Pugs/Junc.hs
    src/Pugs/Lexer.hs
    src/Pugs/Meta.hs
    src/Pugs/Meta/Class.hs
    src/Pugs/Meta/Perl5.hs
    src/Pugs/Meta/Str.hs
    src/Pugs/Monads.hs
    src/Pugs/PIL1.hs
    src/Pugs/PIL1/Instances.hs
    src/Pugs/Parser.hs
    src/Pugs/Parser.hs-boot
    src/Pugs/Parser/Charnames.hs
    src/Pugs/Parser/Doc.hs
    src/Pugs/Parser/Export.hs
    src/Pugs/Parser/Literal.hs
    src/Pugs/Parser/Number.hs
    src/Pugs/Parser/Operator.hs
    src/Pugs/Parser/Program.hs
    src/Pugs/Parser/Types.hs
    src/Pugs/Parser/Unsafe.hs
    src/Pugs/Parser/Util.hs
    src/Pugs/Prelude.hs
    src/Pugs/Pretty.hs
    src/Pugs/Prim.hs
    src/Pugs/Prim/Code.hs
    src/Pugs/Prim/Eval.hs
    src/Pugs/Prim/FileTest.hs
    src/Pugs/Prim/Keyed.hs
    src/Pugs/Prim/Lifts.hs
    src/Pugs/Prim/List.hs
    src/Pugs/Prim/Match.hs
    src/Pugs/Prim/Numeric.hs
    src/Pugs/Prim/Param.hs
    src/Pugs/Prim/Yaml.hs
    src/Pugs/Rule.hs
    src/Pugs/Run.hs
    src/Pugs/Run/Args.hs
    src/Pugs/Run/Perl5.hs
    src/Pugs/Shell.hs
    src/Pugs/Types.hs
    src/Pugs/Types/Array.hs
    src/Pugs/Types/Code.hs
    src/Pugs/Types/Handle.hs
    src/Pugs/Types/Hash.hs
    src/Pugs/Types/Object.hs
    src/Pugs/Types/Pair.hs
    src/Pugs/Types/Rule.hs
    src/Pugs/Types/Scalar.hs
    src/Pugs/Types/Thunk.hs
    src/Pugs/Val.hs
    src/Pugs/Val/Base.hs
    src/Pugs/Val/Capture.hs
    src/Pugs/Val/Code.hs
    src/Pugs/Version.hs

flag EnableReadLine
    description: Indicates System.Console.Readline is available
    default:     True

flag Optimize
    description: Enable optimizations
    default:     False

executable pugs
    main-is:            Main.hs
    hs-source-dirs:     src

    build-depends:
        base, haskell98, filepath, mtl, stm, parsec, network,
        pretty, time, random, process, containers, bytestring,
        array, directory, utf8-string,

        MetaObject       >= 0.0.4,
        HsParrot         >= 0.0.2,
        pugs-compat      >= 0.0.4,
        pugs-DrIFT       >= 2.2.3.0,
        stringtable-atom >= 0.0.4,
        HsSyck           >= 0.44
        -- HsPerl5

    if flag(EnableReadLine)
        build-depends: readline
        cpp-options: -DPUGS_HAVE_READLINE=1

    if flag(Optimize)
        ghc-options: -O2