# $Id: Portfile 50980 2009-05-14 19:41:55Z and.damore@macports.org $

PortSystem 1.0
PortGroup python24 1.0

name			py-psycopg2
version			2.0.5.1
categories		python databases
maintainers		landonf
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/ \
			http://initd.org/pub/software/psycopg/PSYCOPG-2-0/
distname		psycopg2-${version}
checksums		md5 052e4b97dab47708fdcdc36ffb25af66

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
}
