aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-07-02 03:42:31 -0300
committerLeo <thinkabit.ukim@gmail.com>2019-07-02 05:15:54 -0300
commit765e64de2bbc1e247f8f919f643544c73b6e83b3 (patch)
treee12b7c47f4c6a9c48994a8858fc7c1fe233142e2 /testing
parent1152162a268ba53d87230e529ba4da3df6ad0a2e (diff)
downloadaports-765e64de2bbc1e247f8f919f643544c73b6e83b3.tar.bz2
aports-765e64de2bbc1e247f8f919f643544c73b6e83b3.tar.xz
testing/py3-jsonpatch: rebuild for python3 only
Diffstat (limited to 'testing')
-rw-r--r--testing/py3-jsonpatch/APKBUILD41
1 files changed, 9 insertions, 32 deletions
diff --git a/testing/py3-jsonpatch/APKBUILD b/testing/py3-jsonpatch/APKBUILD
index 12d51aedc2..d1748675a9 100644
--- a/testing/py3-jsonpatch/APKBUILD
+++ b/testing/py3-jsonpatch/APKBUILD
@@ -1,53 +1,30 @@
# Contributor: Matt Dainty <matt+alpine@bodgit-n-scarper.com>
# Maintainer: TBK <alpine@jjtc.eu>
-pkgname=py-jsonpatch
-_pkgname=${pkgname#py-}
+pkgname=py3-jsonpatch
+_pkgname=jsonpatch
pkgver=1.23
-pkgrel=1
+pkgrel=2
pkgdesc="Apply JSON-Patches (RFC 6902)"
url="https://github.com/stefankoegl/python-json-patch"
arch="noarch"
license="BSD-3-Clause"
-depends="py-jsonpointer"
-makedepends="python2-dev python3-dev py-setuptools"
-subpackages="py3-$_pkgname:_py3 py2-$_pkgname:_py2"
+depends="py3-jsonpointer"
+makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
+replaces="py-jsonpatch" # Backwards compatibility
+provides="py-jsonpatch=$pkgver-r$pkgrel" # Backwards compatibility
+
build() {
- cd "$builddir"
- python2 setup.py build
python3 setup.py build
}
check() {
- cd "$builddir"
- python2 setup.py test
python3 setup.py test
}
package() {
- 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"
- depends="${depends//py-/py2-}"
- _py python2
-}
-
-_py3() {
- depends="${depends//py-/py3-}"
- _py python3
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="da612fc043e351087fbda26cd5686743107dafca1223e784626c39113dfb4770647db1420e9ab9eee93d12c608a6e0812f0825229ab092962cfb390b6b1795ed jsonpatch-1.23.tar.gz"