From 10ac492243c1408a5dbe5a602f908518c1e454e5 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Sun, 16 Oct 2016 17:41:13 +0200 Subject: [PATCH] python-sphinx_rtd_theme: rebuild for Python 3.5 Switch to python3-* pkgs. Convert python3.4-* pkg into dummy pkg. --- srcpkgs/python-sphinx_rtd_theme/template | 22 +++++++++++++--------- srcpkgs/python3-sphinx_rtd_theme | 1 + 2 files changed, 14 insertions(+), 9 deletions(-) create mode 120000 srcpkgs/python3-sphinx_rtd_theme diff --git a/srcpkgs/python-sphinx_rtd_theme/template b/srcpkgs/python-sphinx_rtd_theme/template index f060546858e..1b6f3d6db2b 100644 --- a/srcpkgs/python-sphinx_rtd_theme/template +++ b/srcpkgs/python-sphinx_rtd_theme/template @@ -1,14 +1,12 @@ # Template file for 'python-sphinx_rtd_theme pkgname=python-sphinx_rtd_theme version=0.1.9 -revision=1 +revision=2 noarch=yes wrksrc="sphinx_rtd_theme-${version}" build_style=python-module -python_versions="2.7 3.4" -hostmakedepends="python-setuptools python3.4-setuptools" +hostmakedepends="python-setuptools python3-setuptools" depends="python" -replaces="python-sphinx-rtd-theme>=0" pycompile_module="sphinx_rtd_theme" short_desc="ReadTheDocs.org theme for Sphinx (Python2)" maintainer="Alessio Sergi " @@ -17,13 +15,19 @@ license="MIT" distfiles="${PYPI_SITE}/s/sphinx_rtd_theme/sphinx_rtd_theme-${version}.tar.gz" checksum=273846f8aacac32bf9542365a593b495b68d8035c2e382c9ccedcac387c9a0a1 -python3.4-sphinx_rtd_theme_package() { +python3-sphinx_rtd_theme_package() { noarch=yes - depends="python3.4" - pycompile_version="3.4" + depends="python3" pycompile_module="sphinx_rtd_theme" - short_desc="${short_desc/Python2/Python3.4}" + replaces="python3.4-sphinx_rtd_theme>=0" + short_desc="${short_desc/Python2/Python3}" pkg_install() { - vmove usr/lib/python3.4 + vmove usr/lib/python3* } } +python3.4-sphinx_rtd_theme_package() { + noarch=yes + build_style=meta + short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)" + depends="python3-sphinx_rtd_theme>=${version}_${revision}" +} diff --git a/srcpkgs/python3-sphinx_rtd_theme b/srcpkgs/python3-sphinx_rtd_theme new file mode 120000 index 00000000000..0974a11bf46 --- /dev/null +++ b/srcpkgs/python3-sphinx_rtd_theme @@ -0,0 +1 @@ +python-sphinx_rtd_theme \ No newline at end of file