Date: Friday, May 27, 2016 @ 17:43:51 Author: fyan Revision: 177301 archrelease: copy trunk to community-any
Added: python-logilab-common/repos/community-any/PKGBUILD (from rev 177300, python-logilab-common/trunk/PKGBUILD) Deleted: python-logilab-common/repos/community-any/PKGBUILD ----------+ PKGBUILD | 116 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 58 insertions(+), 58 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2016-05-27 15:43:19 UTC (rev 177300) +++ PKGBUILD 2016-05-27 15:43:51 UTC (rev 177301) @@ -1,58 +0,0 @@ -# $Id$ -# Maintainer: Angel Velasquez <an...@archlinux.org> -# Maintainer: Felix Yan <felixonm...@archlinux.org> -# Contributor: Stéphane Gaudreault <steph...@archlinux.org> -# Contributor: Alexander Fehr <pizzapunk gmail com> - -pkgbase=python-logilab-common -pkgname=('python2-logilab-common' 'python-logilab-common') -pkgver=1.2.0 -pkgrel=1 -pkgdesc="Useful miscellaneous modules used by Logilab projects" -arch=('any') -url="http://www.logilab.org/project/logilab-common" -license=('LGPL') -makedepends=('python-setuptools' 'python2-setuptools') -checkdepends=('python-six' 'python2-six' 'python-pytz' 'python2-pytz' 'python2-egenix-mx-base') -source=("https://pypi.python.org/packages/source/l/logilab-common/logilab-common-$pkgver.tar.gz") -sha1sums=('07f00045569d289123e5aa55c23836e2387df2b2') - -prepare() { - cp -a logilab-common-$pkgver{,-py2} -} - -build() { - cd "$srcdir"/logilab-common-$pkgver - python setup.py build - - cd "$srcdir"/logilab-common-$pkgver-py2 - python2 setup.py build -} - -check() { - cd "$srcdir"/logilab-common-$pkgver - PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python bin/pytest - - cd "$srcdir"/logilab-common-$pkgver-py2 - PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python2 bin/pytest -} - -package_python-logilab-common() { - depends=('python') - optdepends=('python-six: for logilab.common.testlib') - - cd "$srcdir"/logilab-common-$pkgver - - python setup.py install --optimize=1 --skip-build --prefix=/usr --root="$pkgdir" -} - -package_python2-logilab-common() { - depends=('python2') - optdepends=('python2-six: for logilab.common.testlib') - - cd "$srcdir"/logilab-common-$pkgver-py2 - - python2 setup.py install --optimize=1 --skip-build --prefix=/usr --root="$pkgdir" - - mv "$pkgdir"/usr/bin/pytest{,2} -} Copied: python-logilab-common/repos/community-any/PKGBUILD (from rev 177300, python-logilab-common/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2016-05-27 15:43:51 UTC (rev 177301) @@ -0,0 +1,58 @@ +# $Id$ +# Maintainer: Angel Velasquez <an...@archlinux.org> +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Stéphane Gaudreault <steph...@archlinux.org> +# Contributor: Alexander Fehr <pizzapunk gmail com> + +pkgbase=python-logilab-common +pkgname=('python2-logilab-common' 'python-logilab-common') +pkgver=1.2.1 +pkgrel=1 +pkgdesc="Useful miscellaneous modules used by Logilab projects" +arch=('any') +url="http://www.logilab.org/project/logilab-common" +license=('LGPL') +makedepends=('python-setuptools' 'python2-setuptools') +checkdepends=('python-six' 'python2-six' 'python-pytz' 'python2-pytz' 'python2-egenix-mx-base') +source=("https://pypi.io/packages/source/l/logilab-common/logilab-common-$pkgver.tar.gz") +sha1sums=('e0abf168900569a95067dfc8e5978eb5d84ba9b9') + +prepare() { + cp -a logilab-common-$pkgver{,-py2} +} + +build() { + cd "$srcdir"/logilab-common-$pkgver + python setup.py build + + cd "$srcdir"/logilab-common-$pkgver-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/logilab-common-$pkgver + PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python bin/pytest + + cd "$srcdir"/logilab-common-$pkgver-py2 + PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python2 bin/pytest +} + +package_python-logilab-common() { + depends=('python') + optdepends=('python-six: for logilab.common.testlib') + + cd "$srcdir"/logilab-common-$pkgver + + python setup.py install --optimize=1 --skip-build --prefix=/usr --root="$pkgdir" +} + +package_python2-logilab-common() { + depends=('python2') + optdepends=('python2-six: for logilab.common.testlib') + + cd "$srcdir"/logilab-common-$pkgver-py2 + + python2 setup.py install --optimize=1 --skip-build --prefix=/usr --root="$pkgdir" + + mv "$pkgdir"/usr/bin/pytest{,2} +}