[arch-commits] Commit in pylint/repos/staging-any (PKGBUILD PKGBUILD)
Felix Yan
fyan at archlinux.org
Mon Sep 21 06:09:13 UTC 2015
Date: Monday, September 21, 2015 @ 08:09:13
Author: fyan
Revision: 247024
archrelease: copy trunk to staging-any
Added:
pylint/repos/staging-any/PKGBUILD
(from rev 247023, pylint/trunk/PKGBUILD)
Deleted:
pylint/repos/staging-any/PKGBUILD
----------+
PKGBUILD | 143 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 72 insertions(+), 71 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2015-09-21 06:08:56 UTC (rev 247023)
+++ PKGBUILD 2015-09-21 06:09:13 UTC (rev 247024)
@@ -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=('python2-pylint' 'python-pylint')
-pkgver=1.4.4
-pkgrel=2
-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')
-optdepends=('tk: Pylint GUI')
-source=("http://pypi.python.org/packages/source/p/${pkgbase}/${pkgbase}-${pkgver}.tar.gz")
-sha1sums=('4f46ee34830cebb51a1c5f8fa27e132bd0952ae3')
-
-prepare() {
- cp -a ${pkgbase}-${pkgver}{,-py3}
-
- cd ${pkgbase}-${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
-
- cd ../../${pkgbase}-${pkgver}-py3/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
-}
-
-build() {
- cd ${pkgbase}-${pkgver}
- python2 setup.py build
-
- cd ../${pkgbase}-${pkgver}-py3
- python3 setup.py build
-}
-
-check() {
- cd ${pkgbase}-${pkgver}
- PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python2 -Wi -m unittest discover -s pylint/test/ -p *test_*.py || warning "Tests failed"
-
- cd ../${pkgbase}-${pkgver}-py3
- PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python -Wi -m unittest discover -s pylint/test/ -p *test_*.py || warning "Tests failed"
-}
-
-package_python2-pylint() {
- depends=('python2-astroid' 'python2-setuptools' 'python2-six')
-
- cd ${pkgbase}-${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 i in epylint pylint pylint-gui pyreverse symilar; do
- mv "${pkgdir}"/usr/bin/${i}{,2}
- mv "${pkgdir}"/usr/share/man/man1/${i}{,2}.1
- done
-}
-
-package_python-pylint() {
- depends=('python-astroid' 'python-setuptools' 'python-six')
-
- cd ${pkgbase}-${pkgver}-py3
-
- 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"
-}
Copied: pylint/repos/staging-any/PKGBUILD (from rev 247023, pylint/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2015-09-21 06:09:13 UTC (rev 247024)
@@ -0,0 +1,72 @@
+# $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=('python2-pylint' 'python-pylint')
+pkgver=1.4.4.20150921
+_commit=794a019236afead67c745777f5927cbe6b3f0711
+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' 'mercurial')
+optdepends=('tk: Pylint GUI')
+source=("hg+https://felixonmars@bitbucket.org/logilab/pylint#revision=$_commit")
+sha1sums=('SKIP')
+
+prepare() {
+ cp -a ${pkgbase}{,-py3}
+
+ cd ${pkgbase}/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
+
+ cd ../../${pkgbase}-py3/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
+}
+
+build() {
+ cd ${pkgbase}
+ python2 setup.py build
+
+ cd ../${pkgbase}-py3
+ python3 setup.py build
+}
+
+check() {
+ cd ${pkgbase}
+ PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python2 -Wi -m unittest discover -s pylint/test/ -p *test_*.py || warning "Tests failed"
+
+ cd ../${pkgbase}-py3
+ PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python -Wi -m unittest discover -s pylint/test/ -p *test_*.py || warning "Tests failed"
+}
+
+package_python2-pylint() {
+ depends=('python2-astroid' 'python2-setuptools' 'python2-six')
+
+ cd ${pkgbase}
+
+ 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 i in epylint pylint pylint-gui pyreverse symilar; do
+ mv "${pkgdir}"/usr/bin/${i}{,2}
+ mv "${pkgdir}"/usr/share/man/man1/${i}{,2}.1
+ done
+}
+
+package_python-pylint() {
+ depends=('python-astroid' 'python-setuptools' 'python-six')
+
+ cd ${pkgbase}-py3
+
+ 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"
+}
More information about the arch-commits
mailing list