diff options
author | TBK <tbk@jjtc.dk> | 2017-10-27 03:38:57 +0200 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-10-27 13:43:45 +0000 |
commit | 18a2facf53831e7297d02a69448dd8e772810440 (patch) | |
tree | b873f1ce9dba30765b97958670371aa0c20c60c0 /testing/py-jsonpointer | |
parent | 802504bb129a2fba321f9645259aee12cc67d03f (diff) | |
download | aports-18a2facf53831e7297d02a69448dd8e772810440.tar.bz2 aports-18a2facf53831e7297d02a69448dd8e772810440.tar.xz |
testing/py-jsonpointer: upgrade to 1.13
Diffstat (limited to 'testing/py-jsonpointer')
-rw-r--r-- | testing/py-jsonpointer/APKBUILD | 56 |
1 files changed, 31 insertions, 25 deletions
diff --git a/testing/py-jsonpointer/APKBUILD b/testing/py-jsonpointer/APKBUILD index 955919cfcb..f01e5ed0af 100644 --- a/testing/py-jsonpointer/APKBUILD +++ b/testing/py-jsonpointer/APKBUILD @@ -1,40 +1,46 @@ # Contributor: Matt Dainty <matt+alpine@bodgit-n-scarper.com> -# Maintainer: +# Maintainer: TBK <alpine@jjtc.eu> pkgname=py-jsonpointer -_pkgname=jsonpointer -pkgver=1.10 +_pkgname=${pkgname#py-} +pkgver=1.13 pkgrel=0 pkgdesc="Identify specific nodes in a JSON document (RFC 6901)" url="https://github.com/stefankoegl/python-json-pointer" arch="noarch" license="BSD" -depends="python2" -makedepends="py-setuptools" -install="" -subpackages="" +depends="" +makedepends="python2-dev python3-dev py-setuptools" +subpackages="py3-$_pkgname:_py3 py2-$_pkgname:_py2" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" - -_builddir="$srcdir"/$_pkgname-$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 -} +builddir="$srcdir"/$_pkgname-$pkgver build() { - cd "$_builddir" - python2 setup.py build || return 1 + cd "$builddir" + python2 setup.py build + python3 setup.py build } package() { - cd "$_builddir" - python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1 + mkdir -p "$pkgdir" +} + +_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" +} + +_py2() { + replaces="$pkgname" + _py python2 +} + +_py3() { + _py python3 } -md5sums="d68c0c6ad6889e9c94ec0feba719e45e jsonpointer-1.10.tar.gz" -sha256sums="9fa5dcac35eefd53e25d6cd4c310d963c9f0b897641772cd6e5e7b89df7ee0b1 jsonpointer-1.10.tar.gz" -sha512sums="b2df5f19b14b670825b18f7da4ca50b089beb2ccbb1c69acfc904eed82b5315ad19940b4aaa8f8504c2fc7d477778d65e31f492dd30ee8b5ba95ccfd0eaeb9b1 jsonpointer-1.10.tar.gz" +sha512sums="662e0659c739fe213b9c6b2353de1806533b43c6be5d596f4b48f391af53a9f29a3428b0068aca106db38cbe09c9d88c7d28fd9b808c9a04aebe503b4c8e0e39 jsonpointer-1.13.tar.gz" |