# $Id: Portfile,v 1.1 2004/07/18 21:05:54 mww Exp $

PortSystem 1.0

name			pgsqlclient
version			1.0-Beta6
categories		databases
platforms		darwin
maintainers		mww@opendarwin.org
description		ADO.NET adapter for PostgreSQL 
long_description	${description}

homepage		http://pgsqlclient.sourceforge.net/
master_sites	sourceforge
distname		PgSqlClient-${version}-Src
checksums		md5 3cf510e3443ff2987104caba30c341ce
use_zip			yes
patchfiles		patch-makefile.diff

depends_lib		bin:mono:mono

worksrcdir		pgsqlclient_10

use_configure	no

destroot	{
	xinstall -m 755 -d ${destroot}${prefix}/lib/pgsqlclient/
	xinstall -m 644 -W ${worksrcpath}/build \
		PostgreSql.Data.PgSqlClient.UnitTests.dll \
		PostgreSql.Data.PgSqlClient.UnitTests.dll.config \
		PostgreSql.Data.PgSqlClient.dll \
		${destroot}${prefix}/lib/pgsqlclient
}

post-install	{
	system "cd ${prefix}/lib/pgsqlclient/ \
		&& ${prefix}/bin/gacutil -i PostgreSql.Data.PgSqlClient.dll"
}
