[arch-commits] Commit in python-envisage/repos (2 files)
Eli Schwartz
eschwartz at archlinux.org
Wed Jul 25 20:56:46 UTC 2018
Date: Wednesday, July 25, 2018 @ 20:56:46
Author: eschwartz
Revision: 363415
archrelease: copy trunk to community-staging-any
Added:
python-envisage/repos/community-staging-any/
python-envisage/repos/community-staging-any/PKGBUILD
(from rev 363414, python-envisage/trunk/PKGBUILD)
----------+
PKGBUILD | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 60 insertions(+)
Copied: python-envisage/repos/community-staging-any/PKGBUILD (from rev 363414, python-envisage/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2018-07-25 20:56:46 UTC (rev 363415)
@@ -0,0 +1,60 @@
+# $Id$
+# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
+
+pkgbase=python-envisage
+pkgname=('python2-envisage' 'python-envisage')
+pkgver=4.6.0
+pkgrel=2
+pkgdesc="Extensible Application Framework"
+arch=('any')
+url="https://github.com/enthought/envisage"
+license=('BSD')
+makedepends=('python-setuptools' 'python-apptools' 'python2-setuptools' 'python2-apptools')
+checkdepends=('python-nose' 'python-configobj' 'python2-nose' 'python2-configobj')
+source=("envisage-$pkgver.tar.gz::https://github.com/enthought/envisage/archive/${pkgver}.tar.gz")
+md5sums=('186b566271b4b7125761fd6734a7e370')
+
+prepare() {
+ cd "$srcdir"
+ cp -a envisage-${pkgver} envisage-py2-${pkgver}
+}
+
+build() {
+ cd "$srcdir"/envisage-py2-$pkgver
+
+ msg "Building Python2"
+ python2 setup.py build
+
+ cd "$srcdir"/envisage-$pkgver
+
+ msg "Building Python3"
+ python setup.py build
+}
+
+check() {
+ cd "$srcdir"/envisage-py2-$pkgver
+ nosetests2 envisage
+
+ cd "$srcdir"/envisage-$pkgver
+ nosetests envisage || warning "tests failed"
+}
+
+package_python2-envisage() {
+ depends=('python2-apptools')
+ optdepends=('ipython2: for IPython shell plugin')
+ cd "$srcdir"/envisage-py2-$pkgver
+
+ python2 setup.py install --root="$pkgdir"/ --optimize=1
+
+ install -D LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python-envisage() {
+ depends=('python-apptools')
+ optdepends=('ipython: for IPython shell plugin')
+ cd "$srcdir"/envisage-$pkgver
+
+ python setup.py install --root="$pkgdir"/ --optimize=1
+
+ install -D LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list