From 071f46de03586f5a5b1829e299f88a3ccd1e8eb4 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Sun, 16 Oct 2016 18:49:50 +0200 Subject: [PATCH] pycodestyle: rebuild for Python 3.5 Switch to python3-* pkgs. Convert python3.4-* pkg into dummy pkg. --- srcpkgs/pycodestyle/template | 27 ++++++++++++++++----------- srcpkgs/python3-pycodestyle | 1 + 2 files changed, 17 insertions(+), 11 deletions(-) create mode 120000 srcpkgs/python3-pycodestyle diff --git a/srcpkgs/pycodestyle/template b/srcpkgs/pycodestyle/template index c39c292a88d..848a7f4ce41 100644 --- a/srcpkgs/pycodestyle/template +++ b/srcpkgs/pycodestyle/template @@ -1,12 +1,11 @@ # Template file for 'pycodestyle' pkgname=pycodestyle version=2.0.0 -revision=2 +revision=3 noarch=yes build_style=python-module -python_versions="2.7 3.4" pycompile_module="pycodestyle.py" -hostmakedepends="python-setuptools python3.4-setuptools" +hostmakedepends="python-setuptools python3-setuptools" depends="python-setuptools" short_desc="Python2 style guide checker (formerly called pep8)" maintainer="Alessio Sergi " @@ -14,7 +13,7 @@ homepage="https://github.com/PyCQA/pycodestyle" license="MIT" distfiles="${PYPI_SITE}/p/pycodestyle/pycodestyle-${version}.tar.gz" checksum=37f0420b14630b0eaaf452978f3a6ea4816d787c3e6dcbba6fb255030adae2e7 -alternatives="pycodestyle:pycodestyle:/usr/bin/pycodestyle2.7" +alternatives="pycodestyle:pycodestyle:/usr/bin/pycodestyle2" post_install() { # fix permissions @@ -25,16 +24,22 @@ post_install() { vlicense LICENSE } -python3.4-pycodestyle_package() { +python3-pycodestyle_package() { noarch=yes - pycompile_version="3.4" pycompile_module="pycodestyle.py" - depends="python3.4-setuptools" - short_desc="${short_desc/Python2/Python3.4}" - alternatives="pycodestyle:pycodestyle:/usr/bin/pycodestyle3.4" + replaces="python3.4-pycodestyle>=0" + depends="python3-setuptools" + short_desc="${short_desc/Python2/Python3}" + alternatives="pycodestyle:pycodestyle:/usr/bin/pycodestyle3" pkg_install() { - vmove usr/bin/*3.4 - vmove usr/lib/python3.4 + vmove usr/bin/*3 + vmove usr/lib/python3* vlicense LICENSE } } +python3.4-pycodestyle_package() { + noarch=yes + build_style=meta + short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)" + depends="python3-pycodestyle>=${version}_${revision}" +} diff --git a/srcpkgs/python3-pycodestyle b/srcpkgs/python3-pycodestyle new file mode 120000 index 00000000000..a8e7b5b4a2c --- /dev/null +++ b/srcpkgs/python3-pycodestyle @@ -0,0 +1 @@ +pycodestyle \ No newline at end of file