wok-next rev 20727

python-gevent-psycopg2: fix error "urllib2.HTTPError: HTTP Error 403: SSL is required"
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon May 28 15:32:33 2018 +0300 (2018-05-28)
parents dba6ebc9b925
children db1d1b071346
files python-gevent-psycopg2/receipt
line diff
     1.1 --- a/python-gevent-psycopg2/receipt	Mon May 28 15:07:14 2018 +0300
     1.2 +++ b/python-gevent-psycopg2/receipt	Mon May 28 15:32:33 2018 +0300
     1.3 @@ -1,29 +1,27 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="python-gevent-psycopg2"
     1.8  SOURCE="gevent-psycopg2"
     1.9  VERSION="0.0.3"
    1.10  CATEGORY="development"
    1.11 -SHORT_DESC="Patch psycopg2 to use gevent."
    1.12 +SHORT_DESC="Patch psycopg2 to use gevent"
    1.13  MAINTAINER="pascal.bellard@slitaz.org"
    1.14  LICENSE="PublicDomain"
    1.15 +WEB_SITE="http://github.com/zacharyvoase/gevent-psycopg2"
    1.16 +
    1.17  TARBALL="$SOURCE-$VERSION.tar.gz"
    1.18 -WEB_SITE="http://github.com/zacharyvoase/gevent-psycopg2"
    1.19  WGET_URL="https://pypi.python.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
    1.20  
    1.21 -DEPENDS="psycopg2 python-gevent"
    1.22  BUILD_DEPENDS="python-distribute python-dev python openssl"
    1.23  
    1.24 -# Rules to configure and make the package.
    1.25 -compile_rules()
    1.26 -{
    1.27 +compile_rules() {
    1.28 +	sed -i 's|http:|https:|' distribute_setup.py
    1.29 +
    1.30  	python setup.py build &&
    1.31  	python setup.py install --root=$DESTDIR
    1.32  }
    1.33  
    1.34 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.35 -genpkg_rules()
    1.36 -{
    1.37 -	mkdir -p $fs
    1.38 -	cp -a $install/usr $fs
    1.39 +genpkg_rules() {
    1.40 +	copy @std
    1.41 +	DEPENDS="psycopg2 python-gevent"
    1.42  }