# HG changeset patch # User Pascal Bellard # Date 1218452490 0 # Node ID ba4505d50c3ef627bd6f8452fb80234c30933d24 # Parent 4ddb71955a8ef5d0c238807a662ae3863ed50ef3 Add psycopg diff -r 4ddb71955a8e -r ba4505d50c3e psycopg/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/psycopg/receipt Mon Aug 11 11:01:30 2008 +0000 @@ -0,0 +1,32 @@ +# 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="${WEB_SITE}pub/software/$PACKAGE/$TARBALL" +DEPENDS="python egenix-mx-base" +BUILD_DEPENDS="python python-dev egenix-mx-base" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + python=python$(python --version 2>&1 | awk '{ print substr($2,0,3) }') + ./configure --prefix=/usr --infodir=/usr/share/info \ + --with-mxdatetime-includes=/usr/lib/$python/site-packages/mx/DateTime/mxDateTime \ + --mandir=/usr/share/man $CONFIGURE_ARGS + make + mkdir -p _pkg/usr/lib/$python/site-packages + install -m 555 ./psycopgmodule.so _pkg/usr/lib/$python/site-packages +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + cp -a $_pkg/usr $fs +} +