[arch-commits] Commit in python-plop/trunk (PKGBUILD)

Felix Yan fyan at archlinux.org
Wed Sep 30 06:37:28 UTC 2015


    Date: Wednesday, September 30, 2015 @ 08:37:28
  Author: fyan
Revision: 142242

upgpkg: python-plop 0.3.0-1

Modified:
  python-plop/trunk/PKGBUILD

----------+
 PKGBUILD |   39 +++++++++++++++++++++++++++++++--------
 1 file changed, 31 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-09-30 06:18:46 UTC (rev 142241)
+++ PKGBUILD	2015-09-30 06:37:28 UTC (rev 142242)
@@ -1,28 +1,51 @@
 # $Id$
-# Maintainer: Felix Yan <felixonmars at gmail.com>
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
 
 pkgbase=python-plop
-pkgname=python2-plop
-pkgver=0.1.1
+pkgname=(python-plop python2-plop)
+pkgver=0.3.0
 pkgrel=1
 pkgdesc="Python Low-Overhead Profiler"
 arch=('any')
 license=('MIT')
 url="https://github.com/bdarnell/plop"
-makedepends=('python2-tornado')
+makedepends=('python-tornado' 'python2-tornado' 'python-six' 'python2-six'
+             'python-setuptools' 'python2-setuptools')
 source=("https://pypi.python.org/packages/source/p/plop/plop-${pkgver}.tar.gz")
-md5sums=('5a5e60c18893c5f827633f2a75ac6cf9')
+md5sums=('4a313d6a8dd59ac48cfa3af426d197fc')
 
+prepare() {
+  cp -a plop-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir/plop-${pkgver}"
+  python setup.py build
+
+  cd "$srcdir/plop-${pkgver}-py2"
+  python2 setup.py build
+}
+
 check() {
   cd "$srcdir/plop-${pkgver}"
+  python -m plop.test.runtests
+
+  cd "$srcdir/plop-${pkgver}-py2"
   python2 -m plop.test.runtests
 }
 
+package_python-plop() {
+  depends=('python-six' 'python-tornado')
+
+  cd "${srcdir}/plop-${pkgver}"
+  python setup.py install --root="${pkgdir}" --optimize=1
+  install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
+}
+
 package_python2-plop() {
-  depends=('python2')
-  optdepends=('python2-tornado: for plop.viewer')
+  depends=('python2-six' 'python2-tornado')
 
-  cd "${srcdir}/plop-${pkgver}"
+  cd "${srcdir}/plop-${pkgver}-py2"
   python2 setup.py install --root="${pkgdir}" --optimize=1
   install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
 }



More information about the arch-commits mailing list