[arch-commits] Commit in kdebindings-python/repos (8 files)

Felix Yan fyan at nymeria.archlinux.org
Thu Mar 20 08:37:59 UTC 2014


    Date: Thursday, March 20, 2014 @ 09:37:59
  Author: fyan
Revision: 208242

archrelease: copy trunk to staging-i686, staging-x86_64

Added:
  kdebindings-python/repos/staging-i686/
  kdebindings-python/repos/staging-i686/PKGBUILD
    (from rev 208241, kdebindings-python/trunk/PKGBUILD)
  kdebindings-python/repos/staging-i686/pykde4.patch
    (from rev 208241, kdebindings-python/trunk/pykde4.patch)
  kdebindings-python/repos/staging-i686/sip-4.15.5.patch
    (from rev 208241, kdebindings-python/trunk/sip-4.15.5.patch)
  kdebindings-python/repos/staging-x86_64/
  kdebindings-python/repos/staging-x86_64/PKGBUILD
    (from rev 208241, kdebindings-python/trunk/PKGBUILD)
  kdebindings-python/repos/staging-x86_64/pykde4.patch
    (from rev 208241, kdebindings-python/trunk/pykde4.patch)
  kdebindings-python/repos/staging-x86_64/sip-4.15.5.patch
    (from rev 208241, kdebindings-python/trunk/sip-4.15.5.patch)

---------------------------------+
 staging-i686/PKGBUILD           |   96 +++++++++++++
 staging-i686/pykde4.patch       |  269 ++++++++++++++++++++++++++++++++++++++
 staging-i686/sip-4.15.5.patch   |   12 +
 staging-x86_64/PKGBUILD         |   96 +++++++++++++
 staging-x86_64/pykde4.patch     |  269 ++++++++++++++++++++++++++++++++++++++
 staging-x86_64/sip-4.15.5.patch |   12 +
 6 files changed, 754 insertions(+)

