From b8f1f4282708c4f3efd32fad5e6d76e1a1de3cf5 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Sun, 29 Jun 2014 19:19:29 +0200 Subject: [PATCH] python-decorator: add python3.4 subpkg with pycompile support Fix build with python3.4. --- srcpkgs/python-decorator/template | 27 ++++++++++++++++++++------- srcpkgs/python3.4-decorator | 1 + 2 files changed, 21 insertions(+), 7 deletions(-) create mode 120000 srcpkgs/python3.4-decorator diff --git a/srcpkgs/python-decorator/template b/srcpkgs/python-decorator/template index ff46270c43f..dac7700c767 100644 --- a/srcpkgs/python-decorator/template +++ b/srcpkgs/python-decorator/template @@ -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 " -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 + } +} diff --git a/srcpkgs/python3.4-decorator b/srcpkgs/python3.4-decorator new file mode 120000 index 00000000000..75413c5de39 --- /dev/null +++ b/srcpkgs/python3.4-decorator @@ -0,0 +1 @@ +python-decorator \ No newline at end of file