wok-current annotate psycopg/receipt @ rev 16876
Up atk atk-dev (2.12.0)
author | Yuri Pourre <yuripourre@gmail.com> |
---|---|
date | Sun Jul 13 13:56:20 2014 -0300 (2014-07-13) |
parents | 80568f5b4b45 |
children | 7c0170dd3ecc |
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@15001 | 8 LICENSE="GPL2" |
pascal@1236 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@1236 | 10 WEB_SITE="http://initd.org/" |
pankso@9775 | 11 WGET_URL="http://initd.org/psycopg/tarballs/PSYCOPG-1-1/$TARBALL" |
pankso@9775 | 12 |
pascal@2456 | 13 DEPENDS="python egenix-mx-base libpostgresqlclient" |
pankso@9775 | 14 BUILD_DEPENDS="python-dev egenix-mx-base postgresql-dev libpostgresqlclient" |
pascal@1236 | 15 |
pascal@1236 | 16 # Rules to configure and make the package. |
pascal@1236 | 17 compile_rules() |
pascal@1236 | 18 { |
pascal@1236 | 19 cd $src |
pascal@1236 | 20 python=python$(python --version 2>&1 | awk '{ print substr($2,0,3) }') |
pascal@15001 | 21 mkdir -p $DESTDIR/usr/lib/$python/site-packages |
pascal@1236 | 22 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@1236 | 23 --with-mxdatetime-includes=/usr/lib/$python/site-packages/mx/DateTime/mxDateTime \ |
pascal@1514 | 24 --with-postgres-libraries=/usr/lib/postgresql \ |
pascal@1491 | 25 --mandir=/usr/share/man $CONFIGURE_ARGS && |
pascal@1491 | 26 make && |
pascal@15001 | 27 install -m 555 ./psycopgmodule.so $DESTDIR/usr/lib/$python/site-packages |
pascal@1236 | 28 } |
pascal@1236 | 29 |
pascal@1236 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1236 | 31 genpkg_rules() |
pascal@1236 | 32 { |
pascal@1259 | 33 mkdir -p $fs/usr/lib/ |
pascal@15001 | 34 cp -a $install/usr $fs |
pascal@1236 | 35 } |
pascal@1236 | 36 |