[arch-commits] Commit in python-mccabe/repos/community-any (PKGBUILD PKGBUILD)

Felix Yan fyan at archlinux.org
Wed Dec 17 03:16:06 UTC 2014


    Date: Wednesday, December 17, 2014 @ 04:16:06
  Author: fyan
Revision: 124008

archrelease: copy trunk to community-any

Added:
  python-mccabe/repos/community-any/PKGBUILD
    (from rev 124007, python-mccabe/trunk/PKGBUILD)
Deleted:
  python-mccabe/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   96 +++++++++++++++++++++++++++++++++++--------------------------
 1 file changed, 56 insertions(+), 40 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2014-12-17 03:15:46 UTC (rev 124007)
+++ PKGBUILD	2014-12-17 03:16:06 UTC (rev 124008)
@@ -1,40 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at gmail.com>
-# Contributor: Karol "Kenji Takahashi" Woźniak <kenji.sx>
-
-pkgbase=python-mccabe
-pkgname=(python-mccabe python2-mccabe)
-_reponame=mccabe
-pkgver=0.2.1
-pkgrel=5
-pkgdesc="McCabe complexity checker for Python"
-arch=('any')
-url="https://github.com/flintwork/mccabe"
-license=('custom:Expat')
-makedepends=('python-setuptools' 'python2-setuptools')
-source=("https://github.com/flintwork/${_reponame}/archive/${pkgver}.tar.gz")
-md5sums=('fcba311ebd999f48359a8ab28da94b30')
-
-prepare() {
-  cp -r ${_reponame}-${pkgver}{,-py2}
-}
-
-package_python-mccabe() {
-  depends=('python')
-
-  cd ${_reponame}-${pkgver}
-  python setup.py install --root="${pkgdir}/" --prefix=/usr --optimize=1
-
-  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-}
-
-package_python2-mccabe() {
-  depends=('python2')
-
-  cd ${_reponame}-${pkgver}
-  python2 setup.py install --root="${pkgdir}/" --prefix=/usr --optimize=1
-
-  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-}
-
-# vim:set ts=2 sw=2 et:

Copied: python-mccabe/repos/community-any/PKGBUILD (from rev 124007, python-mccabe/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2014-12-17 03:16:06 UTC (rev 124008)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Karol "Kenji Takahashi" Woźniak <kenji.sx>
+
+pkgbase=python-mccabe
+pkgname=(python-mccabe python2-mccabe)
+_reponame=mccabe
+pkgver=0.3
+pkgrel=1
+pkgdesc="McCabe complexity checker for Python"
+arch=('any')
+url="https://github.com/flintwork/mccabe"
+license=('custom:Expat')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("https://github.com/flintwork/${_reponame}/archive/${pkgver}.tar.gz")
+md5sums=('c583f58ea28be12842c001473d77504d')
+
+prepare() {
+  cp -a ${_reponame}-${pkgver}{,-py2}
+}
+
+build() {
+  cd ${_reponame}-${pkgver}
+  python setup.py build
+
+  cd ../${_reponame}-${pkgver}-py2
+  python2 setup.py build
+}
+
+check() {
+  cd ${_reponame}-${pkgver}
+  python setup.py test
+
+  cd ../${_reponame}-${pkgver}-py2
+  python2 setup.py test
+}
+
+package_python-mccabe() {
+  depends=('python')
+
+  cd ${_reponame}-${pkgver}
+  python setup.py install --root="${pkgdir}/" --prefix=/usr --skip-build --optimize=1
+
+  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-mccabe() {
+  depends=('python2')
+
+  cd ${_reponame}-${pkgver}-py2
+  python2 setup.py install --root="${pkgdir}/" --prefix=/usr --skip-build --optimize=1
+
+  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list