[arch-commits] Commit in (5 files)

Andrzej Giniewicz aginiewicz at archlinux.org
Fri Mar 11 23:37:49 UTC 2016


    Date: Saturday, March 12, 2016 @ 00:37:49
  Author: aginiewicz
Revision: 166167

python-traitsui: traitsui now supports python and python2

Added:
  python-traitsui/
  python-traitsui/repos/
  python-traitsui/trunk/
  python-traitsui/trunk/PKGBUILD
Deleted:
  python2-traitsui/

----------+
 PKGBUILD |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

Added: python-traitsui/trunk/PKGBUILD
===================================================================
--- python-traitsui/trunk/PKGBUILD	                        (rev 0)
+++ python-traitsui/trunk/PKGBUILD	2016-03-11 23:37:49 UTC (rev 166167)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
+
+pkgbase=python-traitsui
+pkgname=('python2-traitsui' 'python-traitsui')
+pkgver=5.0.0
+pkgrel=1
+pkgdesc="Traits-capable user interfaces"
+arch=('any')
+url="https://github.com/enthought/traitsui"
+license=('BSD')
+makedepends=('python-setuptools' 'python-pyface' 'python2-setuptools' 'python2-pyface')
+
+source=("traitsui-${pkgver}.tar.gz::https://github.com/enthought/traitsui/archive/${pkgver}.tar.gz")
+md5sums=('bffc6bc760232eae0ab192628e52e719')
+
+prepare() {
+  cd "$srcdir"
+  cp -a traitsui-${pkgver} traitsui-py2-${pkgver}
+}
+
+build() {
+  cd "$srcdir"/traitsui-py2-$pkgver
+
+  msg "Building Python2"
+  python2 setup.py build
+
+  cd "$srcdir"/traitsui-$pkgver
+
+  msg "Building Python3"
+  python setup.py build
+}
+
+package_python2-traitsui() {
+  depends=('python2-pyface')
+  cd "$srcdir"/traitsui-py2-$pkgver
+
+  python2 setup.py install --root="$pkgdir"/ --optimize=1
+
+  install -D LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python-traitsui() {
+  depends=('python-pyface')
+  cd "$srcdir"/traitsui-$pkgver
+
+  python setup.py install --root="$pkgdir"/ --optimize=1
+
+  install -D LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+


Property changes on: python-traitsui/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list