aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-09-25 17:28:27 +0200
committerJakub Jirutka <jakub@jirutka.cz>2016-09-25 17:29:07 +0200
commitd5393e3b2284ecd3e54d40b6a62111580e8e927c (patch)
tree84606763433a750f7a6b3ac7bac83c36838f95de /community
parent5729665b1d998c9d2a380ff98f0da542874b0a44 (diff)
downloadaports-d5393e3b2284ecd3e54d40b6a62111580e8e927c.tar.bz2
aports-d5393e3b2284ecd3e54d40b6a62111580e8e927c.tar.xz
community/py-docopt: move from testing
Diffstat (limited to 'community')
-rw-r--r--community/py-docopt/APKBUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/community/py-docopt/APKBUILD b/community/py-docopt/APKBUILD
new file mode 100644
index 0000000000..98322ef8c7
--- /dev/null
+++ b/community/py-docopt/APKBUILD
@@ -0,0 +1,49 @@
+# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
+# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
+pkgname=py-docopt
+_pkgname=docopt
+pkgver=0.6.2
+pkgrel=1
+pkgdesc="A Python argument parser"
+url="http://docopt.org/"
+arch="noarch"
+license="MIT"
+depends=""
+makedepends="python2-dev python3-dev py-setuptools"
+subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
+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 || return 1
+ python3 setup.py build || return 1
+}
+
+package() {
+ mkdir -p "$pkgdir"
+}
+
+_py2() {
+ replaces="$pkgname"
+ _py python2
+}
+
+_py3() {
+ _py python3
+}
+
+_py() {
+ local python="$1"
+ pkgdesc="$pkgdesc (for $python)"
+ depends="$python"
+ install_if="$pkgname=$pkgver-r$pkgrel $python"
+
+ cd "$builddir"
+ $python setup.py install --prefix=/usr --root="$subpkgdir"
+}
+
+md5sums="4bc74561b37fad5d3e7d037f82a4c3b1 docopt-0.6.2.tar.gz"
+sha256sums="49b3a825280bd66b3aa83585ef59c4a8c82f2c8a522dbe754a8bc8d08c85c491 docopt-0.6.2.tar.gz"
+sha512sums="af138feccf8c37b374ee44fcda4938a88107d434df13c173214021b1a3348b152a595095a86982b66ac03a11db8e0f1e9e6a3a65c98deea92330311daeb831a3 docopt-0.6.2.tar.gz"