35 lines
845 B
Bash
35 lines
845 B
Bash
# Template file for 'mccabe'
|
|
pkgname=mccabe
|
|
version=0.5.2
|
|
revision=1
|
|
noarch=yes
|
|
build_style=python-module
|
|
python_versions="2.7 3.4"
|
|
pycompile_module="mccabe.py"
|
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
|
depends="python"
|
|
short_desc="McCabe complexity checker for Python2"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
homepage="https://github.com/PyCQA/mccabe"
|
|
license="MIT"
|
|
distfiles="${PYPI_SITE}/m/mccabe/mccabe-${version}.tar.gz"
|
|
checksum=3473f06c8b757bbb5cdf295099bf64032e5f7d6fe0ec2f97ee9b23cb0a435aff
|
|
|
|
pre_build() {
|
|
sed -i '/setup_requires=/d' setup.py
|
|
}
|
|
post_install() {
|
|
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
|
|
}
|
|
}
|