aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-idna
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2015-10-21 17:32:24 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2015-10-21 17:32:24 +0200
commitf01a4d70913b3d06c12c26e44461114629d078a7 (patch)
tree9402450e0aa630f585dc6e8ca06f31d66d9e5ff7 /testing/py-idna
parent884b426dfebc91e20bc5aa27e52916cae8c56e13 (diff)
downloadaports-f01a4d70913b3d06c12c26e44461114629d078a7.tar.bz2
aports-f01a4d70913b3d06c12c26e44461114629d078a7.tar.xz
testing/py-idna: new aport
Diffstat (limited to 'testing/py-idna')
-rw-r--r--testing/py-idna/APKBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/testing/py-idna/APKBUILD b/testing/py-idna/APKBUILD
new file mode 100644
index 0000000000..908906257c
--- /dev/null
+++ b/testing/py-idna/APKBUILD
@@ -0,0 +1,40 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=py-idna
+pkgver=2.0
+pkgrel=0
+pkgdesc="IDNA 2008 and UTS #46 for Python"
+url="https://github.com/kjd/idna"
+arch="noarch"
+license="BSD"
+depends=""
+depends_dev=""
+makedepends="$depends_dev"
+install=""
+subpackages=""
+source="idna-$pkgver.tar.gz::https://github.com/kjd/idna/archive/v$pkgver.tar.gz"
+
+_builddir="$srcdir"/idna-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ python setup.py build || return 1
+}
+
+package() {
+ cd "$_builddir"
+ python setup.py install --prefix=/usr --root="$pkgdir" || return 1
+}
+
+md5sums="9ef51e6e51ea91b6c62426856c8a5b7c idna-2.0.tar.gz"
+sha256sums="5858af065c0b00b6ac3265fa5c7efdf9896bccb7bbd486661941a8b1447e4eac idna-2.0.tar.gz"
+sha512sums="bea2fd4bfcc3607570e28752f95989b34ff6f875ba06231afd175d26be781e6c1388ea50af3de9b9682cadb4d5dbca232d607bd9700c857865326f87a8196ea7 idna-2.0.tar.gz"