Copied: kdebindings-python/repos/staging-i686/PKGBUILD (from rev 208241, kdebindings-python/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD	                        (rev 0)
+++ staging-i686/PKGBUILD	2014-03-20 08:37:59 UTC (rev 208242)
@@ -0,0 +1,96 @@
+# $Id$
+# Maintainer: Andrea Scarpino <andrea at archlinux.org>
+
+pkgbase=kdebindings-python
+pkgname=('kdebindings-python'
+         'kdebindings-python2'
+         'kdebindings-python-common')
+pkgver=4.12.3
+pkgrel=2
+url='https://projects.kde.org/projects/kde/kdebindings/pykde4'
+arch=('i686' 'x86_64')
+license=('GPL' 'LGPL' 'FDL')
+groups=('kdebindings')
+makedepends=('cmake' 'automoc4' 'boost' 'kdepim-runtime' 'python2-pyqt4'
+             'python-pyqt4' 'qscintilla' 'python2-sip' 'python-sip' 'mesa')
+source=("http://download.kde.org/stable/${pkgver}/src/pykde4-${pkgver}.tar.xz"
+        sip-4.15.5.patch)
+sha1sums=('6e5cab25aee404469d6875d067bf2ad3382e4a1a'
+          'bffd9f642ad10fb3a49c42e4b457b2b90665d641')
+
+prepare() {
+  mkdir build
+
+  cd pykde4-${pkgver}
+  # Fix build with sip 4.15.5 upstream: https://bugs.kde.org/show_bug.cgi?id=332223
+  patch -p1 -i "$srcdir/sip-4.15.5.patch"
+}
+
+build() {
+  export PYTHONDONTWRITEBYTECODE="TRUE"
+
+  cd build
+  cmake ../pykde4-${pkgver} \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DKDE4_BUILD_TESTS=OFF \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DPYTHON_EXECUTABLE=/usr/bin/python3 \
+    -DPYTHON_LIBRARY=/usr/lib/libpython3.4m.so.1.0 \
+    -DPYKDEUIC4_ALTINSTALL=TRUE
+  make
+  cd ..
+
+  mkdir build-python2
+  cd build-python2
+  cmake ../pykde4-${pkgver} \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DKDE4_BUILD_TESTS=OFF \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DPYTHON_EXECUTABLE=/usr/bin/python2 \
+    -DPYKDEUIC4_ALTINSTALL=TRUE
+  make
+}
+
+package_kdebindings-python() {
+  pkgdesc="A set of Python 3.x bindings for KDE"
+  depends=('kdepim-runtime' 'python-pyqt4' 'kdebindings-python-common')
+
+  cd "${srcdir}"/build
+  make DESTDIR="${pkgdir}" install
+  
+  # Provided by kdebindings-python-common
+  rm -r "${pkgdir}"/usr/share/apps/pykde4/examples
+  rm -r "${pkgdir}"/usr/share/sip/PyKDE4
+
+  ln -s /usr/bin/pykdeuic4-3.4 "${pkgdir}"/usr/bin/pykdeuic4
+}
+
+package_kdebindings-python2() {
+  pkgdesc="A set of Python 2.x bindings for KDE"
+  depends=('kdepim-runtime' 'python2-pyqt4' 'kdebindings-python-common')
+  conflicts=('kdebindings-python<4.8.1-2')
+ 
+  cd "${srcdir}"/build-python2
+  make DESTDIR="${pkgdir}" install
+
+  # Provided by kdebindings-python-common
+  rm -r "${pkgdir}"/usr/share/apps/pykde4/examples
+  rm -r "${pkgdir}"/usr/share/sip/PyKDE4
+
+  # pykdeuic4 should point to the python3 version
+  #rm "${pkgdir}"/usr/bin/pykdeuic4
+
+  # Use the python2 executable
+  find "${pkgdir}" -name '*.py' | xargs sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|'
+}
+
+package_kdebindings-python-common() {
+  pkgdesc="Common files shared between python2 and python3 kdebindings"
+  depends=('qscintilla')
+  conflicts=('kdebindings-python<4.8.1-2')
+
+  cd build
+  make DESTDIR="${pkgdir}" install
+
+  rm -r "${pkgdir}"/usr/{bin,lib}
+}

Copied: kdebindings-python/repos/staging-i686/pykde4.patch (from rev 208241, kdebindings-python/trunk/pykde4.patch)
===================================================================
--- staging-i686/pykde4.patch	                        (rev 0)
+++ staging-i686/pykde4.patch	2014-03-20 08:37:59 UTC (rev 208242)
@@ -0,0 +1,269 @@
+--- pykde4-4.11.1.orig/CMakeLists.txt	2013-09-08 17:29:29.775854281 -0400
++++ pykde4-4.11.1/CMakeLists.txt	2013-09-08 17:29:29.755854280 -0400
+@@ -124,20 +124,20 @@
+ if (PYTHON_VERSION_MAJOR GREATER 2)
+     if(PYQT4_VERSION STRGREATER "040904")
+ 	    # Disable for newer PyQt
+-	    set(SIP_EXTRA_OPTIONS -g -x PyKDE_QVector)
++	    set(SIP_EXTRA_OPTIONS -P -g -x PyKDE_QVector)
+     else ()
+ 	    set(SIP_EXTRA_OPTIONS -g)
+     endif()
+ else (PYTHON_VERSION_MAJOR GREATER 2)
+     if(PYQT4_VERSION STRGREATER "040904")
+ 	# Disable for newer PyQt
+-    	set(SIP_EXTRA_OPTIONS -g -x PyKDE_QVector -x Py_v3)
++    	set(SIP_EXTRA_OPTIONS -P -g -x PyKDE_QVector -x Py_v3)
+     else ()
+ 	    set(SIP_EXTRA_OPTIONS -g -x Py_v3)
+     endif()
+ endif ()
+ 
+-add_definitions(-D_REENTRANT -DQT_CORE_LIB -DQT_GUI_LIB -DUSING_SOPRANO_NRLMODEL_UNSTABLE_API)
++add_definitions(-D_REENTRANT -DQT_CORE_LIB -DQT_GUI_LIB -DUSING_SOPRANO_NRLMODEL_UNSTABLE_API -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public)
+ 
+ # Do not use --no-undefined for python modules.
+ STRING(REPLACE -Wl,--no-undefined "" CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS}")
+--- pykde4-4.11.1.orig/sip/akonadi/entitytreemodel.sip	2013-09-08 17:29:29.775854281 -0400
++++ pykde4-4.11.1/sip/akonadi/entitytreemodel.sip	2013-09-08 17:29:29.755854280 -0400
+@@ -122,5 +122,12 @@
+     };
+     bool                    includeUnsubscribed () const;
+     void                    setIncludeUnsubscribed (bool show);
++//force
++private:
++    virtual bool removeColumns(int, int, const QModelIndex&);
++    virtual bool removeRows(int, int, const QModelIndex&);
++    virtual bool insertColumns(int, int, const QModelIndex&);
++    virtual bool insertRows(int, int, const QModelIndex&);
++//end
+ };
+ };
+--- pykde4-4.11.1.orig/sip/akonadi/favoritecollectionsmodel.sip	2013-09-08 17:29:29.775854281 -0400
++++ pykde4-4.11.1/sip/akonadi/favoritecollectionsmodel.sip	2013-09-08 17:29:29.759854280 -0400
+@@ -42,5 +42,9 @@
+     virtual bool            dropMimeData (const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent);
+     virtual QStringList     mimeTypes () const;
+     virtual Qt::ItemFlags   flags (const QModelIndex& index) const;
++//force
++private:
++    virtual void setSourceModel(QAbstractItemModel *);
++//end
+ };
+ };
+--- pykde4-4.11.1.orig/sip/kdeui/highlighter.sip	2013-09-08 17:29:29.775854281 -0400
++++ pykde4-4.11.1/sip/kdeui/highlighter.sip	2013-09-08 17:29:29.759854280 -0400
+@@ -70,6 +70,11 @@
+ public:
+     ~Highlighter ();
+     bool                    checkerEnabledByDefault () const;
++//force
++private:
++        virtual void connectNotify(const char* signal);
++        virtual void disconnectNotify(const char* signal);
++//end
+ };
+ // Highlighter
+ 
+--- pykde4-4.11.1.orig/sip/kdeui/kdatetable.sip	2013-09-08 17:29:29.775854281 -0400
++++ pykde4-4.11.1/sip/kdeui/kdatetable.sip	2013-09-08 17:29:29.759854280 -0400
+@@ -61,8 +61,10 @@
+ 
+ public:
+                             KDateValidator (QWidget* parent /TransferThis/ = 0);
+-    virtual QValidator::State  validate (QString& text, int& e /In/) const;
+-    virtual void            fixup (QString& input) const;
++    virtual QValidator::State validate(QString & /In,Out/, int & /In,Out/) const = 0 /API=QString:2 - /;
++    virtual QValidator::State validate(QString & /Constrained/, int & /In,Out/) const = 0 /API=QString: - 2/;
++    virtual void fixup(QString &input /In,Out/) const /API=QString:2 - /;
++    virtual void fixup(QString & /Constrained/) const /API=QString: - 2/;
+     QValidator::State       date (const QString& text, QDate& date) const;
+ };
+ // KDateValidator
+--- pykde4-4.11.1.orig/sip/kdeui/knumvalidator.sip	2013-09-08 17:29:29.775854281 -0400
++++ pykde4-4.11.1/sip/kdeui/knumvalidator.sip	2013-09-08 17:29:29.759854280 -0400
+@@ -30,8 +30,10 @@
+ public:
+     explicit                KIntValidator (QWidget* parent /TransferThis/, int base = 10);
+                             KIntValidator (int bottom, int top, QWidget* parent /TransferThis/, int base = 10);
+-    virtual QValidator::State  validate (QString&, int& /In/) const;
+-    virtual void            fixup (QString&) const;
++    virtual QValidator::State validate(QString & /In,Out/, int & /In,Out/) const = 0 /API=QString:2 - /;
++    virtual QValidator::State validate(QString & /Constrained/, int & /In,Out/) const = 0 /API=QString: - 2/;
++    virtual void fixup(QString &input /In,Out/) const /API=QString:2 - /;
++    virtual void fixup(QString & /Constrained/) const /API=QString: - 2/;
+     virtual void            setRange (int bottom, int top);
+     virtual void            setBase (int base);
+     virtual int             bottom () const;
+@@ -53,8 +55,10 @@
+     explicit                KFloatValidator (QWidget* parent /TransferThis/);
+                             KFloatValidator (double bottom, double top, QWidget* parent /TransferThis/);
+                             KFloatValidator (double bottom, double top, bool localeAware, QWidget* parent /TransferThis/);
+-    virtual QValidator::State  validate (QString&, int& /In/) const;
+-    virtual void            fixup (QString&) const;
++    virtual QValidator::State validate(QString & /In,Out/, int & /In,Out/) const = 0 /API=QString:2 - /;
++    virtual QValidator::State validate(QString & /Constrained/, int & /In,Out/) const = 0 /API=QString: - 2/;
++    virtual void fixup(QString &input /In,Out/) const /API=QString:2 - /;
++    virtual void fixup(QString & /Constrained/) const /API=QString: - 2/;
+     virtual void            setRange (double bottom, double top);
+     virtual double          bottom () const;
+     virtual double          top () const;
+@@ -75,7 +79,8 @@
+ public:
+     explicit                KDoubleValidator (QObject* parent /TransferThis/);
+                             KDoubleValidator (double bottom, double top, int decimals, QObject* parent /TransferThis/);
+-    virtual QValidator::State  validate (QString& input, int& pos /In/) const;
++    virtual QValidator::State validate(QString & /In,Out/, int & /In,Out/) const = 0 /API=QString:2 - /;
++    virtual QValidator::State validate(QString & /Constrained/, int & /In,Out/) const = 0 /API=QString: - 2/;
+     bool                    acceptLocalizedNumbers () const;
+     void                    setAcceptLocalizedNumbers (bool accept);
+     ~KDoubleValidator ();
+--- pykde4-4.11.1.orig/sip/kdeui/kpixmapregionselectorwidget.sip	2013-09-08 17:29:29.775854281 -0400
++++ pykde4-4.11.1/sip/kdeui/kpixmapregionselectorwidget.sip	2013-09-08 17:29:29.759854280 -0400
+@@ -57,6 +57,7 @@
+ private:
+ //force
+                             KPixmapRegionSelectorWidget (const KPixmapRegionSelectorWidget&);
++    virtual bool eventFilter(QObject*, QEvent*);
+ //end
+ public:
+     ~KPixmapRegionSelectorWidget ();
+--- pykde4-4.11.1.orig/sip/kdeui/kpixmapsequenceoverlaypainter.sip	2013-09-08 17:29:29.775854281 -0400
++++ pykde4-4.11.1/sip/kdeui/kpixmapsequenceoverlaypainter.sip	2013-09-08 17:29:29.763854280 -0400
+@@ -39,4 +39,8 @@
+     void                    setOffset (const QPoint& offset);
+     void                    start ();
+     void                    stop ();
++//force
++private:
++    virtual bool eventFilter(QObject*, QEvent*);
++//end
+ };
+--- pykde4-4.11.1.orig/sip/kdeui/krecursivefilterproxymodel.sip	2013-09-08 17:29:29.775854281 -0400
++++ pykde4-4.11.1/sip/kdeui/krecursivefilterproxymodel.sip	2013-09-08 17:29:29.763854280 -0400
+@@ -31,4 +31,8 @@
+     virtual bool            acceptRow (int sourceRow, const QModelIndex& sourceParent) const;
+ public:
+     virtual QModelIndexList  match (const QModelIndex& start, int role, const QVariant& value, int hits = 1, Qt::MatchFlags flags = Qt::MatchFlags(Qt::MatchStartsWith|Qt::MatchWrap)) const;
++//force
++private:
++    virtual bool filterAcceptsRow(int, const QModelIndex&) const;
++//end
+ };
+--- pykde4-4.11.1.orig/sip/kdeui/kstringvalidator.sip	2013-09-08 17:29:29.775854281 -0400
++++ pykde4-4.11.1/sip/kdeui/kstringvalidator.sip	2013-09-08 17:29:29.763854280 -0400
+@@ -35,8 +35,10 @@
+     bool                    isFixupEnabled () const;
+     void                    setStringList (const QStringList& list);
+     QStringList             stringList () const;
+-    virtual QValidator::State  validate (QString& input, int& pos /Out/) const;
+-    virtual void            fixup (QString& input) const;
++    virtual QValidator::State validate(QString & /In,Out/, int & /In,Out/) const = 0 /API=QString:2 - /;
++    virtual QValidator::State validate(QString & /Constrained/, int & /In,Out/) const = 0 /API=QString: - 2/;
++    virtual void fixup(QString &input /In,Out/) const /API=QString:2 - /;
++    virtual void fixup(QString & /Constrained/) const /API=QString: - 2/;
+     ~KStringListValidator ();
+ };
+ // KStringListValidator
+@@ -51,8 +53,10 @@
+ 
+ public:
+     explicit                KMimeTypeValidator (QObject* parent /TransferThis/ = 0);
+-    virtual QValidator::State  validate (QString& input, int& pos /Out/) const;
+-    virtual void            fixup (QString& input) const;
++    virtual QValidator::State validate(QString & /In,Out/, int & /In,Out/) const = 0 /API=QString:2 - /;
++    virtual QValidator::State validate(QString & /Constrained/, int & /In,Out/) const = 0 /API=QString: - 2/;
++    virtual void fixup(QString &input /In,Out/) const /API=QString:2 - /;
++    virtual void fixup(QString & /Constrained/) const /API=QString: - 2/;
+     ~KMimeTypeValidator ();
+ };
+ // KMimeTypeValidator
+--- pykde4-4.11.1.orig/sip/kdeui/ktogglefullscreenaction.sip	2013-09-08 17:29:29.775854281 -0400
++++ pykde4-4.11.1/sip/kdeui/ktogglefullscreenaction.sip	2013-09-08 17:29:29.763854280 -0400
+@@ -37,7 +37,10 @@
+     bool                    eventFilter (QObject* object, QEvent* event);
+ public:
+     ~KToggleFullScreenAction ();
++
++//force
++private:
++    virtual void slotToggled(bool);
++//end
+ };
+ // KToggleFullScreenAction
+-
+-
+--- pykde4-4.11.1.orig/sip/kdeui/ktoggletoolbaraction.sip	2013-09-08 17:29:29.775854281 -0400
++++ pykde4-4.11.1/sip/kdeui/ktoggletoolbaraction.sip	2013-09-08 17:29:29.763854280 -0400
+@@ -33,6 +33,10 @@
+     KToolBar*               toolBar ();
+     virtual bool            eventFilter (QObject* watched, QEvent* event);
+     ~KToggleToolBarAction ();
++//force
++private:
++    virtual void slotToggled( bool checked );
++//end
+ };
+ // KToggleToolBarAction
+ 
+--- pykde4-4.11.1.orig/sip/kio/kdirmodel.sip	2013-09-08 17:29:29.775854281 -0400
++++ pykde4-4.11.1/sip/kio/kdirmodel.sip	2013-09-08 17:29:29.767854280 -0400
+@@ -105,6 +105,13 @@
+     ~KDirModel ();
+     void                    setJobTransfersVisible (bool value);
+     bool                    jobTransfersVisible () const;
++//force
++private:
++    virtual bool removeColumns(int, int, const QModelIndex&);
++    virtual bool removeRows(int, int, const QModelIndex&);
++    virtual bool insertColumns(int, int, const QModelIndex&);
++    virtual bool insertRows(int, int, const QModelIndex&);
++//end
+ };
+ // KDirModel
+ 
+--- pykde4-4.11.1.orig/sip/kio/kshellcompletion.sip	2013-09-08 17:29:29.775854281 -0400
++++ pykde4-4.11.1/sip/kio/kshellcompletion.sip	2013-09-08 17:29:29.767854280 -0400
+@@ -39,5 +39,3 @@
+     ~KShellCompletion ();
+ };
+ // KShellCompletion
+-
+-
+--- pykde4-4.11.1.orig/sip/kio/metainfojob.sip	2013-09-08 17:29:29.775854281 -0400
++++ pykde4-4.11.1/sip/kio/metainfojob.sip	2013-09-08 17:29:29.767854280 -0400
+@@ -51,7 +51,7 @@
+ private:
+ //force
+                             MetaInfoJob ();
+-
++    virtual void start();
+ //end
+ public:
+     ~MetaInfoJob ();
+--- pykde4-4.11.1.orig/sip/plasma/applet.sip	2013-09-08 17:29:29.775854281 -0400
++++ pykde4-4.11.1/sip/plasma/applet.sip	2013-09-08 17:29:29.767854280 -0400
+@@ -217,6 +217,10 @@
+     void                    showConfigurationInterface (QWidget* widget);
+     bool                    isUserConfiguring () const;
+     explicit                Applet (const KPluginInfo& info, QGraphicsItem* parent = 0, uint appletId = 0);
++//force
++private:
++    virtual void paint(QPainter*, const QStyleOptionGraphicsItem*, QWidget*);
++//end
+ };
+ // Applet
+ 
+--- pykde4-4.11.1.orig/sip/plasma/glapplet.sip	2013-09-08 17:29:29.775854281 -0400
++++ pykde4-4.11.1/sip/plasma/glapplet.sip	2013-09-08 17:29:29.771854281 -0400
+@@ -52,6 +52,10 @@
+     ~GLApplet ();
+     GLuint                  bindTexture (const QImage& image, GLenum target = GL_TEXTURE_2D);
+     void                    deleteTexture (GLuint texture_id);
++
++private:
++    virtual void paint(QPainter*, const QStyleOptionGraphicsItem*, QWidget*);
++    virtual void paintInterface(QPainter*, const QStyleOptionGraphicsItem*, const QRect&);
+ //end
+ };
+ // GLApplet

