From 7f3d02587bbe8c749193555d0f502cc8f4f4125c Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Sun, 16 Oct 2016 19:34:53 +0200 Subject: [PATCH] python-cffi: rebuild for Python 3.5 Switch to python3-* pkgs. Convert python3.4-* pkg into dummy pkg. --- srcpkgs/python-cffi/template | 22 +++++++++++++--------- srcpkgs/python3-cffi | 1 + 2 files changed, 14 insertions(+), 9 deletions(-) create mode 120000 srcpkgs/python3-cffi diff --git a/srcpkgs/python-cffi/template b/srcpkgs/python-cffi/template index 152991e9ab4..a794fb91c52 100644 --- a/srcpkgs/python-cffi/template +++ b/srcpkgs/python-cffi/template @@ -1,12 +1,11 @@ # Template file for 'python-cffi' pkgname=python-cffi version=1.8.3 -revision=1 +revision=2 wrksrc="cffi-${version}" build_style=python-module -python_versions="2.7 3.4" -hostmakedepends="python-setuptools python3.4-setuptools libffi-devel" -makedepends="python-devel python3.4-devel libffi-devel" +hostmakedepends="python-setuptools python3-setuptools libffi-devel" +makedepends="python-devel python3-devel libffi-devel" depends="python-pycparser" pycompile_module="cffi" short_desc="C foreign function interface for Python2" @@ -20,13 +19,18 @@ post_install() { vlicense LICENSE } -python3.4-cffi_package() { - depends="python3.4-pycparser" - pycompile_version="3.4" +python3-cffi_package() { + depends="python3-pycparser" pycompile_module="cffi" - short_desc="${short_desc/Python2/Python3.4}" + replaces="python3.4-cffi>=0" + short_desc="${short_desc/Python2/Python3}" pkg_install() { - vmove usr/lib/python3.4 + vmove usr/lib/python3* vlicense LICENSE } } +python3.4-cffi_package() { + build_style=meta + short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)" + depends="python3-cffi>=${version}_${revision}" +} diff --git a/srcpkgs/python3-cffi b/srcpkgs/python3-cffi new file mode 120000 index 00000000000..8d25d17c4b3 --- /dev/null +++ b/srcpkgs/python3-cffi @@ -0,0 +1 @@ +python-cffi \ No newline at end of file