wok-next view psycopg/receipt @ rev 20916

libopenraw, abiword: update deps; boost: pack unpacked libs
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Aug 21 05:42:25 2018 +0300 (2018-08-21)
parents 408c87fa22ca
children
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 WEB_SITE="http://initd.org/"
10 REPOLOGY="python:psycopg1"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="http://initd.org/psycopg/tarballs/PSYCOPG-1-1/$TARBALL"
15 DEPENDS="python egenix-mx-base libpostgresqlclient"
16 BUILD_DEPENDS="python-dev egenix-mx-base postgresql-dev libpostgresqlclient"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
22 python=python$(python --version 2>&1 | awk '{ print substr($2,0,3) }')
23 mkdir -p $DESTDIR/usr/lib/$python/site-packages
24 ./configure --prefix=/usr --infodir=/usr/share/info \
25 --with-mxdatetime-includes=/usr/lib/$python/site-packages/mx/DateTime/mxDateTime \
26 --with-postgres-libraries=/usr/lib/postgresql \
27 --mandir=/usr/share/man $CONFIGURE_ARGS &&
28 make &&
29 install -m 555 ./psycopgmodule.so $DESTDIR/usr/lib/$python/site-packages
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/lib/
36 cp -a $install/usr $fs
37 }