From c70e085fbe9c65cd02e51250a66ee76e93b0e342 Mon Sep 17 00:00:00 2001 From: Leo Date: Sun, 8 Sep 2019 12:53:52 -0300 Subject: testing/py3-sphinx-theme-readable: drop py2 --- testing/py3-sphinx-theme-readable/APKBUILD | 32 +++++++++--------------------- 1 file changed, 9 insertions(+), 23 deletions(-) (limited to 'testing/py3-sphinx-theme-readable') diff --git a/testing/py3-sphinx-theme-readable/APKBUILD b/testing/py3-sphinx-theme-readable/APKBUILD index 6b15a02fdc..f4aa89d759 100644 --- a/testing/py3-sphinx-theme-readable/APKBUILD +++ b/testing/py3-sphinx-theme-readable/APKBUILD @@ -1,41 +1,27 @@ # Contributor: Fabian Affolter # Maintainer: Fabian Affolter -pkgname=py-sphinx-theme-readable +pkgname=py3-sphinx-theme-readable _pkgname=sphinx-readable-theme pkgver=1.3.0 -pkgrel=0 +pkgrel=1 pkgdesc="The Readable Sphinx theme" url="https://github.com/ignacysokolowski/sphinx-readable-theme" arch="noarch" license="BSD" -depends="python2 py-sphinx" -depends_dev="" -makedepends="python2-dev py-setuptools" -install="" -subpackages="" +depends="python3 py3-sphinx" +makedepends="py3-setuptools" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" +builddir="$srcdir"/$_pkgname-$pkgver -_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-sphinx-theme-readable" # Backwards compatibility +provides="py-sphinx-theme-readable=$pkgver-r$pkgrel" # Backwards compatibility build() { - cd "$_builddir" - python2 setup.py build || return 1 + python3 setup.py build } package() { - cd "$_builddir" - python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1 + python3 setup.py install --prefix=/usr --root="$pkgdir" } -md5sums="57e396552315d3c8034874c9eaef160f sphinx-readable-theme-1.3.0.tar.gz" -sha256sums="f5fe65a2e112cb956b366df41e0fc894ff6b6f0e4a4814fcbff692566db47fc0 sphinx-readable-theme-1.3.0.tar.gz" sha512sums="e0810973fe77434efd7ca442c26784f5d894322832555953ff0c900835707bd797b5ce8308510590f31fe2a5f61e0ed465b3316cd8a3fa2f5ca9b1c5f432feaf sphinx-readable-theme-1.3.0.tar.gz" -- cgit v1.2.3