aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-11-19 15:47:54 +0100
committerLeo <thinkabit.ukim@gmail.com>2019-11-19 15:49:24 +0100
commitaa8e680db9c581f23e0c246ef08941aaaa43f49c (patch)
tree9cd7f246dff23b4971a6a3d2e1b7d955439d33b4
parentb0f858d4b377443ada59b3331dd0cea25379129f (diff)
downloadaports-aa8e680db9c581f23e0c246ef08941aaaa43f49c.tar.gz
aports-aa8e680db9c581f23e0c246ef08941aaaa43f49c.tar.bz2
aports-aa8e680db9c581f23e0c246ef08941aaaa43f49c.tar.xz
main/py3-sphinx_rtd_theme: drop python2
-rw-r--r--main/py3-sphinx_rtd_theme/APKBUILD39
1 files changed, 10 insertions, 29 deletions
diff --git a/main/py3-sphinx_rtd_theme/APKBUILD b/main/py3-sphinx_rtd_theme/APKBUILD
index ff8a668ed6..1cba57c54c 100644
--- a/main/py3-sphinx_rtd_theme/APKBUILD
+++ b/main/py3-sphinx_rtd_theme/APKBUILD
@@ -1,52 +1,33 @@
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
-pkgname=py-sphinx_rtd_theme
+pkgname=py3-sphinx_rtd_theme
_pkgname=sphinx_rtd_theme
pkgver=0.4.3
-pkgrel=2
+pkgrel=3
pkgdesc="Sphinx theme for readthedocs.org"
url="https://github.com/snide/sphinx_rtd_theme"
arch="noarch"
license="MIT"
-makedepends="python2-dev python3-dev py-setuptools"
-checkdepends="pytest"
+depends="python3"
+makedepends="py3-setuptools"
+checkdepends="py3-pytest"
options="!check" # readthedocs_ext is missing
-subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
source="$_pkgname-$pkgver.tar.gz::https://github.com/snide/$_pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
+replaces="py-sphinx_rtd_theme" # Backwards compatibility
+provides="py-sphinx_rtd_theme=$pkgver-r$pkgrel" # Backwards compatibility
+
build() {
- cd "$builddir"
- python2 setup.py build
python3 setup.py build
}
check() {
- cd "$builddir"
- py.test
+ py.test-3
}
package() {
- mkdir -p "$pkgdir"
-}
-
-_py2() {
- replaces="$pkgname"
- _py python2
-}
-
-_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"
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="6e5d4d0c44ea8acdf382dd589a194be2777e4c4f66f27705eb32d0507cf71b9d289df860bc3d9845242629cd92d62154040f9063f1c05ff6f329e210e14a6a9a sphinx_rtd_theme-0.4.3.tar.gz"