wok annotate psycopg/receipt @ rev 1491
Update BUILD_DEPENDS for bogofilter ecore gimp graphviz hydra libgnomeprintui mesa mjpegtools poppler psycopg
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Oct 05 12:58:12 2008 +0000 (2008-10-05) |
parents | f26c2960d00b |
children | 52dc4b48ed81 |
rev | line source |
---|---|
pascal@1236 | 1 # SliTaz package receipt. |
pascal@1236 | 2 |
pascal@1236 | 3 PACKAGE="psycopg" |
pascal@1236 | 4 VERSION="1.1.21" |
pascal@1236 | 5 CATEGORY="system-tools" |
pascal@1236 | 6 SHORT_DESC="PostgreSQL database adapter for the Python." |
pascal@1236 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@1236 | 8 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@1236 | 9 WEB_SITE="http://initd.org/" |
pascal@1236 | 10 WGET_URL="${WEB_SITE}pub/software/$PACKAGE/$TARBALL" |
pascal@1236 | 11 DEPENDS="python egenix-mx-base" |
pascal@1491 | 12 BUILD_DEPENDS="python python-dev egenix-mx-base postgresql-dev" |
pascal@1236 | 13 |
pascal@1236 | 14 # Rules to configure and make the package. |
pascal@1236 | 15 compile_rules() |
pascal@1236 | 16 { |
pascal@1236 | 17 cd $src |
pascal@1236 | 18 python=python$(python --version 2>&1 | awk '{ print substr($2,0,3) }') |
pascal@1491 | 19 mkdir -p _pkg/usr/lib/$python/site-packages |
pascal@1236 | 20 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@1236 | 21 --with-mxdatetime-includes=/usr/lib/$python/site-packages/mx/DateTime/mxDateTime \ |
pascal@1491 | 22 --mandir=/usr/share/man $CONFIGURE_ARGS && |
pascal@1491 | 23 make && |
pascal@1236 | 24 install -m 555 ./psycopgmodule.so _pkg/usr/lib/$python/site-packages |
pascal@1236 | 25 } |
pascal@1236 | 26 |
pascal@1236 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1236 | 28 genpkg_rules() |
pascal@1236 | 29 { |
pascal@1259 | 30 mkdir -p $fs/usr/lib/ |
pascal@1236 | 31 cp -a $_pkg/usr $fs |
pascal@1259 | 32 ln -s /usr/lib/postgresql/libpq.so.5 $fs/usr/lib/libpq.so.5 |
pascal@1236 | 33 } |
pascal@1236 | 34 |