aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorprspkt <prspkt@protonmail.com>2019-04-27 23:22:31 +0300
committerprspkt <prspkt@protonmail.com>2019-04-28 00:19:24 +0300
commit28488964a6e65357819ab9327ae4b81fe9716617 (patch)
treee49a0987d358eedeefd3ed7fa0ce90cb4ee3fa28
parent5d3da888fcc3adcd095937514ad63fc7031e28c8 (diff)
downloadaports-28488964a6e65357819ab9327ae4b81fe9716617.tar.bz2
aports-28488964a6e65357819ab9327ae4b81fe9716617.tar.xz
testing/py-pgspecial: drop python2
-rw-r--r--testing/py-pgspecial/APKBUILD54
-rw-r--r--testing/py3-pgspecial/APKBUILD33
2 files changed, 33 insertions, 54 deletions
diff --git a/testing/py-pgspecial/APKBUILD b/testing/py-pgspecial/APKBUILD
deleted file mode 100644
index f007704ff5..0000000000
--- a/testing/py-pgspecial/APKBUILD
+++ /dev/null
@@ -1,54 +0,0 @@
-# Contributor: Thomas Boerger <thomas@webhippie.de>
-# Maintainer: Thomas Boerger <thomas@webhippie.de>
-pkgname=py-pgspecial
-_pkgname=pgspecial
-pkgver=1.11.2
-pkgrel=1
-pkgdesc="Meta-commands handler for Postgres Database"
-url="https://pypi.python.org/pypi/pgspecial"
-arch="noarch"
-license="BSD-3-Clause"
-depends="py-click py-sqlparse"
-makedepends="python2-dev py-setuptools python3-dev"
-subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
-source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
-builddir="$srcdir/$_pkgname-$pkgver"
-
-check() {
- cd "$builddir"
- python2 setup.py check
- python3 setup.py check
-}
-
-build() {
- cd "$builddir"
- python2 setup.py build
- python3 setup.py build
-}
-
-package() {
- mkdir -p "$pkgdir"
-}
-
-_py2() {
- replaces="$pkgname"
- depends="${depends//py-/py2-}"
- _py python2
-}
-
-_py3() {
- depends="${depends//py-/py3-}"
- _py python3
-}
-
-_py() {
- local python="$1"
- pkgdesc="$pkgdesc (for $python)"
- depends="$depends $python"
- install_if="$pkgname=$pkgver-r$pkgrel $python"
-
- cd "$builddir"
- $python setup.py install --prefix=/usr --root="$subpkgdir"
-}
-
-sha512sums="58bf5ca3bd848a9f3010f91c02bdef84bc6ebbeeb2aa58062e64117a1e2cb9e56ffc9b10d179806a7293cbf5955be557395523567f54c29b22a610431b2ade61 py-pgspecial-1.11.2.tar.gz"
diff --git a/testing/py3-pgspecial/APKBUILD b/testing/py3-pgspecial/APKBUILD
new file mode 100644
index 0000000000..90d6f6636a
--- /dev/null
+++ b/testing/py3-pgspecial/APKBUILD
@@ -0,0 +1,33 @@
+# Contributor: Thomas Boerger <thomas@webhippie.de>
+# Maintainer: Thomas Boerger <thomas@webhippie.de>
+pkgname=py3-pgspecial
+_pkgname=pgspecial
+pkgver=1.11.2
+pkgrel=1
+pkgdesc="Meta-commands handler for Postgres Database"
+url="https://pypi.python.org/pypi/pgspecial"
+arch="noarch"
+license="BSD-3-Clause"
+replaces="py-pgspecial py2-pgspecial"
+provides="py-pgspecial=$pkgver-r$pkgrel py2-pgspecial=$pkgver-r$pkgrel"
+depends="py3-click py3-sqlparse"
+makedepends="py3-setuptools"
+source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgname-$pkgver"
+
+build() {
+ cd "$builddir"
+ python3 setup.py build
+}
+
+check() {
+ cd "$builddir"
+ python3 setup.py check
+}
+
+package() {
+ cd "$builddir"
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="58bf5ca3bd848a9f3010f91c02bdef84bc6ebbeeb2aa58062e64117a1e2cb9e56ffc9b10d179806a7293cbf5955be557395523567f54c29b22a610431b2ade61 py-pgspecial-1.11.2.tar.gz"