[arch-commits] Commit in wxpython/repos (4 files)
Antonio Rojas
arojas at archlinux.org
Tue Jun 20 14:09:27 UTC 2017
Date: Tuesday, June 20, 2017 @ 14:09:26
Author: arojas
Revision: 239036
archrelease: copy trunk to community-testing-i686, community-testing-x86_64
Added:
wxpython/repos/community-testing-i686/
wxpython/repos/community-testing-i686/PKGBUILD
(from rev 239035, wxpython/trunk/PKGBUILD)
wxpython/repos/community-testing-x86_64/
wxpython/repos/community-testing-x86_64/PKGBUILD
(from rev 239035, wxpython/trunk/PKGBUILD)
-----------------------------------+
community-testing-i686/PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++
community-testing-x86_64/PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++
2 files changed, 84 insertions(+)
Copied: wxpython/repos/community-testing-i686/PKGBUILD (from rev 239035, wxpython/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2017-06-20 14:09:26 UTC (rev 239036)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgname=wxpython
+pkgver=3.0.2.0
+_editraver=0.7.20
+pkgrel=3
+pkgdesc="A wxWidgets GUI toolkit for Python"
+arch=('i686' 'x86_64')
+license=('custom:wxWindows')
+url="http://www.wxpython.org"
+depends=('wxgtk2' 'python2')
+makedepends=('mesa' 'glu' 'gst-plugins-base-libs')
+source=(http://downloads.sourceforge.net/wxpython/wxPython-src-${pkgver}.tar.bz2
+ http://editra.org/uploads/src/Editra-${_editraver}.tar.gz)
+sha256sums=('d54129e5fbea4fb8091c87b2980760b72c22a386cb3b9dd2eebc928ef5e8df61'
+ 'ed515bca58d87d9a2b3085f322a9fe7c6d1407a3b05db1434f80ea8f7e42ccc0')
+
+prepare() {
+ cd "${srcdir}"
+ find . -type f -exec sed -i 's/env python/env python2/' {} \;
+ sed -i 's/sys.exit(1)//' Editra-${_editraver}/setup.py
+}
+
+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
+}
+
+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"
+}
Copied: wxpython/repos/community-testing-x86_64/PKGBUILD (from rev 239035, wxpython/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2017-06-20 14:09:26 UTC (rev 239036)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgname=wxpython
+pkgver=3.0.2.0
+_editraver=0.7.20
+pkgrel=3
+pkgdesc="A wxWidgets GUI toolkit for Python"
+arch=('i686' 'x86_64')
+license=('custom:wxWindows')
+url="http://www.wxpython.org"
+depends=('wxgtk2' 'python2')
+makedepends=('mesa' 'glu' 'gst-plugins-base-libs')
+source=(http://downloads.sourceforge.net/wxpython/wxPython-src-${pkgver}.tar.bz2
+ http://editra.org/uploads/src/Editra-${_editraver}.tar.gz)
+sha256sums=('d54129e5fbea4fb8091c87b2980760b72c22a386cb3b9dd2eebc928ef5e8df61'
+ 'ed515bca58d87d9a2b3085f322a9fe7c6d1407a3b05db1434f80ea8f7e42ccc0')
+
+prepare() {
+ cd "${srcdir}"
+ find . -type f -exec sed -i 's/env python/env python2/' {} \;
+ sed -i 's/sys.exit(1)//' Editra-${_editraver}/setup.py
+}
+
+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
+}
+
+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"
+}
More information about the arch-commits
mailing list