mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 15:43:49 +02:00
pylint: use alternatives
This commit is contained in:
parent
372d4a28b2
commit
ceac490faa
1 changed files with 26 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'pylint'
|
# Template file for 'pylint'
|
||||||
pkgname=pylint
|
pkgname=pylint
|
||||||
version=1.5.5
|
version=1.5.5
|
||||||
revision=2
|
revision=3
|
||||||
noarch=yes
|
noarch=yes
|
||||||
wrksrc="pylint-${version}"
|
wrksrc="pylint-${version}"
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
|
@ -16,16 +16,25 @@ license="GPL-2"
|
||||||
distfiles="${PYPI_SITE}/p/pylint/pylint-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/p/pylint/pylint-${version}.tar.gz"
|
||||||
checksum=15e949bbeda6c0a66799f34f720ab15e38d0a128e752cff5e74168527e5399c7
|
checksum=15e949bbeda6c0a66799f34f720ab15e38d0a128e752cff5e74168527e5399c7
|
||||||
|
|
||||||
|
alternatives="
|
||||||
|
pylint:epylint:/usr/bin/epylint2.7
|
||||||
|
pylint:pylint:/usr/bin/pylint2.7
|
||||||
|
pylint:pylint-gui:/usr/bin/pylint-gui2.7
|
||||||
|
pylint:pyreverse:/usr/bin/pyreverse2.7
|
||||||
|
pylint:symilar:/usr/bin/symilar2.7
|
||||||
|
pylint:epylint.1:/usr/share/man/man1/epylint2.7.1
|
||||||
|
pylint:pylint.1:/usr/share/man/man1/pylint2.7.1
|
||||||
|
pylint:pylint-gui.1:/usr/share/man/man1/pylint-gui2.7.1
|
||||||
|
pylint:pyreverse.1:/usr/share/man/man1/pyreverse2.7.1
|
||||||
|
pylint:symilar.1:/usr/share/man/man1/symilar2.7.1"
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
# no tests
|
# no tests
|
||||||
rm -rf ${DESTDIR}/usr/lib/python*/site-packages/pylint/test
|
rm -rf ${DESTDIR}/usr/lib/python*/site-packages/pylint/test
|
||||||
|
|
||||||
# python2/3 scripts and man pages
|
# create versioned man pages
|
||||||
rm -f ${DESTDIR}/usr/bin/*
|
|
||||||
for f in epylint pylint pylint-gui pyreverse symilar; do
|
for f in epylint pylint pylint-gui pyreverse symilar; do
|
||||||
vbin build-2.7/scripts-2.7/${f}
|
vman man/${f}.1 ${f}2.7.1
|
||||||
vbin build-3.4/scripts-3.4/${f} ${f}3.4
|
|
||||||
vman man/${f}.1
|
|
||||||
vman man/${f}.1 ${f}3.4.1
|
vman man/${f}.1 ${f}3.4.1
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -37,6 +46,17 @@ post_install() {
|
||||||
}
|
}
|
||||||
|
|
||||||
python3.4-pylint_package() {
|
python3.4-pylint_package() {
|
||||||
|
alternatives="
|
||||||
|
pylint:epylint:/usr/bin/epylint3.4
|
||||||
|
pylint:pylint:/usr/bin/pylint3.4
|
||||||
|
pylint:pylint-gui:/usr/bin/pylint-gui3.4
|
||||||
|
pylint:pyreverse:/usr/bin/pyreverse3.4
|
||||||
|
pylint:symilar:/usr/bin/symilar3.4
|
||||||
|
pylint:epylint.1:/usr/share/man/man1/epylint3.4.1
|
||||||
|
pylint:pylint.1:/usr/share/man/man1/pylint3.4.1
|
||||||
|
pylint:pylint-gui.1:/usr/share/man/man1/pylint-gui3.4.1
|
||||||
|
pylint:pyreverse.1:/usr/share/man/man1/pyreverse3.4.1
|
||||||
|
pylint:symilar.1:/usr/share/man/man1/symilar3.4.1"
|
||||||
noarch=yes
|
noarch=yes
|
||||||
short_desc="${short_desc/Python2/Python3.4}"
|
short_desc="${short_desc/Python2/Python3.4}"
|
||||||
depends="python3.4-setuptools python3.4-astroid>=1.4.1 python3.4-six"
|
depends="python3.4-setuptools python3.4-astroid>=1.4.1 python3.4-six"
|
||||||
|
|
Loading…
Add table
Reference in a new issue