# $Id: Portfile,v 1.1 2006/06/23 01:45:32 landonf Exp $

PortSystem 1.0
PortGroup python24 1.0

name			py-psycopg2
version			2.0.2
categories		python databases
maintainers		landonf@opendarwin.org
platforms		darwin freebsd
description		A python DBAPI-2.0 ompliant database adapter for postgresql
long_description	Psycopg2 is a postgresql database adapter for python. \
			It's fully compliant to pythons DBAPI-2.0. psycopg is \
			designed for heavily multi-threaded applications \
			featuring connection pooling.

homepage		http://www.initd.org/software/initd/psycopg/
master_sites		http://initd.org/pub/software/psycopg/
distname		psycopg2-${version}
checksums		md5 6c056b261782c51f53ceccbf86c08749

depends_lib		port:postgresql81 \
			port:python24 \
			port:openssl

patchfiles		patch-setup.cfg

post-patch		{
	reinplace \
		s|@PG_CONFIG@|${prefix}/lib/postgresql81/bin/pg_config|g \
		${worksrcpath}/setup.cfg
}
