# $Id: Portfile,v 1.2 2006/06/03 19:49:04 gwright Exp $

PortSystem 1.0
name		hs-Edison
set shortname	edison-core
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.

homepage	http://www.eecs.tufts.edu/~rdocki01/edison.html
master_sites	http://www.eecs.tufts.edu/~rdocki01/projects
distname	${shortname}-${version}-source

checksums	md5 e6483fd955eeb3179455e7e1de234fb4

depends_lib	port:hs-EdisonAPI
depends_build	port:ghc

pre-configure	{ cd ${worksrcpath}/edison-core
		  system "ghc -o Setup Setup.hs -package Cabal"
		}

configure	{ cd ${worksrcpath}/edison-core
		  system "./Setup configure --ghc --prefix=${prefix}"
		}

build		{ cd ${worksrcpath}/edison-core
		  system "./Setup build -v"
		}

destroot	{ cd ${worksrcpath}/edison-core
		  system "./Setup copy --copy-prefix=${destroot}${prefix}"
                }

post-activate   { cd ${worksrcpath}/edison-core
		  catch {system "./Setup unregister"}
		  system "./Setup register"
                }
 
