mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 20:36:40 +02:00
testing/py-chameleon: clarify license, modernize
This commit is contained in:
parent
1fcb9b3ad0
commit
ce00a35386
@ -7,34 +7,20 @@ pkgrel=0
|
||||
pkgdesc="A Fast Python HTML/XML Template Compiler"
|
||||
url="https://chameleon.readthedocs.org"
|
||||
arch="noarch"
|
||||
license="BSD"
|
||||
license="BSD-3-Clause AND BSD-4-Clause AND Python-2.0 AND ZPL-2.1"
|
||||
depends="py-setuptools"
|
||||
depends_dev=""
|
||||
makedepends="py2-setuptools py3-setuptools"
|
||||
install=""
|
||||
subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
|
||||
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$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
|
||||
}
|
||||
builddir="$srcdir"/$_pkgname-$pkgver
|
||||
|
||||
build() {
|
||||
cd "$_builddir"
|
||||
python2 setup.py build || return 1
|
||||
python2 setup.py build
|
||||
python3 setup.py build
|
||||
}
|
||||
|
||||
|
||||
check() {
|
||||
cd "$_builddir"
|
||||
python2 setup.py test
|
||||
python3 setup.py test
|
||||
}
|
||||
@ -60,7 +46,7 @@ _py() {
|
||||
depends="$depends $python"
|
||||
install_if="$pkgname=$pkgver-r$pkgrel $python"
|
||||
|
||||
cd "$_builddir"
|
||||
cd "$builddir"
|
||||
$python setup.py install --prefix=/usr --root="$subpkgdir"
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user