# $Id: Portfile,v 1.1 2006/04/19 14:34:01 gwright Exp $

PortSystem 1.0

name	        gtk2hs	
version		0.9.10
categories	devel graphics 
platforms	darwin
maintainers	gwright@opendarwin.org

description	portable and native GUI library for Haskell
long_description	\
		gtk2hs is a Haskell binding to GTK, a comprehensive	\
		C GUI library that is portable across many platforms.

homepage	http://www.haskell.org/gtk2hs
master_sites	sourceforge

extract.suffix	.tar.gz
checksums	md5	13d300e07153f37ba5893ac336b078bc		\
		sha1	7f1632923e18af7cbbd0b6fe566841658960dfd0	\
		rmd160	2b0a5275b43c0b22588028ba7944622ff08fbbb6

depends_build	bin:ghc:ghc
depends_lib	port:gtk2	\
		port:cairo	\
		port:pango	\
		port:libglade2 

configure.args	--without-pkgreg

# Note that the order of package registration is important: certain
# packages must be register before the packages that depend on them.

post-activate	{ set pkgs {glib gtk cairo gconf glade mogul}
		  foreach pkg ${pkgs} {
			system "ghc-pkg update ${destroot}${prefix}/lib/${name}/${pkg}.package.conf"
		  }
		}
