wok rev 1236

Add psycopg
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Aug 11 11:01:30 2008 +0000 (2008-08-11)
parents 4ddb71955a8e
children a5ba7645753a
files psycopg/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/psycopg/receipt	Mon Aug 11 11:01:30 2008 +0000
     1.3 @@ -0,0 +1,32 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="psycopg"
     1.7 +VERSION="1.1.21"
     1.8 +CATEGORY="system-tools"
     1.9 +SHORT_DESC="PostgreSQL database adapter for the Python."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.12 +WEB_SITE="http://initd.org/"
    1.13 +WGET_URL="${WEB_SITE}pub/software/$PACKAGE/$TARBALL"
    1.14 +DEPENDS="python egenix-mx-base"
    1.15 +BUILD_DEPENDS="python python-dev egenix-mx-base"
    1.16 +
    1.17 +# Rules to configure and make the package.
    1.18 +compile_rules()
    1.19 +{
    1.20 +	cd $src
    1.21 +	python=python$(python --version 2>&1 | awk '{ print substr($2,0,3) }')
    1.22 +	./configure --prefix=/usr --infodir=/usr/share/info \
    1.23 +	--with-mxdatetime-includes=/usr/lib/$python/site-packages/mx/DateTime/mxDateTime \
    1.24 +	--mandir=/usr/share/man $CONFIGURE_ARGS
    1.25 +	make
    1.26 +	mkdir -p _pkg/usr/lib/$python/site-packages
    1.27 +	install -m 555 ./psycopgmodule.so _pkg/usr/lib/$python/site-packages
    1.28 +}
    1.29 +
    1.30 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.31 +genpkg_rules()
    1.32 +{
    1.33 +	cp -a $_pkg/usr $fs
    1.34 +}
    1.35 +