From 38f5421a732265d605a9a52274fd55ed9b26938f Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Sun, 16 Oct 2016 22:23:53 +0200 Subject: [PATCH] python-Markdown: rebuild for Python 3.5 Switch to python3-* pkgs. Convert python3.4-* pkg into dummy pkg. --- srcpkgs/python-Markdown/template | 27 ++++++++++++++++----------- srcpkgs/python3-Markdown | 1 + 2 files changed, 17 insertions(+), 11 deletions(-) create mode 120000 srcpkgs/python3-Markdown diff --git a/srcpkgs/python-Markdown/template b/srcpkgs/python-Markdown/template index ab227a8cea..5bc085724d 100644 --- a/srcpkgs/python-Markdown/template +++ b/srcpkgs/python-Markdown/template @@ -1,12 +1,11 @@ # Template file for 'python-Markdown' pkgname=python-Markdown version=2.6.7 -revision=2 +revision=3 noarch=yes wrksrc="Markdown-${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="markdown" short_desc="Python2 implementation of John Gruber's Markdown" @@ -15,22 +14,28 @@ homepage="https://github.com/waylan/Python-Markdown" license="3-clause-BSD" distfiles="${PYPI_SITE}/M/Markdown/Markdown-${version}.tar.gz" checksum=daebf24846efa7ff269cfde8c41a48bb2303920c7b2c7c5e04fa82e6282d05c0 -alternatives="markdown:markdown_py:/usr/bin/markdown_py2.7" +alternatives="markdown:markdown_py:/usr/bin/markdown_py2" post_install() { vlicense LICENSE.md LICENSE } -python3.4-Markdown_package() { +python3-Markdown_package() { noarch=yes - depends="python3.4" - pycompile_version="3.4" + depends="python3" pycompile_module="markdown" - short_desc="${short_desc/Python2/Python3.4}" - alternatives="markdown:markdown_py:/usr/bin/markdown_py3.4" + replaces="python3.4-Markdown>=0" + short_desc="${short_desc/Python2/Python3}" + alternatives="markdown:markdown_py:/usr/bin/markdown_py3" pkg_install() { - vmove usr/bin/markdown_py3.4 - vmove usr/lib/python3.4 + vmove usr/bin/markdown_py3 + vmove usr/lib/python3* vlicense LICENSE.md LICENSE } } +python3.4-Markdown_package() { + noarch=yes + build_style=meta + short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)" + depends="python3-Markdown>=${version}_${revision}" +} diff --git a/srcpkgs/python3-Markdown b/srcpkgs/python3-Markdown new file mode 120000 index 0000000000..d026ce0bc3 --- /dev/null +++ b/srcpkgs/python3-Markdown @@ -0,0 +1 @@ +python-Markdown \ No newline at end of file