54 lines
1.5 KiB
Bash
54 lines
1.5 KiB
Bash
# Template file for 'pylint'
|
|
pkgname=pylint
|
|
version=1.5.5
|
|
revision=2
|
|
noarch=yes
|
|
wrksrc="pylint-${version}"
|
|
build_style=python-module
|
|
python_versions="2.7 3.4"
|
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
|
depends="python-setuptools python-astroid>=1.4.1 python-six"
|
|
pycompile_module="pylint"
|
|
short_desc="Python2 code static checker"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
homepage="http://www.pylint.org/"
|
|
license="GPL-2"
|
|
distfiles="${PYPI_SITE}/p/pylint/pylint-${version}.tar.gz"
|
|
checksum=15e949bbeda6c0a66799f34f720ab15e38d0a128e752cff5e74168527e5399c7
|
|
|
|
post_install() {
|
|
# no tests
|
|
rm -rf ${DESTDIR}/usr/lib/python*/site-packages/pylint/test
|
|
|
|
# python2/3 scripts and man pages
|
|
rm -f ${DESTDIR}/usr/bin/*
|
|
for f in epylint pylint pylint-gui pyreverse symilar; do
|
|
vbin build-2.7/scripts-2.7/${f}
|
|
vbin build-3.4/scripts-3.4/${f} ${f}3.4
|
|
vman man/${f}.1
|
|
vman man/${f}.1 ${f}3.4.1
|
|
done
|
|
|
|
# install example config and emacs files
|
|
vsconf examples/pylintrc
|
|
vsconf examples/pylintrc_camelcase
|
|
vsconf elisp/pylint.el
|
|
vsconf elisp/pylint-flymake.el
|
|
}
|
|
|
|
python3.4-pylint_package() {
|
|
noarch=yes
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
depends="python3.4-setuptools python3.4-astroid>=1.4.1 python3.4-six"
|
|
pycompile_version="3.4"
|
|
pycompile_module="pylint"
|
|
pkg_install() {
|
|
vmove usr/bin/*3.4
|
|
vmove usr/lib/python3.4
|
|
vmove usr/share/man/man1/*3.4.1
|
|
vsconf examples/pylintrc
|
|
vsconf examples/pylintrc_camelcase
|
|
vsconf elisp/pylint.el
|
|
vsconf elisp/pylint-flymake.el
|
|
}
|
|
}
|