# $Id: Portfile 42538 2008-11-24 00:35:43Z gwright@macports.org $ PortSystem 1.0 name c2hs version 0.15.1 categories devel haskell maintainers gwright platforms darwin description Yet Another Interface Generator for Haskell long_description \ C->Haskell is an interface generator that simplifies \ the development of Haskell bindings to C libraries. \ The tool processes existing C header files that \ determine data layout and function signatures on the \ C side in conjunction with Haskell modules that specify \ Haskell-side type signatures and marshaling details. homepage http://www.cse.unsw.edu.au/~chak/haskell/c2hs/ master_sites ${homepage}/ checksums md5 69f99fba67419edd471b77efb0bd644f \ sha1 f690c87abf63329b6888cb2a3b8f4fb64d113150 \ rmd160 e43c39437dd3320cdb714ef2219d7bed2d25afab depends_build port:ghc universal_variant no pre-configure { system "cd ${worksrcpath} && ghc -o Setup Setup.hs -package Cabal" } configure { system "cd ${worksrcpath} && ./Setup configure --ghc --prefix=${prefix}" } build { system "cd ${worksrcpath} && ./Setup build -v" } destroot { system "cd ${worksrcpath} && ./Setup copy --copy-prefix=${destroot}${prefix}" }