python-decorator: add python3.4 subpkg with pycompile support

Fix build with python3.4.
This commit is contained in:
Alessio Sergi 2014-06-29 19:19:29 +02:00
parent d761d4fa77
commit b8f1f42827
2 changed files with 21 additions and 7 deletions

View File

@ -1,16 +1,29 @@
# Template file for 'python-decorator'
pkgname=python-decorator
version=3.3.2
version=3.4.0
revision=1
noarch=yes
wrksrc="decorator-${version}"
build_style=python-module
makedepends="python-devel"
noarch="yes"
python_versions="2.7 3.4"
hostmakedepends="python-setuptools python3.4-setuptools"
makedepends="python-devel python3.4-devel"
depends="python"
pycompile_module="decorator.py"
short_desc="Python Decorator module"
short_desc="Python2 decorator module"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://pypi.python.org/pypi/decorator"
homepage="https://pypi.python.org/pypi/decorator/"
license="BSD"
distfiles="http://pypi.python.org/packages/source/d/decorator/decorator-$version.tar.gz"
checksum=c878e3c9a4015893fddcc7a145017bd54bd51cda0eb234cab6a20fa02540cb1f
distfiles="https://pypi.python.org/packages/source/d/decorator/decorator-${version}.tar.gz"
checksum=c20b404cbb7ee5cebd506688e0114e3cd76f5ce233805a51f36e1a7988d9d783
python3.4-decorator_package() {
noarch=yes
depends="python3.4"
pycompile_version="3.4"
pycompile_module="decorator.py"
short_desc="${short_desc/Python2/Python3.4}"
pkg_install() {
vmove usr/lib/python3.4
}
}

1
srcpkgs/python3.4-decorator Symbolic link
View File

@ -0,0 +1 @@
python-decorator