diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-09-19 00:19:31 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-09-19 00:34:37 +0200 |
commit | 1bcc1c32c60e1cd8870e149e5b99e1c761b1d999 (patch) | |
tree | 0cbd3896e643a2b64301d23e62595df324325de8 /main | |
parent | f90ea68f3166bcae943dbac8c51ab4055a7a17f3 (diff) | |
download | aports-1bcc1c32c60e1cd8870e149e5b99e1c761b1d999.tar.bz2 aports-1bcc1c32c60e1cd8870e149e5b99e1c761b1d999.tar.xz |
main/py-werkzeug: update to 0.11.11 and add py2/py3 subpackages
Diffstat (limited to 'main')
-rw-r--r-- | main/py-werkzeug/APKBUILD | 61 |
1 files changed, 35 insertions, 26 deletions
diff --git a/main/py-werkzeug/APKBUILD b/main/py-werkzeug/APKBUILD index acb9cc44db..cf1d849d8e 100644 --- a/main/py-werkzeug/APKBUILD +++ b/main/py-werkzeug/APKBUILD @@ -1,40 +1,49 @@ # Contributor: William Pitcock <nenolod@dereferenced.org> # Maintainer: Eivind Uggedal <eivind@uggedal.com> pkgname=py-werkzeug -pkgver=0.9.6 +_pkgname=Werkzeug +pkgver=0.11.11 pkgrel=0 pkgdesc="The WSGI swiss-army knife" -url="http://pypi.python.org/pypi/Werkzeug" +url="http://werkzeug.pocoo.org/" arch="noarch" license="MIT" -depends="python" -depends_dev="" -makedepends="python-dev py-setuptools" -install="" -subpackages="" -source="https://files.pythonhosted.org/packages/source/W/Werkzeug/Werkzeug-$pkgver.tar.gz" - -_builddir="$srcdir"/Werkzeug-$pkgver -prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} +depends="" +makedepends="python2-dev python3-dev py-setuptools" +subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" +source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" +builddir="$srcdir/$_pkgname-$pkgver" build() { - cd "$_builddir" - python setup.py build || return 1 + cd "$builddir" + + python2 setup.py build || return 1 + python3 setup.py build } package() { - cd "$_builddir" - python setup.py install --prefix=/usr --root="$pkgdir" || return 1 + mkdir -p "$pkgdir" +} + +_py2() { + replaces="$pkgname" + _py python2 +} + +_py3() { + _py python3 +} + +_py() { + local python="$1" + pkgdesc="$pkgdesc (for $python)" + depends="$depends $python" + install_if="$pkgname=$pkgver-r$pkgrel $python" + + cd "$builddir" + $python setup.py install --prefix=/usr --root="$subpkgdir" } -md5sums="f7afcadc03b0f2267bdc156c34586043 Werkzeug-0.9.6.tar.gz" -sha256sums="7f11e7e2e73eb22677cac1b11113eb6106f66cedef13d140e83cf6563c90b79c Werkzeug-0.9.6.tar.gz" -sha512sums="0b36df25d5f69a0353f7a9321b9197ace2926b6d8e983a91ef372c270ff51462f7d86184447a5f74b4ad05ffdc6411098f77b45a4f1c906dd525d7edf220399c Werkzeug-0.9.6.tar.gz" +md5sums="1d34afa1f19abcef4c0da51ebc2c4ea7 Werkzeug-0.11.11.tar.gz" +sha256sums="e72c46bc14405cba7a26bd2ce28df734471bc9016bc8b4cb69466c2c14c2f7e5 Werkzeug-0.11.11.tar.gz" +sha512sums="b5eff55518900043840cd89238fd40873a74e762adb6d8717d5285a173725b92284ab992d753096c388a25db50bf089b91883cabc6210b6bbd7dc347ecb95027 Werkzeug-0.11.11.tar.gz" |