aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorprspkt <prspkt@protonmail.com>2019-08-12 01:52:13 +0300
committerprspkt <prspkt@protonmail.com>2019-08-12 02:00:08 +0300
commit8165853636fdbf50d6deeddfdb1eadb24e08d861 (patch)
tree42e36f22aa57c310f868d3bec93d66dd2cf7e204
parent63cb7d35302e22b37a23c858025855676cae0985 (diff)
downloadaports-8165853636fdbf50d6deeddfdb1eadb24e08d861.tar.bz2
aports-8165853636fdbf50d6deeddfdb1eadb24e08d861.tar.xz
community/py-docopt: drop python2
Signed-off-by: prspkt <prspkt@protonmail.com>
-rw-r--r--community/py-docopt/APKBUILD49
-rw-r--r--community/py3-docopt/APKBUILD27
2 files changed, 27 insertions, 49 deletions
diff --git a/community/py-docopt/APKBUILD b/community/py-docopt/APKBUILD
deleted file mode 100644
index fa8a430a2d..0000000000
--- a/community/py-docopt/APKBUILD
+++ /dev/null
@@ -1,49 +0,0 @@
-# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
-# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
-pkgname=py-docopt
-_pkgname=docopt
-pkgver=0.6.2
-pkgrel=3
-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"
diff --git a/community/py3-docopt/APKBUILD b/community/py3-docopt/APKBUILD
new file mode 100644
index 0000000000..61c5f0beab
--- /dev/null
+++ b/community/py3-docopt/APKBUILD
@@ -0,0 +1,27 @@
+# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
+# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
+pkgname=py3-docopt
+_pkgname=docopt
+pkgver=0.6.2
+pkgrel=3
+pkgdesc="A Python argument parser"
+url="http://docopt.org/"
+arch="noarch"
+license="MIT"
+depends="python3"
+makedepends="py3-setuptools"
+source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgname-$pkgver"
+
+replaces=py-docopt # Backwards compatibility
+provides=py-docopt=$pkgver-r$pkgrel # Backwards compatibility
+
+build() {
+ python3 setup.py build
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="af138feccf8c37b374ee44fcda4938a88107d434df13c173214021b1a3348b152a595095a86982b66ac03a11db8e0f1e9e6a3a65c98deea92330311daeb831a3 docopt-0.6.2.tar.gz"