diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-09-08 12:53:52 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-09-08 13:12:46 -0300 |
commit | c70e085fbe9c65cd02e51250a66ee76e93b0e342 (patch) | |
tree | 32135b63b2d2c515ed0e05f983c8e09466a70eff /testing/py3-sphinx-theme-readable | |
parent | e33d52d25f089706745aa35928acc8e5f573742f (diff) | |
download | aports-c70e085fbe9c65cd02e51250a66ee76e93b0e342.tar.bz2 aports-c70e085fbe9c65cd02e51250a66ee76e93b0e342.tar.xz |
testing/py3-sphinx-theme-readable: drop py2
Diffstat (limited to 'testing/py3-sphinx-theme-readable')
-rw-r--r-- | testing/py3-sphinx-theme-readable/APKBUILD | 32 |
1 files changed, 9 insertions, 23 deletions
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 <fabian@affolter-engineering.ch> # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> -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" |