c176209ed5
since python-astroid does not support python2 any more and newer versions of pylint require a 2.x version of it, ship the 1.9.5 release for python2. fixes #14441
49 lines
1.5 KiB
Bash
49 lines
1.5 KiB
Bash
# Template file for 'pylint'
|
|
pkgname=pylint
|
|
reverts="2.3.1_1"
|
|
version=1.9.5
|
|
revision=1
|
|
archs=noarch
|
|
wrksrc="pylint-${version}"
|
|
build_style=python2-module
|
|
pycompile_module="pylint"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-setuptools python-astroid python-six python-isort python-mccabe
|
|
python-backports.configparser python-backports.functools_lru_cache
|
|
python-singledispatch"
|
|
short_desc="Python2 code static checker"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
homepage="http://www.pylint.org/"
|
|
license="GPL-2.0-or-later"
|
|
distfiles="${PYPI_SITE}/p/pylint/pylint-${version}.tar.gz"
|
|
checksum=97a42df23d436c70132971d1dcb9efad2fe5c0c6add55b90161e773caf729300
|
|
|
|
alternatives="
|
|
pylint:epylint:/usr/bin/epylint2
|
|
pylint:pylint:/usr/bin/pylint2
|
|
pylint:pyreverse:/usr/bin/pyreverse2
|
|
pylint:symilar:/usr/bin/symilar2
|
|
pylint:epylint.1:/usr/share/man/man1/epylint2.1
|
|
pylint:pylint.1:/usr/share/man/man1/pylint2.1
|
|
pylint:pyreverse.1:/usr/share/man/man1/pyreverse2.1
|
|
pylint:symilar.1:/usr/share/man/man1/symilar2.1"
|
|
|
|
pre_build() {
|
|
sed -i '/setup_requires=/d' setup.py
|
|
}
|
|
post_install() {
|
|
# no tests
|
|
rm -rf ${DESTDIR}/usr/lib/python*/site-packages/pylint/test
|
|
|
|
# create versioned man pages
|
|
for f in epylint pylint pyreverse symilar; do
|
|
vman man/${f}.1 ${f}2.1
|
|
mv ${DESTDIR}/usr/bin/${f} ${DESTDIR}/usr/bin/${f}2
|
|
done
|
|
|
|
# install example config and emacs files
|
|
vsconf examples/pylintrc
|
|
vsconf examples/pylintrc_camelcase
|
|
vsconf elisp/pylint.el
|
|
vsconf elisp/pylint-flymake.el
|
|
}
|