# SliTaz package receipt.

PACKAGE="psycopg2"
VERSION="2.4.2"
CATEGORY="development"
SHORT_DESC="PostgreSQL database adapter for the Python."
MAINTAINER="pascal.bellard@slitaz.org"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://initd.org/psycopg/"
WGET_URL="${WEB_SITE}tarballs/PSYCOPG-2-4//$TARBALL"
DEPENDS="python egenix-mx-base libpostgresqlclient"
BUILD_DEPENDS="python-dev postgresql-dev"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	sed -i 's/,PSYCOPG_DEBUG$//' setup.cfg
	python setup.py build &&
	python setup.py install --root=$DESTDIR
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	cp -a $_pkg/usr $fs
}