diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-09-11 19:38:07 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-09-11 20:33:29 -0300 |
commit | 52a008c4ad6939a672d5fc7bb3d9a94c0c234f0b (patch) | |
tree | de1b97ea1f6de65ca381bd01f6d58c7ad64851bf /testing/py3-cherrypy | |
parent | fa485ee748f2d60705d32e0d92ca2451ffd53b8a (diff) | |
download | aports-52a008c4ad6939a672d5fc7bb3d9a94c0c234f0b.tar.bz2 aports-52a008c4ad6939a672d5fc7bb3d9a94c0c234f0b.tar.xz |
testing/py3-cherrypy: drop py2
Diffstat (limited to 'testing/py3-cherrypy')
-rw-r--r-- | testing/py3-cherrypy/APKBUILD | 43 |
1 files changed, 10 insertions, 33 deletions
diff --git a/testing/py3-cherrypy/APKBUILD b/testing/py3-cherrypy/APKBUILD index 1bc1df43ca..20e44a3532 100644 --- a/testing/py3-cherrypy/APKBUILD +++ b/testing/py3-cherrypy/APKBUILD @@ -1,50 +1,27 @@ # Contributor: Francesco Colista <francesco.colista@gmail.com> # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> -pkgname=py-cherrypy +pkgname=py3-cherrypy _pkgname=CherryPy pkgver=8.1.2 -pkgrel=2 +pkgrel=3 pkgdesc="A pythonic, object-oriented web development framework" url="http://www.cherrypy.org" arch="noarch" -license="BSD" -depends="py-six" -makedepends="python2-dev python3-dev py-setuptools" -subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" +license="BSD-3-Clause" +depends="python3 py3-six" +makedepends="py3-setuptools" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver +replaces="py-cherrypy" # Backwards compatibility +provides="py-cherrypy=$pkgver-r$pkgrel" # Backwards compatibility + build() { - cd "$builddir" - python2 setup.py build || return 1 - python3 setup.py build || return 1 + python3 setup.py build } package() { - mkdir -p "$pkgdir" -} - -_py2() { - replaces="$pkgname" - depends="${depends//py-/py2-}" - _py python2 -} - -_py3() { - depends="${depends//py-/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" } -md5sums="553f054152c2adbe60738682ed5390c5 CherryPy-8.1.2.tar.gz" -sha256sums="45a92fdd18baa19d055e5f53bb3c4293821a30e83bf3c5244b867685397f5380 CherryPy-8.1.2.tar.gz" sha512sums="63c267969df2d24e46f63685773b2af55595f8a162f8abd91e4b2877fedc4b42ec67c8a2c79d4c0f999cbaa1fd3fff7df103914af6f105e08f6e1d256dd390f5 CherryPy-8.1.2.tar.gz" |