wok-next annotate psycopg/receipt @ rev 11537
webkit-r: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Dec 25 11:20:38 2011 +0100 (2011-12-25) |
parents | d1aba649375c |
children | 408c87fa22ca |
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/" |
pankso@9775 | 10 WGET_URL="http://initd.org/psycopg/tarballs/PSYCOPG-1-1/$TARBALL" |
pankso@9775 | 11 |
pascal@2456 | 12 DEPENDS="python egenix-mx-base libpostgresqlclient" |
pankso@9775 | 13 BUILD_DEPENDS="python-dev egenix-mx-base postgresql-dev libpostgresqlclient" |
pascal@1236 | 14 |
pascal@1236 | 15 # Rules to configure and make the package. |
pascal@1236 | 16 compile_rules() |
pascal@1236 | 17 { |
pascal@1236 | 18 cd $src |
pascal@1236 | 19 python=python$(python --version 2>&1 | awk '{ print substr($2,0,3) }') |
pascal@1491 | 20 mkdir -p _pkg/usr/lib/$python/site-packages |
pascal@1236 | 21 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@1236 | 22 --with-mxdatetime-includes=/usr/lib/$python/site-packages/mx/DateTime/mxDateTime \ |
pascal@1514 | 23 --with-postgres-libraries=/usr/lib/postgresql \ |
pascal@1491 | 24 --mandir=/usr/share/man $CONFIGURE_ARGS && |
pascal@1491 | 25 make && |
pascal@1236 | 26 install -m 555 ./psycopgmodule.so _pkg/usr/lib/$python/site-packages |
pascal@1236 | 27 } |
pascal@1236 | 28 |
pascal@1236 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1236 | 30 genpkg_rules() |
pascal@1236 | 31 { |
pascal@1259 | 32 mkdir -p $fs/usr/lib/ |
pascal@1236 | 33 cp -a $_pkg/usr $fs |
pascal@1236 | 34 } |
pascal@1236 | 35 |