wok annotate psycopg/receipt @ rev 25002

updated nrg2iso (0.4 -> 0.4.1)
author Hans-G?nter Theisgen
date Mon May 16 14:45:30 2022 +0100 (2022-05-16)
parents 408c87fa22ca
children 76c41f0eab0e
rev   line source
pascal@1236 1 # SliTaz package receipt.
pascal@1236 2
pascal@1236 3 PACKAGE="psycopg"
pascal@1236 4 VERSION="1.1.21"
pascal@1236 5 CATEGORY="system-tools"
pascal@1236 6 SHORT_DESC="PostgreSQL database adapter for the Python."
pascal@1236 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15001 8 LICENSE="GPL2"
pascal@1236 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@1236 10 WEB_SITE="http://initd.org/"
pankso@9775 11 WGET_URL="http://initd.org/psycopg/tarballs/PSYCOPG-1-1/$TARBALL"
pankso@9775 12
pascal@2456 13 DEPENDS="python egenix-mx-base libpostgresqlclient"
pankso@9775 14 BUILD_DEPENDS="python-dev egenix-mx-base postgresql-dev libpostgresqlclient"
pascal@1236 15
pascal@24535 16 # What is the latest version available today?
pascal@24535 17 current_version()
pascal@24535 18 {
pascal@24535 19 wget -O - https://pypi.org/project/psycopg2/ 2>/dev/null | \
pascal@24535 20 sed '/psycopg2 [0-9]/!d;s|.*g2.||'
pascal@24535 21 }
pascal@24535 22
pascal@1236 23 # Rules to configure and make the package.
pascal@1236 24 compile_rules()
pascal@1236 25 {
pascal@1236 26 cd $src
pascal@1236 27 python=python$(python --version 2>&1 | awk '{ print substr($2,0,3) }')
pascal@15001 28 mkdir -p $DESTDIR/usr/lib/$python/site-packages
pascal@1236 29 ./configure --prefix=/usr --infodir=/usr/share/info \
pascal@1236 30 --with-mxdatetime-includes=/usr/lib/$python/site-packages/mx/DateTime/mxDateTime \
pascal@1514 31 --with-postgres-libraries=/usr/lib/postgresql \
pascal@1491 32 --mandir=/usr/share/man $CONFIGURE_ARGS &&
pascal@1491 33 make &&
pascal@15001 34 install -m 555 ./psycopgmodule.so $DESTDIR/usr/lib/$python/site-packages
pascal@1236 35 }
pascal@1236 36
pascal@1236 37 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1236 38 genpkg_rules()
pascal@1236 39 {
pascal@1259 40 mkdir -p $fs/usr/lib/
pascal@15001 41 cp -a $install/usr $fs
pascal@1236 42 }
pascal@1236 43