PortSystem 1.0

name			pgsqlclient
version			1.0-Beta6
categories		databases
license			LGPL-2.1+
platforms		darwin
maintainers		nomaintainer
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		port:mono

worksrcdir		pgsqlclient_10

use_configure	no

use_parallel_build	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"
}