wok-6.x view psycopg/receipt @ rev 10877
thunderbird-langpack-*: Fixed all thunderbird langpacks paths.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Thu Jun 23 21:57:48 2011 +0000 (2011-06-23) |
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 }