void-packages/srcpkgs/pylint/template

80 lines
2.2 KiB
Bash
Raw Normal View History

2014-12-14 15:42:00 +01:00
# Template file for 'pylint'
pkgname=pylint
2015-07-02 11:00:00 +02:00
version=1.4.4
2015-08-20 03:50:34 +02:00
revision=2
replaces="pylint<1.4.4_1"
2014-12-14 15:42:00 +01:00
noarch=yes
wrksrc="pylint-${version}"
build_style=python-module
2015-08-20 03:50:34 +02:00
python_versions="2.7 3.4"
hostmakedepends="python-setuptools python3.4-setuptools"
depends="python-setuptools python-astroid python-six"
2014-12-14 15:42:00 +01:00
pycompile_module="pylint"
2015-08-20 03:50:34 +02:00
short_desc="Python2 code static checker"
_short_desc="${short_desc/Python2/Python3.4}"
2014-12-14 15:42:00 +01:00
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="http://www.pylint.org/"
license="GPL-2"
distfiles="${PYPI_SITE}/p/pylint/pylint-${version}.tar.gz"
2015-07-02 11:00:00 +02:00
checksum=0561af4d6bd4fa9e8e02f3997fe93684f7187c57bcef9db8c2ea9fb0d7d2f022
2014-12-14 15:42:00 +01:00
post_install() {
# no tests
2015-08-20 03:50:34 +02:00
rm -rf ${DESTDIR}/usr/lib/python*/site-packages/pylint/test
2014-12-14 15:42:00 +01:00
2015-08-20 03:50:34 +02:00
# python2/3 scripts and man pages
for f in epylint pylint pylint-gui pyreverse symilar; do
rm -f ${DESTDIR}/usr/bin/${f}
vbin build-2.7/scripts-2.7/${f}
vbin build-3.4/scripts-3.4/${f} python3-${f}
vman man/${f}.1
vman man/${f}.1 python3-${f}.1
done
2014-12-14 15:42:00 +01:00
2015-08-20 03:50:34 +02:00
# install example config and emacs files
2014-12-14 15:42:00 +01:00
vsconf examples/pylintrc
vsconf examples/pylintrc_camelcase
2015-08-20 03:50:34 +02:00
vsconf elisp/pylint.el
vsconf elisp/pylint-flymake.el
2014-12-14 15:42:00 +01:00
}
pylint-gui_package() {
noarch=yes
short_desc+=" - Tk interface"
2015-03-15 15:53:35 +01:00
depends="${sourcepkg}-${version}_${revision} python-tkinter"
2014-12-14 15:42:00 +01:00
pycompile_module="pylint"
pkg_install() {
vmove usr/bin/pylint-gui
vmove usr/lib/python2.7/site-packages/pylint/gui.py
vmove usr/share/man/man1/pylint-gui.1
}
}
2015-08-20 03:50:34 +02:00
python3.4-pylint-gui_package() {
noarch=yes
short_desc="${_short_desc} - Tk interface"
depends="python3.4-pylint-${version}_${revision} python3.4-tkinter"
pycompile_version="3.4"
pycompile_module="pylint"
pkg_install() {
vmove usr/bin/python3-pylint-gui
vmove usr/lib/python3.4/site-packages/pylint/gui.py
vmove usr/share/man/man1/python3-pylint-gui.1
}
}
python3.4-pylint_package() {
2014-12-14 15:42:00 +01:00
noarch=yes
2015-08-20 03:50:34 +02:00
short_desc="${_short_desc}"
depends="python3.4-setuptools python3.4-astroid python3.4-six"
pycompile_version="3.4"
2014-12-14 15:42:00 +01:00
pycompile_module="pylint"
pkg_install() {
2015-08-20 03:50:34 +02:00
vmove usr/bin/python3-*
vmove usr/lib/python3.4
vmove usr/share/man/man1/python3-*.1
vsconf examples/pylintrc
vsconf examples/pylintrc_camelcase
vsconf elisp/pylint.el
vsconf elisp/pylint-flymake.el
2014-12-14 15:42:00 +01:00
}
}