pylint: add python3.4 version
This commit is contained in:
parent
e770bd5ccf
commit
655fb18bc6
3 changed files with 43 additions and 20 deletions
|
@ -1,14 +1,17 @@
|
||||||
# Template file for 'pylint'
|
# Template file for 'pylint'
|
||||||
pkgname=pylint
|
pkgname=pylint
|
||||||
version=1.4.4
|
version=1.4.4
|
||||||
revision=1
|
revision=2
|
||||||
|
replaces="pylint<1.4.4_1"
|
||||||
noarch=yes
|
noarch=yes
|
||||||
wrksrc="pylint-${version}"
|
wrksrc="pylint-${version}"
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
hostmakedepends="python-setuptools"
|
python_versions="2.7 3.4"
|
||||||
depends="${hostmakedepends} python-astroid python-six"
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
||||||
|
depends="python-setuptools python-astroid python-six"
|
||||||
pycompile_module="pylint"
|
pycompile_module="pylint"
|
||||||
short_desc="Python 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"
|
||||||
|
@ -17,19 +20,22 @@ checksum=0561af4d6bd4fa9e8e02f3997fe93684f7187c57bcef9db8c2ea9fb0d7d2f022
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
# no tests
|
# no tests
|
||||||
rm -rf ${DESTDIR}/usr/lib/python2.7/site-packages/pylint/test
|
rm -rf ${DESTDIR}/usr/lib/python*/site-packages/pylint/test
|
||||||
|
|
||||||
# install man
|
# python2/3 scripts and man pages
|
||||||
vmkdir usr/share/man/man1
|
for f in epylint pylint pylint-gui pyreverse symilar; do
|
||||||
install -m644 man/*.1 ${DESTDIR}/usr/share/man/man1
|
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
|
||||||
|
|
||||||
# install emacs files
|
# install example config and 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
|
||||||
vsconf examples/pylintrc_camelcase
|
vsconf examples/pylintrc_camelcase
|
||||||
|
vsconf elisp/pylint.el
|
||||||
|
vsconf elisp/pylint-flymake.el
|
||||||
}
|
}
|
||||||
|
|
||||||
pylint-gui_package() {
|
pylint-gui_package() {
|
||||||
|
@ -43,15 +49,31 @@ pylint-gui_package() {
|
||||||
vmove usr/share/man/man1/pylint-gui.1
|
vmove usr/share/man/man1/pylint-gui.1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
pylint-emacs_package() {
|
python3.4-pylint-gui_package() {
|
||||||
noarch=yes
|
noarch=yes
|
||||||
short_desc+=" - Emacs interface"
|
short_desc="${_short_desc} - Tk interface"
|
||||||
depends="${sourcepkg}-${version}_${revision} virtual?emacs"
|
depends="python3.4-pylint-${version}_${revision} python3.4-tkinter"
|
||||||
|
pycompile_version="3.4"
|
||||||
pycompile_module="pylint"
|
pycompile_module="pylint"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/bin/epylint
|
vmove usr/bin/python3-pylint-gui
|
||||||
vmove usr/lib/python2.7/site-packages/pylint/epylint.py
|
vmove usr/lib/python3.4/site-packages/pylint/gui.py
|
||||||
vmove usr/share/emacs/site-lisp
|
vmove usr/share/man/man1/python3-pylint-gui.1
|
||||||
vmove usr/share/man/man1/epylint.1
|
}
|
||||||
|
}
|
||||||
|
python3.4-pylint_package() {
|
||||||
|
noarch=yes
|
||||||
|
short_desc="${_short_desc}"
|
||||||
|
depends="python3.4-setuptools python3.4-astroid python3.4-six"
|
||||||
|
pycompile_version="3.4"
|
||||||
|
pycompile_module="pylint"
|
||||||
|
pkg_install() {
|
||||||
|
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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
1
srcpkgs/python3.4-pylint-gui
Symbolic link
1
srcpkgs/python3.4-pylint-gui
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
pylint
|
Loading…
Add table
Reference in a new issue