pylint: merge -gui subpkg into main pkg

This commit is contained in:
Alessio Sergi 2015-11-18 23:49:43 +01:00
parent b42fdb03c3
commit b613ca61c1
5 changed files with 11 additions and 34 deletions

View file

@ -1 +0,0 @@
pylint

View file

@ -0,0 +1 @@
To use pylint GUI install python-tkinter.

View file

@ -0,0 +1 @@
To use pylint GUI install python3.4-tkinter.

View file

@ -1,8 +1,8 @@
# Template file for 'pylint' # Template file for 'pylint'
pkgname=pylint pkgname=pylint
version=1.4.4 version=1.4.4
revision=2 revision=3
replaces="pylint<1.4.4_1" replaces="pylint-gui>=0"
noarch=yes noarch=yes
wrksrc="pylint-${version}" wrksrc="pylint-${version}"
build_style=python-module build_style=python-module
@ -11,7 +11,6 @@ hostmakedepends="python-setuptools python3.4-setuptools"
depends="python-setuptools python-astroid python-six" depends="python-setuptools python-astroid python-six"
pycompile_module="pylint" pycompile_module="pylint"
short_desc="Python2 code static checker" short_desc="Python2 code static checker"
_short_desc="${short_desc/Python2/Python3.4}"
maintainer="Alessio Sergi <al3hex@gmail.com>" maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="http://www.pylint.org/" homepage="http://www.pylint.org/"
license="GPL-2" license="GPL-2"
@ -23,12 +22,12 @@ post_install() {
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 # python2/3 scripts and 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
rm -f ${DESTDIR}/usr/bin/${f}
vbin build-2.7/scripts-2.7/${f} vbin build-2.7/scripts-2.7/${f}
vbin build-3.4/scripts-3.4/${f} python3-${f} vbin build-3.4/scripts-3.4/${f} ${f}3.4
vman man/${f}.1 vman man/${f}.1
vman man/${f}.1 python3-${f}.1 vman man/${f}.1 ${f}3.4.1
done done
# install example config and emacs files # install example config and emacs files
@ -38,39 +37,17 @@ post_install() {
vsconf elisp/pylint-flymake.el vsconf elisp/pylint-flymake.el
} }
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
}
}
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() { python3.4-pylint_package() {
noarch=yes noarch=yes
short_desc="${_short_desc}" replaces="python3.4-pylint-gui>=0"
short_desc="${short_desc/Python2/Python3.4}"
depends="python3.4-setuptools python3.4-astroid python3.4-six" depends="python3.4-setuptools python3.4-astroid python3.4-six"
pycompile_version="3.4" pycompile_version="3.4"
pycompile_module="pylint" pycompile_module="pylint"
pkg_install() { pkg_install() {
vmove usr/bin/python3-* vmove usr/bin/*3.4
vmove usr/lib/python3.4 vmove usr/lib/python3.4
vmove usr/share/man/man1/python3-*.1 vmove usr/share/man/man1/*3.4.1
vsconf examples/pylintrc vsconf examples/pylintrc
vsconf examples/pylintrc_camelcase vsconf examples/pylintrc_camelcase
vsconf elisp/pylint.el vsconf elisp/pylint.el

View file

@ -1 +0,0 @@
pylint