From 1152162a268ba53d87230e529ba4da3df6ad0a2e Mon Sep 17 00:00:00 2001 From: Leo Date: Tue, 2 Jul 2019 03:41:11 -0300 Subject: testing/py3-jsonpatch: rename from py-jsonpatch --- testing/py-jsonpatch/APKBUILD | 53 ------------------------------------------ testing/py3-jsonpatch/APKBUILD | 53 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+), 53 deletions(-) delete mode 100644 testing/py-jsonpatch/APKBUILD create mode 100644 testing/py3-jsonpatch/APKBUILD diff --git a/testing/py-jsonpatch/APKBUILD b/testing/py-jsonpatch/APKBUILD deleted file mode 100644 index 12d51aedc2..0000000000 --- a/testing/py-jsonpatch/APKBUILD +++ /dev/null @@ -1,53 +0,0 @@ -# Contributor: Matt Dainty -# Maintainer: TBK -pkgname=py-jsonpatch -_pkgname=${pkgname#py-} -pkgver=1.23 -pkgrel=1 -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" -source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" -builddir="$srcdir"/$_pkgname-$pkgver - -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 -} -sha512sums="da612fc043e351087fbda26cd5686743107dafca1223e784626c39113dfb4770647db1420e9ab9eee93d12c608a6e0812f0825229ab092962cfb390b6b1795ed jsonpatch-1.23.tar.gz" diff --git a/testing/py3-jsonpatch/APKBUILD b/testing/py3-jsonpatch/APKBUILD new file mode 100644 index 0000000000..12d51aedc2 --- /dev/null +++ b/testing/py3-jsonpatch/APKBUILD @@ -0,0 +1,53 @@ +# Contributor: Matt Dainty +# Maintainer: TBK +pkgname=py-jsonpatch +_pkgname=${pkgname#py-} +pkgver=1.23 +pkgrel=1 +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" +source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" +builddir="$srcdir"/$_pkgname-$pkgver + +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 +} +sha512sums="da612fc043e351087fbda26cd5686743107dafca1223e784626c39113dfb4770647db1420e9ab9eee93d12c608a6e0812f0825229ab092962cfb390b6b1795ed jsonpatch-1.23.tar.gz" -- cgit v1.2.3