aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2019-10-23 12:21:02 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2019-11-05 15:33:47 +0000
commitbc10405d5de06a968973336e4d42cd662e51f249 (patch)
tree81cf89dd52b407c5d933366348c982dcf5171ae3
parent198fddd5f627ebab89f1bc042358b3e0e32c3fbb (diff)
downloadaports-bc10405d5de06a968973336e4d42cd662e51f249.tar.gz
aports-bc10405d5de06a968973336e4d42cd662e51f249.tar.bz2
aports-bc10405d5de06a968973336e4d42cd662e51f249.tar.xz
main/py3-sphinx: upgrade to 2.2.0, drop python2
-rw-r--r--main/py-sphinx/APKBUILD84
-rw-r--r--main/py3-sphinx/APKBUILD36
2 files changed, 36 insertions, 84 deletions
diff --git a/main/py-sphinx/APKBUILD b/main/py-sphinx/APKBUILD
deleted file mode 100644
index 9f3b0827d7..0000000000
--- a/main/py-sphinx/APKBUILD
+++ /dev/null
@@ -1,84 +0,0 @@
-# Contributor: Carlo Landmeter <clandmeter@gmail.com>
-# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
-pkgname=py-sphinx
-_pkgname=${pkgname#py-}
-pkgver=1.8.4
-pkgrel=2
-pkgdesc="Python Documentation Generator"
-url="http://sphinx.pocoo.org/"
-arch="noarch"
-license="BSD"
-_pydepends="py-docutils py-jinja2 py-pygments py-six py-sphinx_rtd_theme
- py-alabaster<0.8 py-babel py-snowballstemmer py-imagesize
- py-requests py-sphinxcontrib-websupport py-setuptools py-packaging
- py-attrs"
-_py2depends="make ${_pydepends//py-/py2-} py2-typing"
-_py3depends="make ${_pydepends//py-/py3-}"
-depends="py3-${pkgname#py-}"
-makedepends="python2-dev python3-dev py-setuptools $_py2depends $_py3depends"
-#checkdepends="pytest py-funcsigs py-pluggy"
-options="!check" # py-pluggy and some other packages needs to be moved to main first
-subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
-source="$_pkgname-$pkgver.tar.gz::https://github.com/sphinx-doc/sphinx/archive/v$pkgver.tar.gz"
-builddir="$srcdir/$_pkgname-$pkgver"
-
-prepare() {
- default_prepare
-
- # Soure files are modified during build with 2to3 tool, so we cannot
- # build it for both Python versions in the same location.
- local python; for python in python2 python3; do
- cp -r "$builddir" "$builddir-$python"
- done
-}
-
-build() {
- local python; for python in python2 python3; do
- cd "$builddir"-$python
- $python setup.py build
- done
-}
-
-#check() {
-# local python; for python in python2 python3; do
-# cd "$builddir"-$python
-# make PYTHON=$python test
-# done
-#}
-
-package() {
- mkdir -p "$pkgdir"/usr/bin
-
- local name; for name in apidoc autogen build quickstart; do
- ln -s sphinx-$name-3 "$pkgdir"/usr/bin/sphinx-$name
- done
-}
-
-_py2() {
- replaces="$pkgname"
- depends="$_py2depends"
- _py python2
-}
-
-_py3() {
- depends="$_py3depends"
- _py python3
-}
-
-_py() {
- local python="$1"
- local pyver="${1:6:1}"
- pkgdesc="$pkgdesc (for $python)"
- depends="$depends $python"
- install_if="$pkgname=$pkgver-r$pkgrel $python"
-
- cd "$builddir"-$python
- $python setup.py install --prefix=/usr --root="$subpkgdir"
-
- # Add version suffix to executable files.
- local path; for path in "$subpkgdir"/usr/bin/*; do
- mv "$path" "$path-$pyver"
- done
-}
-
-sha512sums="e9e2cbe74c6d1e683eb59bdb7305f49074e76404ff280c55b9018bd16914b532edcd4efc294c330c0554e3eef8ccb8edcc88957bda10ed7ec091d08744284eab sphinx-1.8.4.tar.gz"
diff --git a/main/py3-sphinx/APKBUILD b/main/py3-sphinx/APKBUILD
new file mode 100644
index 0000000000..d9c4ef4c07
--- /dev/null
+++ b/main/py3-sphinx/APKBUILD
@@ -0,0 +1,36 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
+pkgname=py3-sphinx
+_pkgname=${pkgname#py3-}
+pkgver=2.2.0
+pkgrel=2
+pkgdesc="Python Documentation Generator"
+url="http://sphinx.pocoo.org/"
+arch="noarch"
+license="BSD"
+depends="py3-docutils py3-jinja2 py3-pygments py3-six py3-sphinx_rtd_theme
+ py3-alabaster<0.8 py3-babel py3-snowballstemmer py3-imagesize
+ py3-requests py3-sphinxcontrib-websupport py3-setuptools py3-packaging
+ py3-sphinxcontrib-applehelp py3-sphinxcontrib-devhelp
+ py3-sphinxcontrib-jsmath py3-sphinxcontrib-htmlhelp
+ py3-sphinxcontrib-serializinghtml py3-sphinxcontrib-qthelp
+ py3-attrs make"
+makedepends="python3-dev py3-setuptools"
+checkdepends="py3-pytest py3-funcsigs py3-pluggy"
+options="!check" # py3-pluggy and some other packages needs to be moved to main first
+source="$_pkgname-$pkgver.tar.gz::https://github.com/sphinx-doc/sphinx/archive/v$pkgver.tar.gz"
+builddir="$srcdir/$_pkgname-$pkgver"
+
+build() {
+ python3 setup.py build
+}
+
+check() {
+ make PYTHON=python3 test
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="0738969dfe73f135eec710e4f6614c23c399778776cfeed0fb3422c25c1072be04c4e666143d902643778ff826dabd32579014df4f048510d03bf762fc1d35d5 sphinx-2.2.0.tar.gz"