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