aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-05-26 01:33:09 -0300
committerFrancesco Colista <fcolista@alpinelinux.org>2019-05-27 15:01:19 +0000
commitea2d347066fd8813f468c9609047873b5e7321b1 (patch)
tree247c6ff8fe9e3ca23adccc6979326373a5f9c5ee
parentdd0656bd14b6c940bcdcbcba87b7bd3c6019d252 (diff)
downloadaports-ea2d347066fd8813f468c9609047873b5e7321b1.tar.gz
aports-ea2d347066fd8813f468c9609047873b5e7321b1.tar.bz2
aports-ea2d347066fd8813f468c9609047873b5e7321b1.tar.xz
community/py-zope-deferredimport: modernize, fix license
-rw-r--r--community/py-zope-deferredimport/APKBUILD40
1 files changed, 19 insertions, 21 deletions
diff --git a/community/py-zope-deferredimport/APKBUILD b/community/py-zope-deferredimport/APKBUILD
index 2872ec7130..65dec3e737 100644
--- a/community/py-zope-deferredimport/APKBUILD
+++ b/community/py-zope-deferredimport/APKBUILD
@@ -3,53 +3,51 @@
pkgname=py-zope-deferredimport
_pkgname=zope.deferredimport
pkgver=4.3
-pkgrel=1
+pkgrel=2
pkgdesc="Defer imports until used by code"
url="https://github.com/zopefoundation/$_pkgname"
arch="noarch"
-license="ZPL"
+license="ZPL-2.1"
depends="py-setuptools py-zope-proxy"
-makedepends="python2-dev python3-dev py-setuptools"
+makedepends="python2-dev python3-dev"
subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
source="$_pkgname-$pkgver.tar.gz::https://github.com/zopefoundation/$_pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
build() {
- cd "$builddir"
- python2 setup.py build
- python3 setup.py build
+ python2 setup.py build
+ python3 setup.py build
}
check() {
- cd "$builddir"
- python2 setup.py test
- python3 setup.py test
+ python2 setup.py test
+ python3 setup.py test
}
package() {
- mkdir -p "$pkgdir"
+ mkdir -p "$pkgdir"
}
_py2() {
- replaces="$pkgname"
- depends="${depends//py-/py2-}"
- _py python2
+ replaces="$pkgname"
+ depends="${depends//py-/py2-}"
+ _py python2
}
_py3() {
- depends="${depends//py-/py3-}"
- _py python3
+ depends="${depends//py-/py3-}"
+ _py python3
}
_py() {
- local python="$1"
- pkgdesc="$pkgdesc (for $python)"
- depends="$depends $python"
- install_if="$pkgname=$pkgver-r$pkgrel $python"
+ 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"
+ cd "$builddir"
+ $python setup.py install --prefix=/usr --root="$subpkgdir"
}