From 7eba369bdabc2f9103ab2488107731dfd9ea1184 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Fri, 24 Jun 2016 19:46:45 +0200 Subject: [PATCH] pyflakes: add python3.4 flavor --- srcpkgs/pyflakes/template | 24 ++++++++++++++++++++---- srcpkgs/python3.4-pyflakes | 1 + 2 files changed, 21 insertions(+), 4 deletions(-) create mode 120000 srcpkgs/python3.4-pyflakes diff --git a/srcpkgs/pyflakes/template b/srcpkgs/pyflakes/template index 09cbdf1337..26c3ff065c 100644 --- a/srcpkgs/pyflakes/template +++ b/srcpkgs/pyflakes/template @@ -1,19 +1,35 @@ # Template file for 'pyflakes' pkgname=pyflakes version=1.2.3 -revision=1 +revision=2 noarch=yes build_style=python-module -hostmakedepends="python-setuptools" -depends="${hostmakedepends}" +python_versions="2.7 3.4" pycompile_module="pyflakes" -short_desc="Passive checker of Python programs" +hostmakedepends="python-setuptools python3.4-setuptools" +depends="python-setuptools" +short_desc="Passive checker of Python programs (Python2)" maintainer="Alessio Sergi " homepage="https://github.com/pyflakes/pyflakes" license="MIT" distfiles="${PYPI_SITE}/p/pyflakes/pyflakes-${version}.tar.gz" checksum=2e4a1b636d8809d8f0a69f341acf15b2e401a3221ede11be439911d23ce2139e +alternatives="pyflakes:pyflakes:/usr/bin/pyflakes2.7" post_install() { vlicense LICENSE } + +python3.4-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" + pkg_install() { + vmove usr/bin/*3.4 + vmove usr/lib/python3.4 + vlicense LICENSE + } +} diff --git a/srcpkgs/python3.4-pyflakes b/srcpkgs/python3.4-pyflakes new file mode 120000 index 0000000000..9a309e4c68 --- /dev/null +++ b/srcpkgs/python3.4-pyflakes @@ -0,0 +1 @@ +pyflakes \ No newline at end of file