From 5eab0a9e07eb13a3ea1faf62b9ac77630bc5ef2d Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Mon, 17 Oct 2016 00:44:14 +0200 Subject: [PATCH] python-BeautifulSoup4: rebuild for Python 3.5 Switch to python3-* pkgs. Convert python3.4-* pkg into dummy pkg. --- srcpkgs/python-BeautifulSoup4/template | 21 +++++++++++++-------- srcpkgs/python3-BeautifulSoup4 | 1 + 2 files changed, 14 insertions(+), 8 deletions(-) create mode 120000 srcpkgs/python3-BeautifulSoup4 diff --git a/srcpkgs/python-BeautifulSoup4/template b/srcpkgs/python-BeautifulSoup4/template index 2171a5c1e0a..ae2ab10e6f4 100644 --- a/srcpkgs/python-BeautifulSoup4/template +++ b/srcpkgs/python-BeautifulSoup4/template @@ -1,12 +1,11 @@ # Template file for 'python-BeautifulSoup4' pkgname=python-BeautifulSoup4 version=4.5.1 -revision=1 +revision=2 noarch=yes wrksrc="beautifulsoup4-${version}" build_style=python-module -python_versions="2.7 3.4" -hostmakedepends="python-setuptools python3.4-setuptools" +hostmakedepends="python-setuptools python3-setuptools" depends="python" pycompile_module="bs4" short_desc="Python2 HTML/XML parser" @@ -20,14 +19,20 @@ post_install() { vlicense COPYING.txt LICENSE } -python3.4-BeautifulSoup4_package() { +python3-BeautifulSoup4_package() { + replaces="python3.4-BeautifulSoup4>=0" noarch=yes - depends="python3.4" - pycompile_version="3.4" + depends="python3" pycompile_module="bs4" - short_desc="${short_desc/Python2/Python3.4}" + short_desc="${short_desc/Python2/Python3}" pkg_install() { - vmove usr/lib/python3.4 + vmove usr/lib/python3* vlicense COPYING.txt LICENSE } } +python3.4-BeautifulSoup4_package() { + noarch=yes + build_style=meta + short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)" + depends="python3-BeautifulSoup4>=${version}_${revision}" +} diff --git a/srcpkgs/python3-BeautifulSoup4 b/srcpkgs/python3-BeautifulSoup4 new file mode 120000 index 00000000000..3b3f906dbe7 --- /dev/null +++ b/srcpkgs/python3-BeautifulSoup4 @@ -0,0 +1 @@ +python-BeautifulSoup4 \ No newline at end of file