wok view psycopg/receipt @ rev 12164

Moved cgi-bin files to slitaz-base-files (They can be used by any CGI compliant webserver not only BB httpd applet)
author Christophe Lincoln <pankso@slitaz.org>
date Sun Mar 18 00:54:36 2012 +0100 (2012-03-18)
parents d1aba649375c
children 408c87fa22ca
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="http://initd.org/psycopg/tarballs/PSYCOPG-1-1/$TARBALL"
12 DEPENDS="python egenix-mx-base libpostgresqlclient"
13 BUILD_DEPENDS="python-dev egenix-mx-base postgresql-dev libpostgresqlclient"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 python=python$(python --version 2>&1 | awk '{ print substr($2,0,3) }')
20 mkdir -p _pkg/usr/lib/$python/site-packages
21 ./configure --prefix=/usr --infodir=/usr/share/info \
22 --with-mxdatetime-includes=/usr/lib/$python/site-packages/mx/DateTime/mxDateTime \
23 --with-postgres-libraries=/usr/lib/postgresql \
24 --mandir=/usr/share/man $CONFIGURE_ARGS &&
25 make &&
26 install -m 555 ./psycopgmodule.so _pkg/usr/lib/$python/site-packages
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/lib/
33 cp -a $_pkg/usr $fs
34 }