Ticket #17924: Portfile.diff
File Portfile.diff, 2.1 KB (added by mdippery@…, 16 years ago) |
---|
-
Portfile
old new 1 1 # $Id$ 2 2 3 3 PortSystem 1.0 4 PortGroup haskell 1.0 5 haskell.setup parsec 3.0.0 4 6 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 7 maintainers gmail.com:mdippery 12 8 description Monadic parser combinators for Haskell 13 9 long_description Parsec is designed from scratch as an industrial-strength \ 14 10 parser library. It is simple, safe, well documented, has \ … … 16 12 fast. It is defined as a monad transformer that can be \ 17 13 stacked on arbitrary monads, and it is also parametric \ 18 14 in the input stream type. 19 homepage http://www.cs.uu.nl/~daan/parsec.html 15 20 16 platforms darwin 21 master_sites ${hackage}/packages/archive/${parsec}/${version}22 17 23 18 checksums md5 491350a185f0fa1f2d5bc7fb4862d0ca \ 24 19 sha1 169f9d024bcefed6640656ef93ba697e9980ef8a \ 25 20 rmd160 22e8bc558b0a539bdb179d00fa1b7780e1f2fd19 26 distname ${parsec}-${version}27 28 depends_build port:ghc29 30 set libexec ${destroot}${prefix}/libexec31 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 }