From 7eaf1132723f3b81e70bcb59379e2ccf11246176 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Sun, 16 Oct 2016 18:50:57 +0200 Subject: [PATCH] python-curl: rebuild for Python 3.5 Switch to python3-* pkgs. Convert python3.4-* pkg into dummy pkg. --- srcpkgs/python-curl/template | 18 +++++++++++------- srcpkgs/python3-curl | 1 + 2 files changed, 12 insertions(+), 7 deletions(-) create mode 120000 srcpkgs/python3-curl diff --git a/srcpkgs/python-curl/template b/srcpkgs/python-curl/template index 9d60378f132..ade4faefc98 100644 --- a/srcpkgs/python-curl/template +++ b/srcpkgs/python-curl/template @@ -1,11 +1,10 @@ # Template file for 'python-curl' pkgname=python-curl version=7.43.0 -revision=3 +revision=4 wrksrc="pycurl-${version}" build_style=python-module -python_versions="2.7 3.4" -hostmakedepends="python-devel python3.4-devel" +hostmakedepends="python-devel python3-devel" makedepends="libressl-devel libcurl-devel ${hostmakedepends}" pycompile_module="curl" short_desc="Python2 interface to cURL library" @@ -19,11 +18,16 @@ pre_build() { sed -i "/setup_args\['data_files'\] = /d" setup.py } -python3.4-curl_package() { - pycompile_version="3.4" +python3-curl_package() { pycompile_module="curl" - short_desc="${short_desc/Python2/Python3.4}" + replaces="python3.4-curl>=0" + short_desc="${short_desc/Python2/Python3}" pkg_install() { - vmove usr/lib/python3.4 + vmove usr/lib/python3* } } +python3.4-curl_package() { + build_style=meta + short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)" + depends="python3-curl>=${version}_${revision}" +} diff --git a/srcpkgs/python3-curl b/srcpkgs/python3-curl new file mode 120000 index 00000000000..c90170b4eff --- /dev/null +++ b/srcpkgs/python3-curl @@ -0,0 +1 @@ +python-curl \ No newline at end of file