wok view psycopg/receipt @ rev 22850

bluez: add v4 deprecated tools (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 16 19:19:37 2020 +0100 (2020-02-16)
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 }