# $Id: Portfile,v 1.1 2006/02/27 19:02:23 mww Exp $

PortSystem 1.0
PortGroup python24 1.0

name			py-pygresql
version			3.8
categories		python databases
platforms		darwin
maintainers		mww@opendarwin.org
description		Python module that interfaces to a PostgreSQL database
long_description	PyGreSQL is an open-source  Python module that interfaces \
			to a PostgreSQL database. It embeds the PostgreSQL query library \
			to allow easy use of the powerful PostgreSQL features from a \
			Python script.

homepage		http://www.pygresql.org/
master_sites	ftp://ftp.pygresql.org/pub/distrib/ freebsd
distname		PyGreSQL-${version}
extract.suffix	.tgz
checksums		sha1 ca54ae51824ba86f4d70607d1cfcb8f51874d7a5

depends_lib-append	port:postgresql8

patch {
	reinplace "s|\"pg_config|\"${prefix}/lib/pgsql8/bin/pg_config|g" \
		${worksrcpath}/setup.py
}

post-destroot	{
	xinstall -m 644 -W ${worksrcpath} changelog.txt announce.txt README \
		${destroot}${prefix}/share/doc/${name}
}

