# $Id$ PortSystem 1.0 name hs-EdisonAPI set shortname edison-api version 1.2.1 categories devel maintainers gwright@macports.org platforms darwin description A library of purely functional data structures for Haskell long_description \ Edison is a library of purely function data structures \ for Haskell originally written by Chris Okasaki. \ Conceptually, it consists of two things: \ \ 1. A set of type classes defining data the \ following data structure abstractions: \ sequences, collections and associative \ collections, \ 2. Multiple concrete implementations of each \ of the abstractions. # # This portfile installs the Edison API package, which defines the Edison # interface. It is a prerequisite for the installation of the Edison # package itself. # # This port downloads the same file as the Edison port, beacuse Edison # is unusually packaged, with two separate packages in the same tarball. # homepage http://www.eecs.tufts.edu/~rdocki01/edison.html master_sites http://www.eecs.tufts.edu/~rdocki01/projects distname ${shortname}-${version}-source checksums md5 b60f12ae3242b1bb4ffd9b0eb2b1cecf depends_lib port:ghc pre-configure { cd ${worksrcpath}/edison-api system "ghc -o Setup Setup.hs -package Cabal" } configure { cd ${worksrcpath}/edison-api system "./Setup configure --ghc --prefix=${prefix} --enable-library-profiling" } build { cd ${worksrcpath}/edison-api system "./Setup build -v" } destroot { cd ${worksrcpath}/edison-api 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}/edison-api/register.sh \ ${destroot}${prefix}/libexec/${name} file copy ${worksrcpath}/edison-api/unregister.sh \ ${destroot}${prefix}/libexec/${name} } post-activate { system "${prefix}/libexec/${name}/register.sh" } #pre-deactivate { system "${prefix}/libexec/${name}/unregister.sh" }