ports/opt (3.2): six: update to bootstrap
commit ad6e81b57626b021f1121bb9aec2889d731d7567 Author: Danny Rawlins <monster.romster@gmail.com> Date: Sat Feb 4 01:19:59 2017 +1100 six: update to bootstrap diff --git a/six/.md5sum b/six/.md5sum index 1b49c44..c0faf41 100644 --- a/six/.md5sum +++ b/six/.md5sum @@ -1 +1,2 @@ +3b74f5cd0740a05802a23b019ce579a3 get-pip.py 34eed507548117b2ab523ab14b2f8b55 six-1.10.0.tar.gz diff --git a/six/Pkgfile b/six/Pkgfile index f609564..488191c 100644 --- a/six/Pkgfile +++ b/six/Pkgfile @@ -1,15 +1,32 @@ # Description: Python compatibility utilities. -# URL: http://pypi.python.org/pypi/six/ +# URL: https://pypi.python.org/pypi/six/ # Maintainer: Danny Rawlins, crux at romster dot me # Packager: Danny Rawlins, crux at romster dot me -# Depends on: setuptools +# Depends on: python name=six version=1.10.0 -release=1 -source=(http://pypi.python.org/packages/source/s/$name/$name-$version.tar.gz) +release=2 +source=(https://pypi.python.org/packages/b3/b2/238e2590826bfdd113244a40d9d3eb26918bd... + https://bootstrap.pypa.io/get-pip.py) build() { cd $name-$version - /usr/bin/python setup.py install --root=$PKG --optimize=1 + + if [ -z "$(pkginfo -i | egrep '^setuptools ')" ]; then + install -d build + /usr/bin/python $SRC/get-pip.py --root=$SRC/build + + PYTHONPATH=$SRC/build/usr/lib/python2.7/site-packages \ + /usr/bin/python setup.py build + + PYTHONPATH=$SRC/build/usr/lib/python2.7/site-packages \ + /usr/bin/python setup.py install \ + --prefix=/usr --root=$PKG --optimize=1 + else + /usr/bin/python setup.py build + + /usr/bin/python setup.py install \ + --prefix=/usr --root=$PKG --optimize=1 + fi }
participants (1)
-
crux@crux.nu