# SliTaz package receipt. PACKAGE="python-gevent-psycopg2" SOURCE="gevent-psycopg2" VERSION="0.0.3" CATEGORY="development" SHORT_DESC="Patch psycopg2 to use gevent." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="PublicDomain" TARBALL="$SOURCE-$VERSION.tar.gz" WEB_SITE="https://github.com/zacharyvoase/gevent-psycopg2" WGET_URL="https://pypi.python.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL" DEPENDS="psycopg2 python-gevent" BUILD_DEPENDS="wget python-distribute python-dev python openssl" # What is the latest version available today? current_version() { wget -O - $WEB_SITE/tags 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { sed -i -e 's|import sys|&\nimport ssl|' -e 's|http:|https:|' -e \ 's|.*urlopen(url|\t ssl._create_default_https_context = ssl._create_unverified_context\n&|' \ distribute_setup.py python setup.py build && python setup.py install --root=$DESTDIR } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs cp -a $install/usr $fs }