[arch-commits] Commit in pylint/repos/extra-any (PKGBUILD PKGBUILD)
Felix Yan
fyan at archlinux.org
Wed Jun 8 08:36:27 UTC 2016
Date: Wednesday, June 8, 2016 @ 10:36:26
Author: fyan
Revision: 269123
archrelease: copy trunk to extra-any
Added:
pylint/repos/extra-any/PKGBUILD
(from rev 269122, pylint/trunk/PKGBUILD)
Deleted:
pylint/repos/extra-any/PKGBUILD
----------+
PKGBUILD | 142 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 71 insertions(+), 71 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2016-06-08 08:36:09 UTC (rev 269122)
+++ PKGBUILD 2016-06-08 08:36:26 UTC (rev 269123)
@@ -1,71 +0,0 @@
-# $Id$
-# Maintainer: Angel Velasquez <angvp at archlinux.org>
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Stéphane Gaudreault <stephane at archlinux.org>
-# Contributor: Alexander Fehr <pizzapunk gmail com>
-
-pkgbase=pylint
-pkgname=('python-pylint' 'python2-pylint')
-pkgver=1.5.5
-pkgrel=1
-pkgdesc="Analyzes Python code looking for bugs and signs of poor quality"
-arch=('any')
-url="http://pylint.org"
-license=('GPL')
-makedepends=('python2-astroid' 'python-astroid' 'python2-setuptools' 'python-setuptools' 'python2-six' 'python-six' 'git')
-optdepends=('tk: Pylint GUI')
-source=("git+https://github.com/PyCQA/pylint.git#tag=pylint-$pkgver")
-sha1sums=('SKIP')
-
-prepare() {
- cp -a pylint{,-py2}
-
- cd "$srcdir"/pylint/pylint
- sed -e "s|/usr/bin/env python|/usr/bin/env python3|" -e "s|/usr/bin/python$|/usr/bin/python3|" -i epylint.py __main__.py test/input/noext test/data/ascript
-
- cd "$srcdir"/pylint-py2/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
- python setup.py build
-
- cd "$srcdir"/pylint-py2
- python2 setup.py build
-}
-
-check() {
- cd "$srcdir"/pylint
- PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python -Wi -m unittest discover -s pylint/test/ -p *test_*.py || warning "Tests failed"
-
- cd "$srcdir"/pylint-py2
- PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python2 -Wi -m unittest discover -s pylint/test/ -p *test_*.py || warning "Tests failed"
-}
-
-package_python-pylint() {
- depends=('python-astroid' 'python-setuptools' 'python-six')
-
- cd pylint
-
- python3 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
-}
-
-package_python2-pylint() {
- depends=('python2-astroid' 'python2-setuptools' 'python2-six')
-
- cd pylint-py2
-
- 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 pylint-gui pyreverse symilar; do
- mv "$pkgdir"/usr/bin/${_exe}{,2}
- mv "$pkgdir"/usr/share/man/man1/${_exe}{,2}.1
- done
-}
Copied: pylint/repos/extra-any/PKGBUILD (from rev 269122, pylint/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2016-06-08 08:36:26 UTC (rev 269123)
@@ -0,0 +1,71 @@
+# $Id$
+# Maintainer: Angel Velasquez <angvp at archlinux.org>
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Stéphane Gaudreault <stephane at archlinux.org>
+# Contributor: Alexander Fehr <pizzapunk gmail com>
+
+pkgbase=pylint
+pkgname=('python-pylint' 'python2-pylint')
+pkgver=1.5.6
+pkgrel=1
+pkgdesc="Analyzes Python code looking for bugs and signs of poor quality"
+arch=('any')
+url="http://pylint.org"
+license=('GPL')
+makedepends=('python2-astroid' 'python-astroid' 'python2-setuptools' 'python-setuptools' 'python2-six' 'python-six' 'git')
+optdepends=('tk: Pylint GUI')
+source=("git+https://github.com/PyCQA/pylint.git#tag=pylint-$pkgver")
+sha1sums=('SKIP')
+
+prepare() {
+ cp -a pylint{,-py2}
+
+ cd "$srcdir"/pylint/pylint
+ sed -e "s|/usr/bin/env python|/usr/bin/env python3|" -e "s|/usr/bin/python$|/usr/bin/python3|" -i epylint.py __main__.py test/input/noext test/data/ascript
+
+ cd "$srcdir"/pylint-py2/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
+ python setup.py build
+
+ cd "$srcdir"/pylint-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/pylint
+ PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python -Wi -m unittest discover -s pylint/test/ -p *test_*.py || warning "Tests failed"
+
+ cd "$srcdir"/pylint-py2
+ PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python2 -Wi -m unittest discover -s pylint/test/ -p *test_*.py || warning "Tests failed"
+}
+
+package_python-pylint() {
+ depends=('python-astroid' 'python-setuptools' 'python-six')
+
+ cd pylint
+
+ python3 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
+}
+
+package_python2-pylint() {
+ depends=('python2-astroid' 'python2-setuptools' 'python2-six')
+
+ cd pylint-py2
+
+ 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 pylint-gui pyreverse symilar; do
+ mv "$pkgdir"/usr/bin/${_exe}{,2}
+ mv "$pkgdir"/usr/share/man/man1/${_exe}{,2}.1
+ done
+}
More information about the arch-commits
mailing list