[arch-commits] Commit in python2-pyface/trunk (PKGBUILD)

Andrzej Giniewicz aginiewicz at nymeria.archlinux.org
Fri Jan 31 12:26:53 UTC 2014


    Date: Friday, January 31, 2014 @ 13:26:53
  Author: aginiewicz
Revision: 105088

upgpkg: python2-pyface 4.4.0-2

force python2-pyface to wxpython 2.8 instead of 3.0

Modified:
  python2-pyface/trunk/PKGBUILD

----------+
 PKGBUILD |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-01-31 12:10:31 UTC (rev 105087)
+++ PKGBUILD	2014-01-31 12:26:53 UTC (rev 105088)
@@ -3,7 +3,7 @@
 
 pkgname=python2-pyface
 pkgver=4.4.0
-pkgrel=1
+pkgrel=2
 pkgdesc="Traits-capable windowing framework"
 arch=('any')
 url="https://github.com/enthought/pyface"
@@ -11,7 +11,7 @@
 depends=('python2-traits')
 makedepends=('python2-setuptools')
 optdepends=('python2-pyqt: for Qt backend'
-            'wxpython: for wx backend')
+            'wxpython2.8: for wx backend')
 options=(!emptydirs)
 
 source=("$pkgname-$pkgver.tar.gz::https://github.com/enthought/pyface/archive/${pkgver}.tar.gz")
@@ -20,6 +20,9 @@
 build() {
   cd "$srcdir"/pyface-$pkgver
 
+  # force selection of wxpython 2.8
+  sed -e "s/^\(.*\)import wx$/\1import wxversion\n\1wxversion.select(\"2.8\")\n\1import wx/g" -i $(find . -name '*.py')
+
   python2 setup.py build
 }
 




More information about the arch-commits mailing list