mccabe: add python3.4 flavor
This commit is contained in:
parent
9748cb1a9a
commit
de396c8592
2 changed files with 18 additions and 4 deletions
|
@ -1,13 +1,14 @@
|
||||||
# Template file for 'mccabe'
|
# Template file for 'mccabe'
|
||||||
pkgname=mccabe
|
pkgname=mccabe
|
||||||
version=0.5.0
|
version=0.5.0
|
||||||
revision=1
|
revision=2
|
||||||
noarch=yes
|
noarch=yes
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
hostmakedepends="python-setuptools"
|
python_versions="2.7 3.4"
|
||||||
depends="python"
|
|
||||||
pycompile_module="mccabe.py"
|
pycompile_module="mccabe.py"
|
||||||
short_desc="McCabe complexity checker for Python"
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
||||||
|
depends="python"
|
||||||
|
short_desc="McCabe complexity checker for Python2"
|
||||||
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
||||||
homepage="https://github.com/PyCQA/mccabe"
|
homepage="https://github.com/PyCQA/mccabe"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
|
@ -20,3 +21,15 @@ pre_build() {
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
python3.4-mccabe_package() {
|
||||||
|
noarch=yes
|
||||||
|
pycompile_version="3.4"
|
||||||
|
pycompile_module="mccabe.py"
|
||||||
|
depends="python3.4"
|
||||||
|
short_desc="${short_desc/Python2/Python3.4}"
|
||||||
|
pkg_install() {
|
||||||
|
vmove usr/lib/python3.4
|
||||||
|
vlicense LICENSE
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
1
srcpkgs/python3.4-mccabe
Symbolic link
1
srcpkgs/python3.4-mccabe
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
mccabe
|
Loading…
Add table
Add a link
Reference in a new issue