[arch-commits] Commit in python-wxpython (4 files)
Balló György
bgyorgy at archlinux.org
Sat Apr 7 14:40:27 UTC 2018
Date: Saturday, April 7, 2018 @ 14:40:27
Author: bgyorgy
Revision: 314850
archrelease: copy trunk to community-x86_64
Added:
python-wxpython/repos/
python-wxpython/repos/community-x86_64/
python-wxpython/repos/community-x86_64/PKGBUILD
(from rev 314849, python-wxpython/trunk/PKGBUILD)
python-wxpython/repos/community-x86_64/unbundle-sip.patch
(from rev 314849, python-wxpython/trunk/unbundle-sip.patch)
--------------------+
PKGBUILD | 35 ++++++++++++++++++++++++++++++
unbundle-sip.patch | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 93 insertions(+)
Copied: python-wxpython/repos/community-x86_64/PKGBUILD (from rev 314849, python-wxpython/trunk/PKGBUILD)
===================================================================
--- repos/community-x86_64/PKGBUILD (rev 0)
+++ repos/community-x86_64/PKGBUILD 2018-04-07 14:40:27 UTC (rev 314850)
@@ -0,0 +1,35 @@
+# $Id$
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgname=python-wxpython
+pkgver=4.0.1
+pkgrel=1
+pkgdesc="Phoenix wxWidgets GUI toolkit for Python"
+arch=('x86_64')
+license=('custom:wxWindows')
+url="https://www.wxpython.org"
+depends=('wxgtk3' 'python-setuptools' 'python-sip' 'python-six')
+makedepends=('mesa' 'glu')
+source=("https://github.com/wxWidgets/Phoenix/releases/download/wxPython-${pkgver}/wxPython-${pkgver}.tar.gz"
+ "unbundle-sip.patch")
+sha256sums=('f8f2ac1a75368b9b103259addc77f4e3dfe729c6d70aa1fd0b7e9c5b6075c710'
+ '060badc5667993cd4120c8779f812d892d9a46816287b622af02756bb330cc9f')
+
+prepare() {
+ cd wxPython-${pkgver}
+ patch -Np1 -i ../unbundle-sip.patch
+ find -name '*.py' | xargs sed -i 's/wx.siplib/sip/'
+ rm -rf sip
+}
+
+build() {
+ cd wxPython-${pkgver}
+ python3 setup.py build
+}
+
+package() {
+ cd wxPython-${pkgver}
+ python3 setup.py install --root="${pkgdir}" --optimize=1
+ install -Dm644 LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE.txt
+ find "$pkgdir/usr/lib" -type f | xargs chmod 644
+}
Copied: python-wxpython/repos/community-x86_64/unbundle-sip.patch (from rev 314849, python-wxpython/trunk/unbundle-sip.patch)
===================================================================
--- repos/community-x86_64/unbundle-sip.patch (rev 0)
+++ repos/community-x86_64/unbundle-sip.patch 2018-04-07 14:40:27 UTC (rev 314850)
@@ -0,0 +1,58 @@
+diff --git a/wscript b/wscript
+--- a/wscript
++++ b/wscript
+@@ -95,8 +95,8 @@
+ conf.env.debug = conf.options.debug
+ conf.env.msvc_relwithdebug = conf.options.msvc_relwithdebug
+
+- # Ensure that the headers in siplib and Phoenix's src dir can be found
+- conf.env.INCLUDES_WXPY = ['sip/siplib', 'src']
++ # Ensure that the headers in Phoenix's src dir can be found
++ conf.env.INCLUDES_WXPY = ['src']
+
+ if isWindows:
+ # Windows/MSVC specific stuff
+@@ -505,26 +505,6 @@
+ copy_file(name, cfg.PKGDIR, update=1, verbose=1)
+
+
+- # Create the build tasks for each of our extension modules.
+- addRelwithdebugFlags(bld, 'siplib')
+- siplib = bld(
+- features = 'c cxx cshlib cxxshlib pyext',
+- target = makeTargetName(bld, 'siplib'),
+- source = ['sip/siplib/apiversions.c',
+- 'sip/siplib/array.c',
+- 'sip/siplib/bool.cpp',
+- 'sip/siplib/descriptors.c',
+- 'sip/siplib/int_convertors.c',
+- 'sip/siplib/objmap.c',
+- 'sip/siplib/qtlib.c',
+- 'sip/siplib/siplib.c',
+- 'sip/siplib/threads.c',
+- 'sip/siplib/voidptr.c',
+- ],
+- uselib = 'siplib WX WXPY',
+- )
+- makeExtCopyRule(bld, 'siplib')
+-
+ # Add build rules for each of our ETG generated extension modules
+ makeETGRule(bld, 'etg/_core.py', '_core', 'WX')
+ makeETGRule(bld, 'etg/_adv.py', '_adv', 'WXADV')
+@@ -613,14 +593,14 @@
+
+ # Make extension module build rules using info gleaned from an ETG script
+ def makeETGRule(bld, etgScript, moduleName, libFlags):
+- from buildtools.config import loadETG, getEtgSipCppFiles
++ from buildtools.config import loadETG
+
+ addRelwithdebugFlags(bld, moduleName)
+ rc = ['src/wxc.rc'] if isWindows else []
+ etg = loadETG(etgScript)
+ bld(features='c cxx cxxshlib pyext',
+ target=makeTargetName(bld, moduleName),
+- source=getEtgSipCppFiles(etg) + rc,
++ source=rc,
+ uselib='{} {} WXPY'.format(moduleName, libFlags),
+ )
+ makeExtCopyRule(bld, moduleName)
More information about the arch-commits
mailing list