wok-current annotate python-gevent-psycopg2/receipt @ rev 24885
updated mcabber (0.9.10 -> 1.1.2)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Apr 01 07:52:41 2022 +0100 (2022-04-01) |
parents | a78610b2eb47 |
children |
rev | line source |
---|---|
pascal@15211 | 1 # SliTaz package receipt. |
pascal@15211 | 2 |
pascal@15211 | 3 PACKAGE="python-gevent-psycopg2" |
pascal@15211 | 4 SOURCE="gevent-psycopg2" |
pascal@15211 | 5 VERSION="0.0.3" |
pascal@15211 | 6 CATEGORY="development" |
pascal@15211 | 7 SHORT_DESC="Patch psycopg2 to use gevent." |
pascal@15211 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15211 | 9 LICENSE="PublicDomain" |
pascal@15211 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@20669 | 11 WEB_SITE="https://github.com/zacharyvoase/gevent-psycopg2" |
pascal@15211 | 12 WGET_URL="https://pypi.python.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL" |
pascal@15211 | 13 |
pascal@17482 | 14 DEPENDS="psycopg2 python-gevent" |
pascal@20571 | 15 BUILD_DEPENDS="wget python-distribute python-dev python openssl" |
pascal@15211 | 16 |
pascal@24308 | 17 # What is the latest version available today? |
pascal@24308 | 18 current_version() |
pascal@24308 | 19 { |
pascal@24308 | 20 wget -O - $WEB_SITE/tags 2>/dev/null | \ |
pascal@24308 | 21 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q' |
pascal@24308 | 22 } |
pascal@24308 | 23 |
pascal@15211 | 24 # Rules to configure and make the package. |
pascal@15211 | 25 compile_rules() |
pascal@15211 | 26 { |
pascal@20620 | 27 sed -i -e 's|import sys|&\nimport ssl|' -e 's|http:|https:|' -e \ |
pascal@20620 | 28 's|.*urlopen(url|\t ssl._create_default_https_context = ssl._create_unverified_context\n&|' \ |
pascal@20620 | 29 distribute_setup.py |
pascal@15211 | 30 python setup.py build && |
pascal@15211 | 31 python setup.py install --root=$DESTDIR |
pascal@15211 | 32 } |
pascal@15211 | 33 |
pascal@15211 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@15211 | 35 genpkg_rules() |
pascal@15211 | 36 { |
pascal@15211 | 37 mkdir -p $fs |
pascal@15211 | 38 cp -a $install/usr $fs |
pascal@15211 | 39 } |