wok-next view psycopg/receipt @ rev 1872
tls: Fix DEPENDS & BUILD_DEPENDS.
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Tue Dec 16 22:58:17 2008 +0100 (2008-12-16) |
parents | 4c400bd09135 |
children | 5206f65a4f05 |
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 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://initd.org/"
10 WGET_URL="${WEB_SITE}pub/software/$PACKAGE/$TARBALL"
11 DEPENDS="python egenix-mx-base"
12 BUILD_DEPENDS="python python-dev egenix-mx-base postgresql-dev libpostgresqlclient"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 python=python$(python --version 2>&1 | awk '{ print substr($2,0,3) }')
19 mkdir -p _pkg/usr/lib/$python/site-packages
20 ./configure --prefix=/usr --infodir=/usr/share/info \
21 --with-mxdatetime-includes=/usr/lib/$python/site-packages/mx/DateTime/mxDateTime \
22 --with-postgres-libraries=/usr/lib/postgresql \
23 --mandir=/usr/share/man $CONFIGURE_ARGS &&
24 make &&
25 install -m 555 ./psycopgmodule.so _pkg/usr/lib/$python/site-packages
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr/lib/
32 cp -a $_pkg/usr $fs
33 ln -s /usr/lib/postgresql/libpq.so.5 $fs/usr/lib/libpq.so.5
34 }