wok annotate psycopg/receipt @ rev 25563
Up openssh (9.3p1)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat May 06 08:42:03 2023 +0000 (18 months ago) |
parents | 76c41f0eab0e |
children |
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@25435 | 10 WEB_SITE="https://www.psycopg.org/" |
pascal@25043 | 11 WGET_URL="https://src.fedoraproject.org/repo/pkgs/python-psycopg/$TARBALL/a31f79f68d6d32898d6f24e11369a106/$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 |