aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-08-29 20:57:56 -0300
committerLeo <thinkabit.ukim@gmail.com>2019-08-29 21:08:19 -0300
commitc3d8911c7d4aa2a5e624d665897d7e27af3a325d (patch)
tree5447bf2f07e04449609f78179861909f8b28ebef
parentf24d8ec5fc50ead7a05880f80778c4ea1f3527b5 (diff)
downloadaports-c3d8911c7d4aa2a5e624d665897d7e27af3a325d.tar.bz2
aports-c3d8911c7d4aa2a5e624d665897d7e27af3a325d.tar.xz
testing/py3-sphinxcontrib-programoutput: upgrade to 0.14
-rw-r--r--testing/py3-sphinxcontrib-programoutput/APKBUILD44
1 files changed, 19 insertions, 25 deletions
diff --git a/testing/py3-sphinxcontrib-programoutput/APKBUILD b/testing/py3-sphinxcontrib-programoutput/APKBUILD
index 7c48fe1a04..e89555808e 100644
--- a/testing/py3-sphinxcontrib-programoutput/APKBUILD
+++ b/testing/py3-sphinxcontrib-programoutput/APKBUILD
@@ -1,39 +1,33 @@
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
-pkgname=py-sphinxcontrib-programoutput
+pkgname=py3-sphinxcontrib-programoutput
_pkgname=sphinxcontrib-programoutput
-pkgver=0.10
+pkgver=0.14
pkgrel=0
pkgdesc="Sphinx programoutput extension"
-url="https://pypi.python.org/pypi/sphinxcontrib-programoutput"
+options="!check" # Tests try to execute python
+url="https://sphinxcontrib-programoutput.readthedocs.io/en/latest/"
arch="noarch"
-license="BSD"
-depends="python2 py-sphinx"
-depends_dev=""
-makedepends="python2-dev py-setuptools"
-install=""
-subpackages=""
-source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
+license="BSD-2-Clause"
+depends="python3 py3-sphinx"
+makedepends="py3-setuptools"
+source="$pkgname-$pkgver.tar.gz::https://github.com/NextThought/$_pkgname/archive/$pkgver.tar.gz"
-_builddir="$srcdir"/$_pkgname-$pkgver
-prepare() {
- local i
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
-}
+replaces="py-sphinxcontrib-programoutput" # Backwards compatibility
+provides="py-sphinxcontrib-programoutput=$pkgver-r$pkgrel" # Backwards compatibility
+
+builddir="$srcdir"/$_pkgname-$pkgver
build() {
- cd "$_builddir"
- python2 setup.py build || return 1
+ python3 setup.py build
+}
+
+check() {
+ python3 setup.py test
}
package() {
- cd "$_builddir"
- python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
}
-sha512sums="0d1ed26456b2c999962b890ec291833b4f68513e3b907266feab83790292148075b70a0b29217132a815d153ae3c9f0664eaec7db127568be638402806d8f8d0 sphinxcontrib-programoutput-0.10.tar.gz"
+sha512sums="7dbc2da399778041c85e9c80ed9f717cfeebb1e4886d9f21970e060743288b19595bb3a3dc24f49683e49c8aa0c2bf04ed6cc17a254ca3109ca28347a1545981 py3-sphinxcontrib-programoutput-0.14.tar.gz"