From b968a494908e37d0e6bbf3d8ae6b1877238522f3 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Fri, 19 Jun 2015 19:25:25 +0200 Subject: [PATCH] python-rencode: really build the C extension; add python3.4 subpkg --- srcpkgs/python-rencode/template | 25 ++++++++++++++++++------- srcpkgs/python3.4-rencode | 1 + 2 files changed, 19 insertions(+), 7 deletions(-) create mode 120000 srcpkgs/python3.4-rencode diff --git a/srcpkgs/python-rencode/template b/srcpkgs/python-rencode/template index 335a05eb5ac..64262d9822a 100644 --- a/srcpkgs/python-rencode/template +++ b/srcpkgs/python-rencode/template @@ -1,14 +1,25 @@ # Template file for 'python-rencode' -pycompile_module=rencode -pkgname=python-${pycompile_module} +pkgname=python-rencode version=1.0.3 -revision=1 -wrksrc="${pycompile_module}-${version}" +revision=2 +wrksrc="rencode-${version}" build_style=python-module -hostmakedepends="python python-Cython" -short_desc="Python module for fast (basic) object serialization similar to bencode" +python_versions="2.7 3.4" +hostmakedepends="python-setuptools python3.4-setuptools python-Cython python3.4-Cython" +makedepends="python-devel python3.4-devel" +pycompile_module="rencode" +short_desc="Python2 module for fast (basic) object serialization" maintainer="Andrea Brancaleoni " license="GPL-3" -homepage="https://github.com/aresch/${pycompile_module}" +homepage="https://github.com/aresch/rencode" distfiles="${homepage}/archive/v${version}.tar.gz" checksum=13c47ca2f9cf060083de7e5886e725731863c4a5d95545c68e0bb3a2149da444 + +python3.4-rencode_package() { + pycompile_version="3.4" + pycompile_module="rencode" + short_desc="${short_desc/Python2/Python3.4}" + pkg_install() { + vmove usr/lib/python3.4 + } +} diff --git a/srcpkgs/python3.4-rencode b/srcpkgs/python3.4-rencode new file mode 120000 index 00000000000..9b67925b92f --- /dev/null +++ b/srcpkgs/python3.4-rencode @@ -0,0 +1 @@ +python-rencode \ No newline at end of file