wok-current view psycopg/receipt @ rev 15001

Add some GPL2 licenses
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Aug 10 17:48:05 2013 +0000 (2013-08-10)
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 }