Date: Tuesday, July 17, 2018 @ 08:18:42 Author: felixonmars Revision: 328872
addpkg: python2-pylint Added: python2-pylint/ python2-pylint/repos/ python2-pylint/trunk/ python2-pylint/trunk/PKGBUILD ----------+ PKGBUILD | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) Added: python2-pylint/trunk/PKGBUILD =================================================================== --- python2-pylint/trunk/PKGBUILD (rev 0) +++ python2-pylint/trunk/PKGBUILD 2018-07-17 08:18:42 UTC (rev 328872) @@ -0,0 +1,54 @@ +# $Id$ +# Maintainer: Angel Velasquez <[email protected]> +# Maintainer: Felix Yan <[email protected]> +# Contributor: Stéphane Gaudreault <[email protected]> +# Contributor: Alexander Fehr <pizzapunk gmail com> + +pkgname=python2-pylint +pkgver=1.9.2 +pkgrel=1 +pkgdesc="Analyzes Python code looking for bugs and signs of poor quality" +arch=('any') +url="http://pylint.org" +license=('GPL') +depends=('python2-astroid' 'python2-setuptools' 'python2-mccabe' 'python2-isort' + 'python2-backports.functools_lru_cache' 'python2-configparser' 'python2-singledispatch') +checkdepends=('python2-pytest-runner' 'mpdecimal') +optdepends=('tk: Pylint GUI' + 'graphviz: To have other output formats than dot or vcg') +source=("$pkgname-$pkgver.tar.gz::https://github.com/PyCQA/pylint/archive/pylint-$pkgver.tar.gz") +sha512sums=('5b2f7f00c7ff2ca5e53a9bb616f314a8f1460ec1acd8123407bc73c23a26502d1adb6cffad8020f0c3d9964adf316929fd159c5720f019c5ce6aa8cdc791955d') + +prepare() { + sed -i 's/pytest<3.3/pytest/' pylint-pylint-$pkgver/setup.py + + cd "$srcdir"/pylint-pylint-$pkgver/pylint + sed -e "s|/usr/bin/env python|/usr/bin/env python2|" -e "s|/usr/bin/python$|/usr/bin/python2|" -i epylint.py __main__.py test/input/noext test/data/ascript +} + +build() { + cd "$srcdir"/pylint-pylint-$pkgver + python2 setup.py build +} + +check() { + cd "$srcdir"/pylint-pylint-$pkgver + python2 setup.py pytest +} + +package() { + depends=('python2-astroid' 'python2-setuptools' 'python2-mccabe' 'python2-isort' + 'python2-backports.functools_lru_cache' 'python2-configparser' 'python2-singledispatch') + + cd pylint-pylint-$pkgver + + python2 setup.py install --prefix=/usr --root="$pkgdir" --skip-build --optimize=1 + + install -d "$pkgdir"/usr/share/man/man1 + install -m644 man/* "$pkgdir"/usr/share/man/man1 + + for _exe in epylint pylint pyreverse symilar; do + mv "$pkgdir"/usr/bin/${_exe}{,2} + mv "$pkgdir"/usr/share/man/man1/${_exe}{,2}.1 + done +} Property changes on: python2-pylint/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property
