From 0384432b774661b492dc331f004193fdef09d166 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Mon, 17 Oct 2016 10:00:16 +0200 Subject: [PATCH] pyflakes: rebuild for Python 3.5 Switch to python3-* pkgs. Convert python3.4-* pkg into dummy pkg. --- srcpkgs/pyflakes/template | 27 ++++++++++++++++----------- srcpkgs/python3-pyflakes | 1 + 2 files changed, 17 insertions(+), 11 deletions(-) create mode 120000 srcpkgs/python3-pyflakes diff --git a/srcpkgs/pyflakes/template b/srcpkgs/pyflakes/template index 72e427554f1..fc7274898f9 100644 --- a/srcpkgs/pyflakes/template +++ b/srcpkgs/pyflakes/template @@ -1,12 +1,11 @@ # Template file for 'pyflakes' pkgname=pyflakes version=1.3.0 -revision=1 +revision=2 noarch=yes build_style=python-module -python_versions="2.7 3.4" pycompile_module="pyflakes" -hostmakedepends="python-setuptools python3.4-setuptools" +hostmakedepends="python-setuptools python3-setuptools" depends="python-setuptools" short_desc="Passive checker of Python programs (Python2)" maintainer="Alessio Sergi " @@ -14,22 +13,28 @@ homepage="https://github.com/PyCQA/pyflakes" license="MIT" distfiles="${PYPI_SITE}/p/pyflakes/pyflakes-${version}.tar.gz" checksum=a4f93317c97a9d9ed71d6ecfe08b68e3de9fea3f4d94dcd1d9d83ccbf929bc31 -alternatives="pyflakes:pyflakes:/usr/bin/pyflakes2.7" +alternatives="pyflakes:pyflakes:/usr/bin/pyflakes2" post_install() { vlicense LICENSE } -python3.4-pyflakes_package() { +python3-pyflakes_package() { noarch=yes - pycompile_version="3.4" pycompile_module="pyflakes" - depends="python3.4-setuptools" - short_desc="${short_desc/Python2/Python3.4}" - alternatives="pyflakes:pyflakes:/usr/bin/pyflakes3.4" + replaces="python3.4-pyflakes>=0" + depends="python3-setuptools" + short_desc="${short_desc/Python2/Python3}" + alternatives="pyflakes:pyflakes:/usr/bin/pyflakes3" pkg_install() { - vmove usr/bin/*3.4 - vmove usr/lib/python3.4 + vmove usr/bin/*3 + vmove usr/lib/python3* vlicense LICENSE } } +python3.4-pyflakes_package() { + noarch=yes + build_style=meta + short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)" + depends="python3-pyflakes>=${version}_${revision}" +} diff --git a/srcpkgs/python3-pyflakes b/srcpkgs/python3-pyflakes new file mode 120000 index 00000000000..9a309e4c683 --- /dev/null +++ b/srcpkgs/python3-pyflakes @@ -0,0 +1 @@ +pyflakes \ No newline at end of file