From 91c1fee99fff8085f712e67d3d89af773ee8bbb3 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Mon, 17 Oct 2016 10:23:42 +0200 Subject: [PATCH] python-backports.ssl_match_hostname: rebuild for Python 3.5 Switch to python3-* pkgs. Convert python3.4-* pkg into dummy pkg. --- .../template | 21 ++++++++++++------- srcpkgs/python3-backports.ssl_match_hostname | 1 + 2 files changed, 14 insertions(+), 8 deletions(-) create mode 120000 srcpkgs/python3-backports.ssl_match_hostname diff --git a/srcpkgs/python-backports.ssl_match_hostname/template b/srcpkgs/python-backports.ssl_match_hostname/template index cf19eb8fff..fe3a1d391e 100644 --- a/srcpkgs/python-backports.ssl_match_hostname/template +++ b/srcpkgs/python-backports.ssl_match_hostname/template @@ -1,13 +1,12 @@ # Template file for 'python-backports.ssl_match_hostname' pkgname=python-backports.ssl_match_hostname version=3.5.0.1 -revision=1 +revision=2 noarch=yes wrksrc="backports.ssl_match_hostname-${version}" build_style=python-module -python_versions="2.7 3.4" pycompile_module="backports" -hostmakedepends="python python3.4" +hostmakedepends="python python3" depends="python-backports" short_desc="The ssl.match_hostname() function from Python 3.5" maintainer="Alessio Sergi " @@ -21,13 +20,19 @@ post_install() { rm -f ${DESTDIR}/usr/lib/python*/site-packages/backports/__init__.py } -python3.4-backports.ssl_match_hostname_package() { +python3-backports.ssl_match_hostname_package() { noarch=yes - pycompile_version="3.4" + depends="python3-backports" pycompile_module="backports" - depends="python3.4-backports" - short_desc="${short_desc/Python2/Python3.4}" + replaces="python3.4-backports.ssl_match_hostname>=0" + short_desc="${short_desc}" pkg_install() { - vmove usr/lib/python3.4 + vmove usr/lib/python3* } } +python3.4-backports.ssl_match_hostname_package() { + noarch=yes + build_style=meta + short_desc="${short_desc} (transitional dummy package)" + depends="python3-backports.ssl_match_hostname>=${version}_${revision}" +} diff --git a/srcpkgs/python3-backports.ssl_match_hostname b/srcpkgs/python3-backports.ssl_match_hostname new file mode 120000 index 0000000000..b51813f1d8 --- /dev/null +++ b/srcpkgs/python3-backports.ssl_match_hostname @@ -0,0 +1 @@ +python-backports.ssl_match_hostname \ No newline at end of file