[arch-commits] Commit in (5 files)
Andrea Scarpino
andrea at archlinux.org
Tue Jan 11 01:46:12 UTC 2011
Date: Monday, January 10, 2011 @ 20:46:11
Author: andrea
Revision: 105711
rename pyqt as python2-qt
Added:
python2-qt/
python2-qt/repos/
python2-qt/trunk/
python2-qt/trunk/PKGBUILD
python2-qt/trunk/fix-stackedwidget-bug.patch
-----------------------------+
PKGBUILD | 48 ++++++++++++++++++++++++++++++++++++++++++
fix-stackedwidget-bug.patch | 11 +++++++++
2 files changed, 59 insertions(+)
Added: python2-qt/trunk/PKGBUILD
===================================================================
--- python2-qt/trunk/PKGBUILD (rev 0)
+++ python2-qt/trunk/PKGBUILD 2011-01-11 01:46:11 UTC (rev 105711)
@@ -0,0 +1,48 @@
+# $Id$
+# Maintainer: Andrea Scarpino <andrea at archlinux.org>
+# Contributor: Douglas Soares de Andrade <douglas at archlinux.org>
+# Contributor: riai <riai at bigfoot.com> Ben <ben at benmazer.net>
+
+pkgname=python2-qt
+pkgver=4.8.2
+pkgrel=1
+pkgdesc="A set of Python bindings for the Qt toolkit"
+arch=('i686' 'x86_64')
+url="http://riverbankcomputing.co.uk/software/pyqt/intro"
+license=('GPL')
+depends=('python2-sip' 'qt' 'dbus-python')
+makedepends=('phonon' 'python-opengl' 'qt-assistant-compat')
+optdepends=('phonon: enable audio and video in PyQt applications'
+ 'python-opengl: enable OpenGL 3D graphics in PyQt applications'
+ 'qscintilla: QScintilla API'
+ 'qt-assistant-compat: add PyQt online help in Qt Assistant')
+provides=('pyqt4' "pyqt=${pkgver}")
+replaces=('pyqt4' 'pyqt')
+conflicts=('pyqt4' 'pyqt')
+source=("http://riverbankcomputing.co.uk/static/Downloads/PyQt4/PyQt-x11-gpl-${pkgver}.tar.gz"
+ 'fix-stackedwidget-bug.patch')
+md5sums=('142a32f126f205a2bd77f6a9910f5333'
+ '42cfd44a8ec063cce3e328ddb9892565')
+
+build() {
+ cd ${srcdir}/PyQt-x11-gpl-${pkgver}
+
+ # Already fixed upstream
+ patch -Np1 -i ${srcdir}/fix-stackedwidget-bug.patch
+
+ python2 configure.py \
+ --confirm-license \
+ -v /usr/share/sip \
+ --qsci-api
+
+ # Thanks Gerardo for the rpath fix
+ find -name 'Makefile' | xargs sed -i 's|-Wl,-rpath,/usr/lib||g;s|-Wl,-rpath,.* ||g'
+
+ make
+}
+
+package(){
+ cd ${srcdir}/PyQt-x11-gpl-${pkgver}
+ # INSTALL_ROOT is needed for the QtDesigner module, the other Makefiles use DESTDIR
+ make DESTDIR="${pkgdir}" INSTALL_ROOT="${pkgdir}" install
+}
Property changes on: python2-qt/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
+ Id
Added: python2-qt/trunk/fix-stackedwidget-bug.patch
===================================================================
--- python2-qt/trunk/fix-stackedwidget-bug.patch (rev 0)
+++ python2-qt/trunk/fix-stackedwidget-bug.patch 2011-01-11 01:46:11 UTC (rev 105711)
@@ -0,0 +1,11 @@
+--- PyQt-x11-gpl-4.8.2/pyuic/uic/uiparser.py~ 2010-12-27 14:01:31.500057960 -0800
++++ PyQt-x11-gpl-4.8.2/pyuic/uic/uiparser.py 2010-12-27 14:01:44.460058033 -0800
+@@ -158,7 +158,7 @@
+ # Ignore the parent if it is a container.
+ parent = self.stack.topwidget
+ if isinstance(parent, (QtGui.QDockWidget, QtGui.QMdiArea,
+- QtGui.QScrollArea, QtGui.StackedWidget,
++ QtGui.QScrollArea, QtGui.QStackedWidget,
+ QtGui.QToolBox, QtGui.QTabWidget,
+ QtGui.QWizard)):
+ parent = None
More information about the arch-commits
mailing list