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

Bruno Pagani archange at archlinux.org
Tue Jun 27 12:14:50 UTC 2017


    Date: Tuesday, June 27, 2017 @ 12:14:49
  Author: archange
Revision: 241155

Switch to wxgtk3

Also stay with integrated Editra, it has been the latest version for a while
(even include more recent changes).

Modified:
  wxpython/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-06-27 11:36:03 UTC (rev 241154)
+++ PKGBUILD	2017-06-27 12:14:49 UTC (rev 241155)
@@ -3,40 +3,43 @@
 
 pkgname=wxpython
 pkgver=3.0.2.0
-_editraver=0.7.20
-pkgrel=3
+pkgrel=4
 pkgdesc="A wxWidgets GUI toolkit for Python"
 arch=('i686' 'x86_64')
 license=('custom:wxWindows')
-url="http://www.wxpython.org"
-depends=('wxgtk2' 'python2')
+url="https://www.wxpython.org"
+depends=('wxgtk3' 'python2')
 makedepends=('mesa' 'glu')
-source=(http://downloads.sourceforge.net/wxpython/wxPython-src-${pkgver}.tar.bz2
-        http://editra.org/uploads/src/Editra-${_editraver}.tar.gz)
-sha256sums=('d54129e5fbea4fb8091c87b2980760b72c22a386cb3b9dd2eebc928ef5e8df61'
-            'ed515bca58d87d9a2b3085f322a9fe7c6d1407a3b05db1434f80ea8f7e42ccc0')
+source=("https://downloads.sourceforge.net/wxpython/wxPython-src-${pkgver}.tar.bz2")
+sha256sums=('d54129e5fbea4fb8091c87b2980760b72c22a386cb3b9dd2eebc928ef5e8df61')
 
 prepare() {
-  cd "${srcdir}"
-  find . -type f -exec sed -i 's/env python/env python2/' {} \;
-  sed -i 's/sys.exit(1)//' Editra-${_editraver}/setup.py
+    find . -type f -exec sed -i 's/env python/env python2/' {} \;
 }
 
 build() {
-  cd wxPython-src-${pkgver}
-  ./configure --prefix=/usr --libdir=/usr/lib --with-gtk=2 --with-opengl --enable-unicode \
-    --enable-graphics_ctx --disable-precomp-headers \
-    --with-regex=sys --with-libpng=sys --with-libxpm=sys --with-libjpeg=sys --with-libtiff=sys
-  cd wxPython
-  python2 setup.py WXPORT=gtk2 UNICODE=1 build
+    cd wxPython-src-${pkgver}
+    ./configure \
+        --prefix=/usr \
+        --libdir=/usr/lib \
+        --includedir=/usr/include \
+        --with-gtk=3 \
+        --with-opengl \
+        --enable-unicode \
+        --enable-graphics_ctx \
+        --disable-precomp-headers \
+        --with-regex=sys \
+        --with-libpng=sys \
+        --with-libxpm=sys \
+        --with-libjpeg=sys \
+        --with-libtiff=sys \
+        --with-wx-config=/usr/bin/wx-config-gtk3
+    cd wxPython
+    python2 setup.py WX_CONFIG=/usr/bin/wx-config-gtk3 WXPORT=gtk3 UNICODE=1 build
 }
 
 package() {
-  cd wxPython-src-${pkgver}/wxPython
-  python2 setup.py WXPORT=gtk2 UNICODE=1 install --root="${pkgdir}"
-  install -D -m644 ../docs/licence.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-
-  cd "${srcdir}/Editra-${_editraver}"
-  python2 setup.py install --root="${pkgdir}"
-  rm -r "${pkgdir}/usr/lib/python2.7/site-packages/wx-3.0-gtk2/wx/tools/Editra"
+    cd wxPython-src-${pkgver}/wxPython
+    python2 setup.py WX_CONFIG=/usr/bin/wx-config-gtk3 WXPORT=gtk3 UNICODE=1 install --root="${pkgdir}"
+    install -Dm644 ../docs/licence.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
 }



More information about the arch-commits mailing list