Mail archive
alpine-aports

[alpine-aports] [PATCH 03/12] testing/py-pyro4: new APKBUILD

From: Drew DeVault <sir_at_cmpwn.com>
Date: Wed, 3 Apr 2019 16:27:06 -0400

---
 testing/py-pyro4/APKBUILD | 60 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 60 insertions(+)
 create mode 100644 testing/py-pyro4/APKBUILD
diff --git a/testing/py-pyro4/APKBUILD b/testing/py-pyro4/APKBUILD
new file mode 100644
index 0000000000..1eda79ead8
--- /dev/null
+++ b/testing/py-pyro4/APKBUILD
_at_@ -0,0 +1,60 @@
+# Maintainer: Drew DeVault <sir_at_cmpwn.com>
+pkgname=py-pyro4
+_pyname=Pyro4
+pkgver=4.75
+pkgrel=0
+pkgdesc="Python remote objects"
+url="http://pyro4.readthedocs.io/"
+arch="noarch"
+license="MIT"
+subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
+_py2_deps="py2-serpent"
+_py3_deps="py3-serpent"
+makedepends="$_py2_deps $_py3_deps python2 python3 py2-setuptools py3-setuptools"
+_pypiprefix="${_pyname%${_pyname#?}}"
+source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz"
+builddir=$srcdir/$_pyname-$pkgver
+
+prepare() {
+	cp -r "$builddir" "$builddir"-py2
+}
+
+build() {
+	cd "$builddir"
+	python3 setup.py build
+	cd "$builddir"-py2
+	python2 setup.py build
+}
+
+check() {
+	cd "$builddir"
+	python3 setup.py test
+	cd "$builddir"-py2
+	python2 setup.py test
+}
+
+package() {
+	mkdir -p "$pkgdir"
+}
+
+_py2() {
+	depends="$_py2_deps"
+	cd "$builddir"-py2
+	_py python2
+}
+
+_py3() {
+	depends="$_py3_deps"
+	cd "$builddir"
+	_py python3
+}
+
+_py() {
+	_python="$1"
+	pkgdesc="$pkgdesc (for $_python)"
+	depends="$depends $_python"
+	install_if="$pkgname=$pkgver-r$pkgrel $_python"
+	$_python setup.py install --prefix=/usr --root="$subpkgdir"
+}
+
+sha512sums="ecbf514ad6c877eb3166cad2ec70e16b148995a93562d737e17a8f0e222c647dd352271c383c7ba3cdf41e4678f81af34a761e9e3a74ba2dc4984dc86c158b0f  Pyro4-4.75.tar.gz"
-- 
2.21.0
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Wed Apr 03 2019 - 16:27:06 UTC