# SliTaz package receipt. PACKAGE="psycopg" VERSION="1.1.21" CATEGORY="system-tools" SHORT_DESC="PostgreSQL database adapter for the Python." MAINTAINER="pascal.bellard@slitaz.org" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="http://initd.org/" WGET_URL="http://initd.org/psycopg/tarballs/PSYCOPG-1-1/$TARBALL" DEPENDS="python egenix-mx-base libpostgresqlclient" BUILD_DEPENDS="python-dev egenix-mx-base postgresql-dev libpostgresqlclient" # Rules to configure and make the package. compile_rules() { cd $src python=python$(python --version 2>&1 | awk '{ print substr($2,0,3) }') mkdir -p _pkg/usr/lib/$python/site-packages ./configure --prefix=/usr --infodir=/usr/share/info \ --with-mxdatetime-includes=/usr/lib/$python/site-packages/mx/DateTime/mxDateTime \ --with-postgres-libraries=/usr/lib/postgresql \ --mandir=/usr/share/man $CONFIGURE_ARGS && make && install -m 555 ./psycopgmodule.so _pkg/usr/lib/$python/site-packages } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib/ cp -a $_pkg/usr $fs }