aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py2-contextlib2
diff options
context:
space:
mode:
authorStuart Cardall <developer@it-offshore.co.uk>2017-07-25 00:10:52 +0000
committerJakub Jirutka <jakub@jirutka.cz>2017-12-14 21:12:59 +0100
commita05bc05b8ecdc6bd680c0d5b0d4bd0034b6b9f7a (patch)
treee35c00bd516031a919a3b7d6adbc02879c891ee6 /testing/py2-contextlib2
parent28ff3d03c0d724f8a26b4a5ef533008e8faa730b (diff)
downloadaports-a05bc05b8ecdc6bd680c0d5b0d4bd0034b6b9f7a.tar.bz2
aports-a05bc05b8ecdc6bd680c0d5b0d4bd0034b6b9f7a.tar.xz
testing/py2-contextlib2: new aport
Diffstat (limited to 'testing/py2-contextlib2')
-rw-r--r--testing/py2-contextlib2/APKBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/testing/py2-contextlib2/APKBUILD b/testing/py2-contextlib2/APKBUILD
new file mode 100644
index 0000000000..183d3a9515
--- /dev/null
+++ b/testing/py2-contextlib2/APKBUILD
@@ -0,0 +1,31 @@
+# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
+# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
+pkgname=py2-contextlib2
+_pkgname=${pkgname#py2-*}
+pkgver=0.4.0
+pkgrel=0
+pkgdesc="Backport of the Python3 stdlib contextlib module"
+url="http://contextlib2.readthedocs.org/"
+arch="noarch"
+license="PSF"
+depends="python2"
+makedepends="python2-dev"
+source="$pkgname-$pkgver.tar.gz::http://http.debian.net/debian/pool/main/c/$_pkgname/${_pkgname}_${pkgver}.orig.tar.gz"
+builddir="$srcdir/$_pkgname-$pkgver"
+
+build() {
+ cd "$builddir"
+ python2 setup.py build
+}
+
+check() {
+ cd "$builddir"
+ python2 test_contextlib2.py
+}
+
+package() {
+ cd "$builddir"
+ python2 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="622762c5490f0ff3e4b421a63bccce8fe0753977112ee0db9640dad31093c40c8a331f3d7cade9925f17903eaeaa376925ef607d7a440170c7c5ec1c8e04f56a py2-contextlib2-0.4.0.tar.gz"