2014-12-14 14:42:00 +00:00
|
|
|
# Template file for 'pylint'
|
|
|
|
pkgname=pylint
|
2015-01-17 16:07:00 +00:00
|
|
|
version=1.4.1
|
2014-12-14 14:42:00 +00:00
|
|
|
revision=1
|
|
|
|
noarch=yes
|
|
|
|
wrksrc="pylint-${version}"
|
|
|
|
build_style=python-module
|
|
|
|
hostmakedepends="python-setuptools"
|
|
|
|
depends="${hostmakedepends} python-logilab-common python-astroid python-six"
|
|
|
|
pycompile_module="pylint"
|
|
|
|
short_desc="Python 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"
|
2015-01-17 16:07:00 +00:00
|
|
|
checksum=3e383060edd432cbbd0e8bd686f5facfe918047ffe1bb401ab5897cb6ee0f030
|
2014-12-14 14:42:00 +00:00
|
|
|
|
|
|
|
post_install() {
|
|
|
|
# no tests
|
|
|
|
rm -rf ${DESTDIR}/usr/lib/python2.7/site-packages/pylint/test
|
|
|
|
|
|
|
|
# install man
|
|
|
|
vmkdir usr/share/man/man1
|
|
|
|
install -m644 man/*.1 ${DESTDIR}/usr/share/man/man1
|
|
|
|
|
|
|
|
# install emacs files
|
|
|
|
vmkdir usr/share/emacs/site-lisp/pylint
|
|
|
|
install -m644 elisp/*.el ${DESTDIR}/usr/share/emacs/site-lisp/pylint
|
|
|
|
|
|
|
|
# install example config files
|
|
|
|
vsconf examples/pylintrc
|
|
|
|
vsconf examples/pylintrc_camelcase
|
|
|
|
}
|
|
|
|
|
|
|
|
pylint-gui_package() {
|
|
|
|
noarch=yes
|
|
|
|
short_desc+=" - Tk interface"
|
|
|
|
depends="${sourcepkg}>=${version}_${revision} python-tkinter"
|
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
pylint-emacs_package() {
|
|
|
|
noarch=yes
|
|
|
|
short_desc+=" - Emacs interface"
|
|
|
|
depends="${sourcepkg}>=${version}_${revision} virtual?emacs"
|
|
|
|
pycompile_module="pylint"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/epylint
|
|
|
|
vmove usr/lib/python2.7/site-packages/pylint/epylint.py
|
|
|
|
vmove usr/share/emacs/site-lisp
|
|
|
|
vmove usr/share/man/man1/epylint.1
|
|
|
|
}
|
|
|
|
}
|