# $Id: Portfile,v 1.2 2006/06/03 19:49:37 gwright Exp $ PortSystem 1.0 name hs-EdisonAPI set shortname edison-api version 1.2 categories devel maintainers gwright@opendarwin.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 f07dd6557dfceb18d5616b29d13466b8 depends_build 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}" } build { cd ${worksrcpath}/edison-api system "./Setup build -v" } destroot { cd ${worksrcpath}/edison-api system "./Setup copy --copy-prefix=${destroot}${prefix}" } post-activate { cd ${worksrcpath}/edison-api catch {system "./Setup unregister"} system "./Setup register" }