Copied: kdebindings-python/repos/staging-i686/sip-4.15.5.patch (from rev 208241, kdebindings-python/trunk/sip-4.15.5.patch)
===================================================================
--- staging-i686/sip-4.15.5.patch	                        (rev 0)
+++ staging-i686/sip-4.15.5.patch	2014-03-20 08:37:59 UTC (rev 208242)
@@ -0,0 +1,12 @@
+diff -up pykde4-4.12.3/sip/phonon/backendcapabilities.sip.sip4_15_5 pykde4-4.12.3/sip/phonon/backendcapabilities.sip
+--- pykde4-4.12.3/sip/phonon/backendcapabilities.sip.sip4_15_5  2014-01-18 13:18:35.000000000 -0600
++++ pykde4-4.12.3/sip/phonon/backendcapabilities.sip    2014-03-16 16:56:36.865132943 -0500
+@@ -26,7 +26,7 @@ namespace Phonon
+ {
+ namespace BackendCapabilities
+ {
+-class Notifier : QObject /NoDefaultCtors,PyQt4NoQMetaObject/
++class Notifier : QObject /NoDefaultCtors,PyQtNoQMetaObject/
+ {
+ 
+ signals:

Copied: kdebindings-python/repos/staging-x86_64/PKGBUILD (from rev 208241, kdebindings-python/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2014-03-20 08:37:59 UTC (rev 208242)
@@ -0,0 +1,96 @@
+# $Id$
+# Maintainer: Andrea Scarpino <andrea at archlinux.org>
+
+pkgbase=kdebindings-python
+pkgname=('kdebindings-python'
+         'kdebindings-python2'
+         'kdebindings-python-common')
+pkgver=4.12.3
+pkgrel=2
+url='https://projects.kde.org/projects/kde/kdebindings/pykde4'
+arch=('i686' 'x86_64')
+license=('GPL' 'LGPL' 'FDL')
+groups=('kdebindings')
+makedepends=('cmake' 'automoc4' 'boost' 'kdepim-runtime' 'python2-pyqt4'
+             'python-pyqt4' 'qscintilla' 'python2-sip' 'python-sip' 'mesa')
+source=("http://download.kde.org/stable/${pkgver}/src/pykde4-${pkgver}.tar.xz"
+        sip-4.15.5.patch)
+sha1sums=('6e5cab25aee404469d6875d067bf2ad3382e4a1a'
+          'bffd9f642ad10fb3a49c42e4b457b2b90665d641')
+
+prepare() {
+  mkdir build
+
+  cd pykde4-${pkgver}
+  # Fix build with sip 4.15.5 upstream: https://bugs.kde.org/show_bug.cgi?id=332223
+  patch -p1 -i "$srcdir/sip-4.15.5.patch"
+}
+
+build() {
+  export PYTHONDONTWRITEBYTECODE="TRUE"
+
+  cd build
+  cmake ../pykde4-${pkgver} \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DKDE4_BUILD_TESTS=OFF \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DPYTHON_EXECUTABLE=/usr/bin/python3 \
+    -DPYTHON_LIBRARY=/usr/lib/libpython3.4m.so.1.0 \
+    -DPYKDEUIC4_ALTINSTALL=TRUE
+  make
+  cd ..
+
+  mkdir build-python2
+  cd build-python2
+  cmake ../pykde4-${pkgver} \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DKDE4_BUILD_TESTS=OFF \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DPYTHON_EXECUTABLE=/usr/bin/python2 \
+    -DPYKDEUIC4_ALTINSTALL=TRUE
+  make
+}
+
+package_kdebindings-python() {
+  pkgdesc="A set of Python 3.x bindings for KDE"
+  depends=('kdepim-runtime' 'python-pyqt4' 'kdebindings-python-common')
+
+  cd "${srcdir}"/build
+  make DESTDIR="${pkgdir}" install
+  
+  # Provided by kdebindings-python-common
+  rm -r "${pkgdir}"/usr/share/apps/pykde4/examples
+  rm -r "${pkgdir}"/usr/share/sip/PyKDE4
+
+  ln -s /usr/bin/pykdeuic4-3.4 "${pkgdir}"/usr/bin/pykdeuic4
+}
+
+package_kdebindings-python2() {
+  pkgdesc="A set of Python 2.x bindings for KDE"
+  depends=('kdepim-runtime' 'python2-pyqt4' 'kdebindings-python-common')
+  conflicts=('kdebindings-python<4.8.1-2')
+ 
+  cd "${srcdir}"/build-python2
+  make DESTDIR="${pkgdir}" install
+
+  # Provided by kdebindings-python-common
+  rm -r "${pkgdir}"/usr/share/apps/pykde4/examples
+  rm -r "${pkgdir}"/usr/share/sip/PyKDE4
+
+  # pykdeuic4 should point to the python3 version
+  #rm "${pkgdir}"/usr/bin/pykdeuic4
+
+  # Use the python2 executable
+  find "${pkgdir}" -name '*.py' | xargs sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|'
+}
+
+package_kdebindings-python-common() {
+  pkgdesc="Common files shared between python2 and python3 kdebindings"
+  depends=('qscintilla')
+  conflicts=('kdebindings-python<4.8.1-2')
+
+  cd build
+  make DESTDIR="${pkgdir}" install
+
+  rm -r "${pkgdir}"/usr/{bin,lib}
+}

Copied: kdebindings-python/repos/staging-x86_64/pykde4.patch (from rev 208241, kdebindings-python/trunk/pykde4.patch)
===================================================================
--- staging-x86_64/pykde4.patch	                        (rev 0)
+++ staging-x86_64/pykde4.patch	2014-03-20 08:37:59 UTC (rev 208242)
@@ -0,0 +1,269 @@
+--- pykde4-4.11.1.orig/CMakeLists.txt	2013-09-08 17:29:29.775854281 -0400
++++ pykde4-4.11.1/CMakeLists.txt	2013-09-08 17:29:29.755854280 -0400
+@@ -124,20 +124,20 @@
+ if (PYTHON_VERSION_MAJOR GREATER 2)
+     if(PYQT4_VERSION STRGREATER "040904")
+ 	    # Disable for newer PyQt
+-	    set(SIP_EXTRA_OPTIONS -g -x PyKDE_QVector)
++	    set(SIP_EXTRA_OPTIONS -P -g -x PyKDE_QVector)
+     else ()
+ 	    set(SIP_EXTRA_OPTIONS -g)
+     endif()
+ else (PYTHON_VERSION_MAJOR GREATER 2)
+     if(PYQT4_VERSION STRGREATER "040904")
+ 	# Disable for newer PyQt
+-    	set(SIP_EXTRA_OPTIONS -g -x PyKDE_QVector -x Py_v3)
++    	set(SIP_EXTRA_OPTIONS -P -g -x PyKDE_QVector -x Py_v3)
+     else ()
+ 	    set(SIP_EXTRA_OPTIONS -g -x Py_v3)
+     endif()
+ endif ()
+ 
+-add_definitions(-D_REENTRANT -DQT_CORE_LIB -DQT_GUI_LIB -DUSING_SOPRANO_NRLMODEL_UNSTABLE_API)
++add_definitions(-D_REENTRANT -DQT_CORE_LIB -DQT_GUI_LIB -DUSING_SOPRANO_NRLMODEL_UNSTABLE_API -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public)
+ 
+ # Do not use --no-undefined for python modules.
+ STRING(REPLACE -Wl,--no-undefined "" CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS}")
+--- pykde4-4.11.1.orig/sip/akonadi/entitytreemodel.sip	2013-09-08 17:29:29.775854281 -0400
++++ pykde4-4.11.1/sip/akonadi/entitytreemodel.sip	2013-09-08 17:29:29.755854280 -0400
+@@ -122,5 +122,12 @@
+     };
+     bool                    includeUnsubscribed () const;
+     void                    setIncludeUnsubscribed (bool show);
++//force
++private:
++    virtual bool removeColumns(int, int, const QModelIndex&);
++    virtual bool removeRows(int, int, const QModelIndex&);
++    virtual bool insertColumns(int, int, const QModelIndex&);
++    virtual bool insertRows(int, int, const QModelIndex&);
++//end
+ };
+ };
+--- pykde4-4.11.1.orig/sip/akonadi/favoritecollectionsmodel.sip	2013-09-08 17:29:29.775854281 -0400
++++ pykde4-4.11.1/sip/akonadi/favoritecollectionsmodel.sip	2013-09-08 17:29:29.759854280 -0400
+@@ -42,5 +42,9 @@
+     virtual bool            dropMimeData (const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent);
+     virtual QStringList     mimeTypes () const;
+     virtual Qt::ItemFlags   flags (const QModelIndex& index) const;
++//force
++private:
++    virtual void setSourceModel(QAbstractItemModel *);
++//end
+ };
+ };
+--- pykde4-4.11.1.orig/sip/kdeui/highlighter.sip	2013-09-08 17:29:29.775854281 -0400
++++ pykde4-4.11.1/sip/kdeui/highlighter.sip	2013-09-08 17:29:29.759854280 -0400
+@@ -70,6 +70,11 @@
+ public:
+     ~Highlighter ();
+     bool                    checkerEnabledByDefault () const;
++//force
++private:
++        virtual void connectNotify(const char* signal);
++        virtual void disconnectNotify(const char* signal);
++//end
+ };
+ // Highlighter
+ 
+--- pykde4-4.11.1.orig/sip/kdeui/kdatetable.sip	2013-09-08 17:29:29.775854281 -0400
++++ pykde4-4.11.1/sip/kdeui/kdatetable.sip	2013-09-08 17:29:29.759854280 -0400
+@@ -61,8 +61,10 @@
+ 
+ public:
+                             KDateValidator (QWidget* parent /TransferThis/ = 0);
+-    virtual QValidator::State  validate (QString& text, int& e /In/) const;
+-    virtual void            fixup (QString& input) const;
++    virtual QValidator::State validate(QString & /In,Out/, int & /In,Out/) const = 0 /API=QString:2 - /;
++    virtual QValidator::State validate(QString & /Constrained/, int & /In,Out/) const = 0 /API=QString: - 2/;
++    virtual void fixup(QString &input /In,Out/) const /API=QString:2 - /;
++    virtual void fixup(QString & /Constrained/) const /API=QString: - 2/;
+     QValidator::State       date (const QString& text, QDate& date) const;
+ };
+ // KDateValidator
+--- pykde4-4.11.1.orig/sip/kdeui/knumvalidator.sip	2013-09-08 17:29:29.775854281 -0400
++++ pykde4-4.11.1/sip/kdeui/knumvalidator.sip	2013-09-08 17:29:29.759854280 -0400
+@@ -30,8 +30,10 @@
+ public:
+     explicit                KIntValidator (QWidget* parent /TransferThis/, int base = 10);
+                             KIntValidator (int bottom, int top, QWidget* parent /TransferThis/, int base = 10);
+-    virtual QValidator::State  validate (QString&, int& /In/) const;
+-    virtual void            fixup (QString&) const;
++    virtual QValidator::State validate(QString & /In,Out/, int & /In,Out/) const = 0 /API=QString:2 - /;
++    virtual QValidator::State validate(QString & /Constrained/, int & /In,Out/) const = 0 /API=QString: - 2/;
++    virtual void fixup(QString &input /In,Out/) const /API=QString:2 - /;
++    virtual void fixup(QString & /Constrained/) const /API=QString: - 2/;
+     virtual void            setRange (int bottom, int top);
+     virtual void            setBase (int base);
+     virtual int             bottom () const;
+@@ -53,8 +55,10 @@
+     explicit                KFloatValidator (QWidget* parent /TransferThis/);
+                             KFloatValidator (double bottom, double top, QWidget* parent /TransferThis/);
+                             KFloatValidator (double bottom, double top, bool localeAware, QWidget* parent /TransferThis/);
+-    virtual QValidator::State  validate (QString&, int& /In/) const;
+-    virtual void            fixup (QString&) const;
++    virtual QValidator::State validate(QString & /In,Out/, int & /In,Out/) const = 0 /API=QString:2 - /;
++    virtual QValidator::State validate(QString & /Constrained/, int & /In,Out/) const = 0 /API=QString: - 2/;
++    virtual void fixup(QString &input /In,Out/) const /API=QString:2 - /;
++    virtual void fixup(QString & /Constrained/) const /API=QString: - 2/;
+     virtual void            setRange (double bottom, double top);
+     virtual double          bottom () const;
+     virtual double          top () const;
+@@ -75,7 +79,8 @@
+ public:
+     explicit                KDoubleValidator (QObject* parent /TransferThis/);
+                             KDoubleValidator (double bottom, double top, int decimals, QObject* parent /TransferThis/);
+-    virtual QValidator::State  validate (QString& input, int& pos /In/) const;
++    virtual QValidator::State validate(QString & /In,Out/, int & /In,Out/) const = 0 /API=QString:2 - /;
++    virtual QValidator::State validate(QString & /Constrained/, int & /In,Out/) const = 0 /API=QString: - 2/;
+     bool                    acceptLocalizedNumbers () const;
+     void                    setAcceptLocalizedNumbers (bool accept);
+     ~KDoubleValidator ();
+--- pykde4-4.11.1.orig/sip/kdeui/kpixmapregionselectorwidget.sip	2013-09-08 17:29:29.775854281 -0400
++++ pykde4-4.11.1/sip/kdeui/kpixmapregionselectorwidget.sip	2013-09-08 17:29:29.759854280 -0400
+@@ -57,6 +57,7 @@
+ private:
+ //force
+                             KPixmapRegionSelectorWidget (const KPixmapRegionSelectorWidget&);
++    virtual bool eventFilter(QObject*, QEvent*);
+ //end
+ public:
+     ~KPixmapRegionSelectorWidget ();
+--- pykde4-4.11.1.orig/sip/kdeui/kpixmapsequenceoverlaypainter.sip	2013-09-08 17:29:29.775854281 -0400
++++ pykde4-4.11.1/sip/kdeui/kpixmapsequenceoverlaypainter.sip	2013-09-08 17:29:29.763854280 -0400
+@@ -39,4 +39,8 @@
+     void                    setOffset (const QPoint& offset);
+     void                    start ();
+     void                    stop ();
++//force
++private:
++    virtual bool eventFilter(QObject*, QEvent*);
++//end
+ };
+--- pykde4-4.11.1.orig/sip/kdeui/krecursivefilterproxymodel.sip	2013-09-08 17:29:29.775854281 -0400
++++ pykde4-4.11.1/sip/kdeui/krecursivefilterproxymodel.sip	2013-09-08 17:29:29.763854280 -0400
+@@ -31,4 +31,8 @@
+     virtual bool            acceptRow (int sourceRow, const QModelIndex& sourceParent) const;
+ public:
+     virtual QModelIndexList  match (const QModelIndex& start, int role, const QVariant& value, int hits = 1, Qt::MatchFlags flags = Qt::MatchFlags(Qt::MatchStartsWith|Qt::MatchWrap)) const;
++//force
++private:
++    virtual bool filterAcceptsRow(int, const QModelIndex&) const;
++//end
+ };
+--- pykde4-4.11.1.orig/sip/kdeui/kstringvalidator.sip	2013-09-08 17:29:29.775854281 -0400
++++ pykde4-4.11.1/sip/kdeui/kstringvalidator.sip	2013-09-08 17:29:29.763854280 -0400
+@@ -35,8 +35,10 @@
+     bool                    isFixupEnabled () const;
+     void                    setStringList (const QStringList& list);
+     QStringList             stringList () const;
+-    virtual QValidator::State  validate (QString& input, int& pos /Out/) const;
+-    virtual void            fixup (QString& input) const;
++    virtual QValidator::State validate(QString & /In,Out/, int & /In,Out/) const = 0 /API=QString:2 - /;
++    virtual QValidator::State validate(QString & /Constrained/, int & /In,Out/) const = 0 /API=QString: - 2/;
++    virtual void fixup(QString &input /In,Out/) const /API=QString:2 - /;
++    virtual void fixup(QString & /Constrained/) const /API=QString: - 2/;
+     ~KStringListValidator ();
+ };
+ // KStringListValidator
+@@ -51,8 +53,10 @@
+ 
+ public:
+     explicit                KMimeTypeValidator (QObject* parent /TransferThis/ = 0);
+-    virtual QValidator::State  validate (QString& input, int& pos /Out/) const;
+-    virtual void            fixup (QString& input) const;
++    virtual QValidator::State validate(QString & /In,Out/, int & /In,Out/) const = 0 /API=QString:2 - /;
++    virtual QValidator::State validate(QString & /Constrained/, int & /In,Out/) const = 0 /API=QString: - 2/;
++    virtual void fixup(QString &input /In,Out/) const /API=QString:2 - /;
++    virtual void fixup(QString & /Constrained/) const /API=QString: - 2/;
+     ~KMimeTypeValidator ();
+ };
+ // KMimeTypeValidator
+--- pykde4-4.11.1.orig/sip/kdeui/ktogglefullscreenaction.sip	2013-09-08 17:29:29.775854281 -0400
++++ pykde4-4.11.1/sip/kdeui/ktogglefullscreenaction.sip	2013-09-08 17:29:29.763854280 -0400
+@@ -37,7 +37,10 @@
+     bool                    eventFilter (QObject* object, QEvent* event);
+ public:
+     ~KToggleFullScreenAction ();
++
++//force
++private:
++    virtual void slotToggled(bool);
++//end
+ };
+ // KToggleFullScreenAction
+-
+-
+--- pykde4-4.11.1.orig/sip/kdeui/ktoggletoolbaraction.sip	2013-09-08 17:29:29.775854281 -0400
++++ pykde4-4.11.1/sip/kdeui/ktoggletoolbaraction.sip	2013-09-08 17:29:29.763854280 -0400
+@@ -33,6 +33,10 @@
+     KToolBar*               toolBar ();
+     virtual bool            eventFilter (QObject* watched, QEvent* event);
+     ~KToggleToolBarAction ();
++//force
++private:
++    virtual void slotToggled( bool checked );
++//end
+ };
+ // KToggleToolBarAction
+ 
+--- pykde4-4.11.1.orig/sip/kio/kdirmodel.sip	2013-09-08 17:29:29.775854281 -0400
++++ pykde4-4.11.1/sip/kio/kdirmodel.sip	2013-09-08 17:29:29.767854280 -0400
+@@ -105,6 +105,13 @@
+     ~KDirModel ();
+     void                    setJobTransfersVisible (bool value);
+     bool                    jobTransfersVisible () const;
++//force
++private:
++    virtual bool removeColumns(int, int, const QModelIndex&);
++    virtual bool removeRows(int, int, const QModelIndex&);
++    virtual bool insertColumns(int, int, const QModelIndex&);
++    virtual bool insertRows(int, int, const QModelIndex&);
++//end
+ };
+ // KDirModel
+ 
+--- pykde4-4.11.1.orig/sip/kio/kshellcompletion.sip	2013-09-08 17:29:29.775854281 -0400
++++ pykde4-4.11.1/sip/kio/kshellcompletion.sip	2013-09-08 17:29:29.767854280 -0400
+@@ -39,5 +39,3 @@
+     ~KShellCompletion ();
+ };
+ // KShellCompletion
+-
+-
+--- pykde4-4.11.1.orig/sip/kio/metainfojob.sip	2013-09-08 17:29:29.775854281 -0400
++++ pykde4-4.11.1/sip/kio/metainfojob.sip	2013-09-08 17:29:29.767854280 -0400
+@@ -51,7 +51,7 @@
+ private:
+ //force
+                             MetaInfoJob ();
+-
++    virtual void start();
+ //end
+ public:
+     ~MetaInfoJob ();
+--- pykde4-4.11.1.orig/sip/plasma/applet.sip	2013-09-08 17:29:29.775854281 -0400
++++ pykde4-4.11.1/sip/plasma/applet.sip	2013-09-08 17:29:29.767854280 -0400
+@@ -217,6 +217,10 @@
+     void                    showConfigurationInterface (QWidget* widget);
+     bool                    isUserConfiguring () const;
+     explicit                Applet (const KPluginInfo& info, QGraphicsItem* parent = 0, uint appletId = 0);
++//force
++private:
++    virtual void paint(QPainter*, const QStyleOptionGraphicsItem*, QWidget*);
++//end
+ };
+ // Applet
+ 
+--- pykde4-4.11.1.orig/sip/plasma/glapplet.sip	2013-09-08 17:29:29.775854281 -0400
++++ pykde4-4.11.1/sip/plasma/glapplet.sip	2013-09-08 17:29:29.771854281 -0400
+@@ -52,6 +52,10 @@
+     ~GLApplet ();
+     GLuint                  bindTexture (const QImage& image, GLenum target = GL_TEXTURE_2D);
+     void                    deleteTexture (GLuint texture_id);
++
++private:
++    virtual void paint(QPainter*, const QStyleOptionGraphicsItem*, QWidget*);
++    virtual void paintInterface(QPainter*, const QStyleOptionGraphicsItem*, const QRect&);
+ //end
+ };
+ // GLApplet

Copied: kdebindings-python/repos/staging-x86_64/sip-4.15.5.patch (from rev 208241, kdebindings-python/trunk/sip-4.15.5.patch)
===================================================================
--- staging-x86_64/sip-4.15.5.patch	                        (rev 0)
+++ staging-x86_64/sip-4.15.5.patch	2014-03-20 08:37:59 UTC (rev 208242)
@@ -0,0 +1,12 @@
+diff -up pykde4-4.12.3/sip/phonon/backendcapabilities.sip.sip4_15_5 pykde4-4.12.3/sip/phonon/backendcapabilities.sip
+--- pykde4-4.12.3/sip/phonon/backendcapabilities.sip.sip4_15_5  2014-01-18 13:18:35.000000000 -0600
++++ pykde4-4.12.3/sip/phonon/backendcapabilities.sip    2014-03-16 16:56:36.865132943 -0500
+@@ -26,7 +26,7 @@ namespace Phonon
+ {
+ namespace BackendCapabilities
+ {
+-class Notifier : QObject /NoDefaultCtors,PyQt4NoQMetaObject/
++class Notifier : QObject /NoDefaultCtors,PyQtNoQMetaObject/
+ {
+ 
+ signals:




More information about the arch-commits mailing list