[arch-commits] Commit in python2-traitsui/repos/community-any (4 files)
Date: Saturday, November 21, 2015 @ 16:25:18 Author: aginiewicz Revision: 147324 archrelease: copy trunk to community-any Added: python2-traitsui/repos/community-any/PKGBUILD (from rev 147323, python2-traitsui/trunk/PKGBUILD) python2-traitsui/repos/community-any/wx28.patch (from rev 147323, python2-traitsui/trunk/wx28.patch) Deleted: python2-traitsui/repos/community-any/PKGBUILD python2-traitsui/repos/community-any/wx28.patch + PKGBUILD | 74 +-- wx28.patch | 24 +-- 2 files changed, 49 insertions(+), 49 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2015-11-21 15:25:11 UTC (rev 147323) +++ PKGBUILD2015-11-21 15:25:18 UTC (rev 147324) @@ -1,37 +0,0 @@ -# $Id$ -# Maintainer: Andrzej Giniewicz - -pkgname=python2-traitsui -pkgver=4.5.1 -pkgrel=1 -pkgdesc="Traits-capable user interfaces" -arch=('any') -url="https://github.com/enthought/traitsui"; -license=('BSD') -depends=('python2-pyface') -makedepends=('python2-setuptools') -options=(!emptydirs) - -source=("$pkgname-$pkgver.tar.gz::https://github.com/enthought/traitsui/archive/${pkgver}.tar.gz"; "wx28.patch") -md5sums=('4d60037fbe30b0f67ae2826710968a4d' - '0baa7f7c9620871b5e472d033181db4d') - -build() { - cd "$srcdir"/traitsui-$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 -p0 < ../wx28.patch - - python2 setup.py build -} - -package() { - cd "$srcdir"/traitsui-$pkgver - - python2 setup.py install --root="$pkgdir"/ --optimize=1 - - install -D LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE -} - Copied: python2-traitsui/repos/community-any/PKGBUILD (from rev 147323, python2-traitsui/trunk/PKGBUILD) === --- PKGBUILD(rev 0) +++ PKGBUILD2015-11-21 15:25:18 UTC (rev 147324) @@ -0,0 +1,37 @@ +# $Id$ +# Maintainer: Andrzej Giniewicz + +pkgname=python2-traitsui +pkgver=5.0.0 +pkgrel=1 +pkgdesc="Traits-capable user interfaces" +arch=('any') +url="https://github.com/enthought/traitsui"; +license=('BSD') +depends=('python2-pyface') +makedepends=('python2-setuptools') +options=(!emptydirs) + +source=("$pkgname-$pkgver.tar.gz::https://github.com/enthought/traitsui/archive/${pkgver}.tar.gz"; "wx28.patch") +md5sums=('bffc6bc760232eae0ab192628e52e719' + '0baa7f7c9620871b5e472d033181db4d') + +build() { + cd "$srcdir"/traitsui-$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 -p0 < ../wx28.patch + + python2 setup.py build +} + +package() { + cd "$srcdir"/traitsui-$pkgver + + python2 setup.py install --root="$pkgdir"/ --optimize=1 + + install -D LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + Deleted: wx28.patch === --- wx28.patch 2015-11-21 15:25:11 UTC (rev 147323) +++ wx28.patch 2015-11-21 15:25:18 UTC (rev 147324) @@ -1,12 +0,0 @@ traitsui/toolkit.py.orig 2015-03-21 11:54:29.883107683 +0100 -+++ traitsui/toolkit.py2015-03-21 11:56:52.905373040 +0100 -@@ -48,6 +48,9 @@ - #--- - - def _import_toolkit ( name ): -+if name == "wx": -+import wxversion -+wxversion.select("2.8") - return __import__( name, globals=globals(), level=1 ).toolkit - - Copied: python2-traitsui/repos/community-any/wx28.patch (from rev 147323, python2-traitsui/trunk/wx28.patch) === --- wx28.patch (rev 0) +++ wx28.patch 2015-11-21 15:25:18 UTC (rev 147324) @@ -0,0 +1,12 @@ +--- traitsui/toolkit.py.orig 2015-03-21 11:54:29.883107683 +0100 traitsui/toolkit.py2015-03-21 11:56:52.905373040 +0100 +@@ -48,6 +48,9 @@ + #--- + + def _import_toolkit ( name ): ++if name == "wx": ++import wxversion ++wxversion.select("2.8") + return __import__( name, globals=globals(), level=1 ).toolkit + +
[arch-commits] Commit in python2-traitsui/repos/community-any (4 files)
Date: Monday, June 1, 2015 @ 14:51:30 Author: aginiewicz Revision: 134468 archrelease: copy trunk to community-any Added: python2-traitsui/repos/community-any/PKGBUILD (from rev 134467, python2-traitsui/trunk/PKGBUILD) python2-traitsui/repos/community-any/wx28.patch (from rev 134467, python2-traitsui/trunk/wx28.patch) Deleted: python2-traitsui/repos/community-any/PKGBUILD python2-traitsui/repos/community-any/wx28.patch + PKGBUILD | 74 +-- wx28.patch | 24 +-- 2 files changed, 49 insertions(+), 49 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2015-06-01 12:51:27 UTC (rev 134467) +++ PKGBUILD2015-06-01 12:51:30 UTC (rev 134468) @@ -1,37 +0,0 @@ -# $Id$ -# Maintainer: Andrzej Giniewicz - -pkgname=python2-traitsui -pkgver=4.4.0 -pkgrel=2 -pkgdesc="Traits-capable user interfaces" -arch=('any') -url="https://github.com/enthought/traitsui"; -license=('BSD') -depends=('python2-pyface') -makedepends=('python2-setuptools') -options=(!emptydirs) - -source=("$pkgname-$pkgver.tar.gz::https://github.com/enthought/traitsui/archive/${pkgver}.tar.gz"; "wx28.patch") -md5sums=('02b79ca4f2773394bd7c412d331c51d2' - '0baa7f7c9620871b5e472d033181db4d') - -build() { - cd "$srcdir"/traitsui-$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 -p0 < ../wx28.patch - - python2 setup.py build -} - -package() { - cd "$srcdir"/traitsui-$pkgver - - python2 setup.py install --root="$pkgdir"/ --optimize=1 - - install -D LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE -} - Copied: python2-traitsui/repos/community-any/PKGBUILD (from rev 134467, python2-traitsui/trunk/PKGBUILD) === --- PKGBUILD(rev 0) +++ PKGBUILD2015-06-01 12:51:30 UTC (rev 134468) @@ -0,0 +1,37 @@ +# $Id$ +# Maintainer: Andrzej Giniewicz + +pkgname=python2-traitsui +pkgver=4.5.1 +pkgrel=1 +pkgdesc="Traits-capable user interfaces" +arch=('any') +url="https://github.com/enthought/traitsui"; +license=('BSD') +depends=('python2-pyface') +makedepends=('python2-setuptools') +options=(!emptydirs) + +source=("$pkgname-$pkgver.tar.gz::https://github.com/enthought/traitsui/archive/${pkgver}.tar.gz"; "wx28.patch") +md5sums=('4d60037fbe30b0f67ae2826710968a4d' + '0baa7f7c9620871b5e472d033181db4d') + +build() { + cd "$srcdir"/traitsui-$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 -p0 < ../wx28.patch + + python2 setup.py build +} + +package() { + cd "$srcdir"/traitsui-$pkgver + + python2 setup.py install --root="$pkgdir"/ --optimize=1 + + install -D LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + Deleted: wx28.patch === --- wx28.patch 2015-06-01 12:51:27 UTC (rev 134467) +++ wx28.patch 2015-06-01 12:51:30 UTC (rev 134468) @@ -1,12 +0,0 @@ traitsui/toolkit.py.orig 2015-03-21 11:54:29.883107683 +0100 -+++ traitsui/toolkit.py2015-03-21 11:56:52.905373040 +0100 -@@ -48,6 +48,9 @@ - #--- - - def _import_toolkit ( name ): -+if name == "wx": -+import wxversion -+wxversion.select("2.8") - return __import__( name, globals=globals(), level=1 ).toolkit - - Copied: python2-traitsui/repos/community-any/wx28.patch (from rev 134467, python2-traitsui/trunk/wx28.patch) === --- wx28.patch (rev 0) +++ wx28.patch 2015-06-01 12:51:30 UTC (rev 134468) @@ -0,0 +1,12 @@ +--- traitsui/toolkit.py.orig 2015-03-21 11:54:29.883107683 +0100 traitsui/toolkit.py2015-03-21 11:56:52.905373040 +0100 +@@ -48,6 +48,9 @@ + #--- + + def _import_toolkit ( name ): ++if name == "wx": ++import wxversion ++wxversion.select("2.8") + return __import__( name, globals=globals(), level=1 ).toolkit + +