python-decorator: split package
New package: python3-decorator-5.0.9
This commit is contained in:
parent
25e9d151cd
commit
eac83e12cb
|
@ -1,11 +1,11 @@
|
||||||
# Template file for 'python-decorator'
|
# Template file for 'python-decorator'
|
||||||
pkgname=python-decorator
|
pkgname=python-decorator
|
||||||
version=4.4.2
|
version=4.4.2
|
||||||
revision=1
|
revision=2
|
||||||
wrksrc="decorator-${version}"
|
wrksrc="decorator-${version}"
|
||||||
build_style=python-module
|
build_style=python2-module
|
||||||
pycompile_module="decorator.py"
|
pycompile_module="decorator.py"
|
||||||
hostmakedepends="python-setuptools python3-setuptools"
|
hostmakedepends="python-setuptools"
|
||||||
depends="python"
|
depends="python"
|
||||||
short_desc="Python2 decorator module"
|
short_desc="Python2 decorator module"
|
||||||
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
||||||
|
@ -16,15 +16,5 @@ distfiles="${PYPI_SITE}/d/decorator/decorator-${version}.tar.gz"
|
||||||
checksum=e3a62f0520172440ca0dcc823749319382e377f37f140a0b99ef45fecb84bfe7
|
checksum=e3a62f0520172440ca0dcc823749319382e377f37f140a0b99ef45fecb84bfe7
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense LICENSE.txt LICENSE
|
vlicense LICENSE.txt
|
||||||
}
|
|
||||||
|
|
||||||
python3-decorator_package() {
|
|
||||||
depends="python3"
|
|
||||||
pycompile_module="decorator.py"
|
|
||||||
short_desc="${short_desc/Python2/Python3}"
|
|
||||||
pkg_install() {
|
|
||||||
vmove usr/lib/python3*
|
|
||||||
vlicense LICENSE.txt LICENSE
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
# decorator >= 5.0 does not support Python 2
|
||||||
|
pattern="decorator-\K4\.[0-9.]+(?=\.tar\.gz)"
|
|
@ -1 +0,0 @@
|
||||||
python-decorator
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
# Template file for 'python3-decorator'
|
||||||
|
pkgname=python3-decorator
|
||||||
|
version=5.0.9
|
||||||
|
revision=1
|
||||||
|
wrksrc="decorator-${version}"
|
||||||
|
build_style=python3-module
|
||||||
|
hostmakedepends="python3-setuptools"
|
||||||
|
depends="python3"
|
||||||
|
short_desc="Python3 decorator module"
|
||||||
|
maintainer="Andrew J. Hesford <ajh@sideband.org>"
|
||||||
|
license="BSD-2-Clause"
|
||||||
|
homepage="https://github.com/micheles/decorator"
|
||||||
|
changelog="https://raw.githubusercontent.com/micheles/decorator/master/CHANGES.md"
|
||||||
|
distfiles="${PYPI_SITE}/d/decorator/decorator-${version}.tar.gz"
|
||||||
|
checksum=72ecfba4320a893c53f9706bebb2d55c270c1e51a28789361aa93e4a21319ed5
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
vlicense LICENSE.txt
|
||||||
|
}
|
Loading…
Reference in New Issue