git » qscintilla.git » commit 2620e1e

Fix build with sip 5.3 (FS#66951)

author Antonio Rojas
2020-06-10 06:48:44 UTC
committer Antonio Rojas
2020-06-10 06:48:44 UTC
parent 8c396f63c10f36503064cba947a7cb4b0f6c1c04

Fix build with sip 5.3 (FS#66951)

PKGBUILD +11 -4
qscintilla-sip-5.3.patch +24 -0

diff --git a/PKGBUILD b/PKGBUILD
index c7b2894..96e833c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,16 +6,23 @@
 pkgbase=qscintilla
 pkgname=('qscintilla-qt5' 'python-qscintilla-qt5')
 pkgver=2.11.4
-pkgrel=2
+pkgrel=3
 license=('GPL')
 arch=('x86_64')
 url="https://www.riverbankcomputing.com/software/qscintilla/intro"
 makedepends=('python-pyqt5' 'qt5-tools' 'sip5' 'pyqt-builder')
-source=("https://www.riverbankcomputing.com/static/Downloads/QScintilla/$pkgver/QScintilla-$pkgver.tar.gz")
-sha256sums=('723f8f1d1686d9fc8f204cd855347e984322dd5cd727891d324d0d7d187bee20')
+source=("https://www.riverbankcomputing.com/static/Downloads/QScintilla/$pkgver/QScintilla-$pkgver.tar.gz"
+         qscintilla-sip-5.3.patch)
+sha256sums=('723f8f1d1686d9fc8f204cd855347e984322dd5cd727891d324d0d7d187bee20'
+            '917b57158deaf83682d8d383a2295e46c5510a629de8f3df775b941f3ab8b023')
+
+prepare() {
+  cd QScintilla-$pkgver
+  patch -p1 -i ../qscintilla-sip-5.3.patch # Fix build with sip 5.3
+}
 
 build() {
-  cd "$srcdir"/QScintilla-${pkgver}
+  cd QScintilla-${pkgver}
   export QMAKEFEATURES=$PWD/Qt4Qt5/features/
 
   cd Qt4Qt5
diff --git a/qscintilla-sip-5.3.patch b/qscintilla-sip-5.3.patch
new file mode 100644
index 0000000..b1ac744
--- /dev/null
+++ b/qscintilla-sip-5.3.patch
@@ -0,0 +1,24 @@
+diff -ru QScintilla-2.11.5.dev2005091235/Python/sip/qsciabstractapis.sip QScintilla-2.11.5.dev2006091431/Python/sip/qsciabstractapis.sip
+--- QScintilla-2.11.5.dev2005091235/Python/sip/qsciabstractapis.sip	2020-06-09 03:34:50.000000000 +0200
++++ QScintilla-2.11.5.dev2006091431/Python/sip/qsciabstractapis.sip	2020-06-10 03:34:31.000000000 +0200
+@@ -25,7 +25,7 @@
+ %End
+ 
+ public:
+-    QsciAbstractAPIs(QsciLexer *lexer /TransferThis/ = 0);
++    QsciAbstractAPIs(QsciLexer *lexer /TransferThis/);
+     virtual ~QsciAbstractAPIs();
+ 
+     QsciLexer *lexer() const;
+diff -ru QScintilla-2.11.5.dev2005091235/Python/sip/qsciapis.sip QScintilla-2.11.5.dev2006091431/Python/sip/qsciapis.sip
+--- QScintilla-2.11.5.dev2005091235/Python/sip/qsciapis.sip	2020-06-09 03:34:50.000000000 +0200
++++ QScintilla-2.11.5.dev2006091431/Python/sip/qsciapis.sip	2020-06-10 03:34:31.000000000 +0200
+@@ -25,7 +25,7 @@
+ %End
+ 
+ public:
+-    QsciAPIs(QsciLexer *lexer /TransferThis/ = 0);
++    QsciAPIs(QsciLexer *lexer /TransferThis/);
+     virtual ~QsciAPIs();
+ 
+     void add(const QString &entry);