aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2017-08-15 02:37:37 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2017-08-15 02:37:37 +0000
commitb4fccb5abcd2dc9e7ea33a2577c3ef5c2ce48143 (patch)
tree87809799617b5a9d4c6079b8aaee060d53e8ba09
parent1084946dd3d7f63fceb8ecd4beb843f3447f8593 (diff)
downloadaports-b4fccb5abcd2dc9e7ea33a2577c3ef5c2ce48143.tar.bz2
aports-b4fccb5abcd2dc9e7ea33a2577c3ef5c2ce48143.tar.xz
testing/py-vine: new aport
-rw-r--r--testing/py-vine/APKBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/testing/py-vine/APKBUILD b/testing/py-vine/APKBUILD
new file mode 100644
index 0000000000..67b7a59362
--- /dev/null
+++ b/testing/py-vine/APKBUILD
@@ -0,0 +1,46 @@
+# Maintainer: William Pitcock <nenolod@dereferenced.org>
+pkgname=py-vine
+pkgver=1.1.4
+pkgrel=0
+pkgdesc="futures and promises implementation for python"
+url="https://pypi.python.org/pypi/vine/"
+arch="noarch"
+license="BSD"
+depends=""
+makedepends="python2-dev python3-dev py-setuptools"
+install=""
+subpackages="py2-vine:py2 py3-vine:py3"
+source="https://files.pythonhosted.org/packages/source/v/vine/vine-$pkgver.tar.gz"
+builddir="$srcdir/vine-$pkgver"
+
+build() {
+ cd "$_builddir"
+ python2 setup.py build
+ python3 setup.py build
+}
+
+package() {
+ mkdir -p "$pkgdir"
+}
+
+_py() {
+ local python="$1"
+ pkgdesc="$pkgdesc ${python#python}"
+ depends="$depends $python"
+ install_if="$pkgname=$pkgver-r$pkgrel $python"
+
+ cd "$builddir"
+ $python setup.py install --prefix=/usr --root="$subpkgdir"
+}
+
+py2() {
+ cd "$builddir"
+ _py python2
+}
+
+py3() {
+ cd "$builddir"
+ _py python3
+}
+
+sha512sums="b85438cd30b3cb6c642380b3da120783cf2d4306366e04a141061d40cf6b8ce5b52ca15562b71f28392ad376c1f160b39162fa7933665b5c21179b0994347460 vine-1.1.4.tar.gz"