1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | set parsec parsec |
---|
6 | set hackage http://hackage.haskell.org |
---|
7 | |
---|
8 | name hs-${parsec} |
---|
9 | version 3.0.0 |
---|
10 | categories devel haskell |
---|
11 | maintainers cs.wm.edu:mpd |
---|
12 | description Monadic parser combinators for Haskell |
---|
13 | long_description Parsec is designed from scratch as an industrial-strength \ |
---|
14 | parser library. It is simple, safe, well documented, has \ |
---|
15 | extensive libraries and good error messages, and is also \ |
---|
16 | fast. It is defined as a monad transformer that can be \ |
---|
17 | stacked on arbitrary monads, and it is also parametric \ |
---|
18 | in the input stream type. |
---|
19 | homepage http://www.cs.uu.nl/~daan/parsec.html |
---|
20 | platforms darwin |
---|
21 | master_sites ${hackage}/packages/archive/${parsec}/${version} |
---|
22 | |
---|
23 | checksums md5 491350a185f0fa1f2d5bc7fb4862d0ca \ |
---|
24 | sha1 169f9d024bcefed6640656ef93ba697e9980ef8a \ |
---|
25 | rmd160 22e8bc558b0a539bdb179d00fa1b7780e1f2fd19 |
---|
26 | distname ${parsec}-${version} |
---|
27 | |
---|
28 | depends_build port:ghc |
---|
29 | |
---|
30 | set libexec ${destroot}${prefix}/libexec |
---|
31 | set parsecexec ${libexec}/${name} |
---|
32 | |
---|
33 | configure { |
---|
34 | system "cd ${worksrcpath} && runhaskell Setup configure --ghc --prefix=${prefix} --with-compiler=${prefix}/bin/ghc --enable-library-profiling" |
---|
35 | } |
---|
36 | |
---|
37 | build { |
---|
38 | system "cd ${worksrcpath} && runhaskell Setup build -v" |
---|
39 | } |
---|
40 | |
---|
41 | destroot { |
---|
42 | system "cd ${worksrcpath} && runhaskell Setup copy --copy-prefix=${destroot}${prefix}" |
---|
43 | system "cd ${worksrcpath} && runhaskell Setup register --gen-script" |
---|
44 | system "cd ${worksrcpath} && runhaskell Setup unregister --gen-script" |
---|
45 | |
---|
46 | file mkdir ${parsecexec} |
---|
47 | file copy ${worksrcpath}/register.sh ${parsecexec} |
---|
48 | file copy ${worksrcpath}/unregister.sh ${parsecexec} |
---|
49 | } |
---|
50 | |
---|
51 | post-activate { |
---|
52 | system "${parsecexec}/register.sh" |
---|
53 | } |
---|