wok-current view psycopg/receipt @ rev 19635
Up SliTaz projects: cookutils(867), slitaz-base-files(321), slitaz-boot-scripts(437), slitaz-tools(1009), tazbug(95), tazirc(20), tazlito(448), tazpkg(933).
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Jan 17 17:38:43 2017 +0200 (2017-01-17) |
parents | 80568f5b4b45 |
children | 7c0170dd3ecc |
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 }