[arch-commits] Commit in python2-pyface/repos/community-any (3 files)

Andrzej Giniewicz aginiewicz at archlinux.org
Sat Nov 21 15:18:51 UTC 2015


    Date: Saturday, November 21, 2015 @ 16:18:50
  Author: aginiewicz
Revision: 147322

archrelease: copy trunk to community-any

Added:
  python2-pyface/repos/community-any/PKGBUILD
    (from rev 147321, python2-pyface/trunk/PKGBUILD)
  python2-pyface/repos/community-any/ipython_widget.patch
    (from rev 147321, python2-pyface/trunk/ipython_widget.patch)
Deleted:
  python2-pyface/repos/community-any/PKGBUILD

----------------------+
 PKGBUILD             |   78 +++++++++++++++++++++++++------------------------
 ipython_widget.patch |   19 +++++++++++
 2 files changed, 60 insertions(+), 37 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2015-11-21 15:18:43 UTC (rev 147321)
+++ PKGBUILD	2015-11-21 15:18:50 UTC (rev 147322)
@@ -1,37 +0,0 @@
-# $Id$
-# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
-
-pkgname=python2-pyface
-pkgver=4.5.2
-pkgrel=1
-pkgdesc="Traits-capable windowing framework"
-arch=('any')
-url="https://github.com/enthought/pyface"
-license=('BSD')
-depends=('python2-traits')
-makedepends=('python2-setuptools')
-optdepends=('python2-pyqt4: for Qt backend'
-            'wxpython2.8: for wx backend')
-options=(!emptydirs)
-
-source=("$pkgname-$pkgver.tar.gz::https://github.com/enthought/pyface/archive/${pkgver}.tar.gz")
-md5sums=('82caa9ea387192a76759176f2fc59d75')
-
-build() {
-  cd "$srcdir"/pyface-$pkgver
-
-  # force selection of wxpython 2.8
-  # (see https://github.com/enthought/pyface/issues/96)
-  sed -e "s/^\(.*\)import wx$/\1import wxversion\n\1wxversion.select(\"2.8\")\n\1import wx/g" -i $(find . -name '*.py')
-
-  python2 setup.py build
-}
-
-package() {
-  cd "$srcdir"/pyface-$pkgver
-
-  python2 setup.py install --root="$pkgdir"/ --optimize=1
-
-  install -D LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-

Copied: python2-pyface/repos/community-any/PKGBUILD (from rev 147321, python2-pyface/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2015-11-21 15:18:50 UTC (rev 147322)
@@ -0,0 +1,41 @@
+# $Id$
+# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
+
+pkgname=python2-pyface
+pkgver=5.0.0
+pkgrel=1
+pkgdesc="Traits-capable windowing framework"
+arch=('any')
+url="https://github.com/enthought/pyface"
+license=('BSD')
+depends=('python2-traits')
+makedepends=('python2-setuptools')
+optdepends=('python2-pyqt4: for Qt backend'
+            'wxpython2.8: for wx backend')
+options=(!emptydirs)
+
+source=("$pkgname-$pkgver.tar.gz::https://github.com/enthought/pyface/archive/${pkgver}.tar.gz"
+        "ipython_widget.patch")
+md5sums=('74e0c8f8099d69bf6f18651b626648d8'
+         'e2723b5e4191457de7584f0cddce7a4d')
+
+build() {
+  cd "$srcdir"/pyface-$pkgver
+
+  # force selection of wxpython 2.8
+  # (see https://github.com/enthought/pyface/issues/96)
+  sed -e "s/^\(.*\)import wx$/\1import wxversion\n\1wxversion.select(\"2.8\")\n\1import wx/g" -i $(find . -name '*.py')
+
+  patch -p1 < ../ipython_widget.patch
+
+  python2 setup.py build
+}
+
+package() {
+  cd "$srcdir"/pyface-$pkgver
+
+  python2 setup.py install --root="$pkgdir"/ --optimize=1
+
+  install -D LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+

Copied: python2-pyface/repos/community-any/ipython_widget.patch (from rev 147321, python2-pyface/trunk/ipython_widget.patch)
===================================================================
--- ipython_widget.patch	                        (rev 0)
+++ ipython_widget.patch	2015-11-21 15:18:50 UTC (rev 147322)
@@ -0,0 +1,19 @@
+--- pyface-5.0.0/pyface/ipython_widget.py.orig	2015-11-21 16:13:42.171018433 +0100
++++ pyface-5.0.0/pyface/ipython_widget.py	2015-11-21 16:14:03.557532935 +0100
+@@ -13,6 +13,7 @@
+ #------------------------------------------------------------------------------
+ """ The implementation of an IPython shell. """
+ 
++from __future__ import absolute_import
+ 
+ # Import the toolkit specific version.
+ try:
+@@ -23,8 +24,5 @@
+ Could not load the Wx frontend for ipython.
+ You need to have ipython >= 0.9 installed to use the ipython widget.'''
+ 
+-
+-from __future__ import absolute_import
+-
+ from .toolkit import toolkit_object
+ IPythonWidget= toolkit_object('ipython_widget:IPythonWidget')



More information about the arch-commits mailing list