# $Id$ PortSystem 1.0 name cpphs version 1.3 categories devel maintainers gwright@macports.org platforms darwin description cpp implemented in Haskell. long_description \ cpphs is a liberalised re-implementation of cpp, \ the C pre-processor, in Haskell. homepage http://www.haskell.org/cpphs/ master_sites http://www.cs.york.ac.uk/fp/${name}/ checksums md5 fe1f36d1cbc2ca4a8b769d1f9c2f63bc depends_build port:ghc pre-configure { cd ${worksrcpath} system "ghc -o Setup Setup.hs -package Cabal" } configure { cd ${worksrcpath} system "./Setup configure --ghc --prefix=${prefix}" } build { cd ${worksrcpath} system "./Setup build -v" } destroot { cd ${worksrcpath} system "./Setup copy --copy-prefix=${destroot}${prefix}" system "./Setup register --gen-script" system "./Setup unregister --gen-script" file mkdir ${destroot}${prefix}/libexec/${name} file copy ${worksrcpath}/register.sh \ ${destroot}${prefix}/libexec/${name} file copy ${worksrcpath}/unregister.sh \ ${destroot}${prefix}/libexec/${name} } post-activate { system "${prefix}/libexec/${name}/register.sh" } #pre-deactivate { system "${prefix}/libexec/${name}/unregister.sh" }