Commit 1bcc1c32 authored by Jakub Jirutka's avatar Jakub Jirutka

main/py-werkzeug: update to 0.11.11 and add py2/py3 subpackages

parent f90ea68f
# 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"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment