[arch-commits] Commit in kbibtex/trunk (PKGBUILD kbibtex-no-qtwebkit.patch)

Antonio Rojas arojas at archlinux.org
Wed Jan 25 19:27:54 UTC 2017


    Date: Wednesday, January 25, 2017 @ 19:27:53
  Author: arojas
Revision: 209077

Drop qtwebkit support

Added:
  kbibtex/trunk/kbibtex-no-qtwebkit.patch
Modified:
  kbibtex/trunk/PKGBUILD

---------------------------+
 PKGBUILD                  |   14 +++++++++++---
 kbibtex-no-qtwebkit.patch |   34 ++++++++++++++++++++++++++++++++++
 2 files changed, 45 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-01-25 19:21:30 UTC (rev 209076)
+++ PKGBUILD	2017-01-25 19:27:53 UTC (rev 209077)
@@ -6,7 +6,7 @@
 pkgname=kbibtex
 pkgver=0.6
 _branch=0.6
-pkgrel=4
+pkgrel=5
 pkgdesc="A BibTeX editor for KDE"
 arch=('i686' 'x86_64')
 url='http://home.gna.org/kbibtex/'
@@ -14,9 +14,17 @@
 depends=('kdebase-runtime' 'poppler-qt4')
 optdepends=('okular: Document preview')
 makedepends=('cmake' 'automoc4')
-source=("http://download.gna.org/$pkgname/$_branch/$pkgname-$pkgver.tar.xz")
-md5sums=('f1a9c1867d94c36fe88cfa0470b85dac')
+source=("http://download.gna.org/$pkgname/$_branch/$pkgname-$pkgver.tar.xz" kbibtex-no-qtwebkit.patch)
+md5sums=('f1a9c1867d94c36fe88cfa0470b85dac'
+         '73a6be6e48e0e9106f60b65ad07d73e6')
 
+prepare() {
+  cd $pkgname-$pkgver
+
+# Disable insecure qtwebkit
+  patch -p1 -i ../kbibtex-no-qtwebkit.patch
+}
+
 build() {
   cd "$pkgname-$pkgver"
 

Added: kbibtex-no-qtwebkit.patch
===================================================================
--- kbibtex-no-qtwebkit.patch	                        (rev 0)
+++ kbibtex-no-qtwebkit.patch	2017-01-25 19:27:53 UTC (rev 209077)
@@ -0,0 +1,34 @@
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index 04222a74..1485acc1 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -34,29 +34,6 @@ include(
+ ##SET(CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO} -pg")
+ ##SET(CMAKE_CXX_FLAGS_DISTRIBUTION "${CMAKE_CXX_FLAGS_DISTRIBUTION} -pg")
+ 
+-# check if QtWebKit is available, which seems to be not available
+-# on e.g. RedHat Enterprise Linux 6 or Scientific Linux 6
+-if(
+-    QT_QTWEBKIT_FOUND
+-)
+-    message(
+-        STATUS
+-        "Found QtWebKit, enabling WebKit support"
+-    )
+-    add_definitions(
+-        -DHAVE_QTWEBKIT
+-    )
+-else(
+-    QT_QTWEBKIT_FOUND
+-)
+-    message(
+-        STATUS
+-        "QtWebKit not found, disabling WebKit support"
+-    )
+-endif(
+-    QT_QTWEBKIT_FOUND
+-)
+-
+ add_definitions(
+     ${QT_DEFINITIONS}
+     ${KDE4_DEFINITIONS}



More information about the arch-commits mailing list