wok-next view psycopg/receipt @ rev 16667
Add mlvpn
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed May 14 11:22:33 2014 +0000 (2014-05-14) |
parents | 80568f5b4b45 |
children | 4e6503d7a19f |
line source
1 # SliTaz package receipt.
3 PACKAGE="psycopg"
4 VERSION="1.1.21"
5 CATEGORY="system-tools"
6 SHORT_DESC="PostgreSQL database adapter for the Python."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://initd.org/"
11 WGET_URL="http://initd.org/psycopg/tarballs/PSYCOPG-1-1/$TARBALL"
13 DEPENDS="python egenix-mx-base libpostgresqlclient"
14 BUILD_DEPENDS="python-dev egenix-mx-base postgresql-dev libpostgresqlclient"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 python=python$(python --version 2>&1 | awk '{ print substr($2,0,3) }')
21 mkdir -p $DESTDIR/usr/lib/$python/site-packages
22 ./configure --prefix=/usr --infodir=/usr/share/info \
23 --with-mxdatetime-includes=/usr/lib/$python/site-packages/mx/DateTime/mxDateTime \
24 --with-postgres-libraries=/usr/lib/postgresql \
25 --mandir=/usr/share/man $CONFIGURE_ARGS &&
26 make &&
27 install -m 555 ./psycopgmodule.so $DESTDIR/usr/lib/$python/site-packages
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/lib/
34 cp -a $install/usr $fs
35 }