summaryrefslogtreecommitdiff
path: root/libre/parley
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2018-01-17 18:40:23 +0100
committerAndreas Grapentin <andreas@grapentin.org>2018-01-17 18:40:41 +0100
commit0559cf69f878b44584787f85db8d0b571690da82 (patch)
tree6f751e016d69230cc4ab081611dc48de95a5140d /libre/parley
parent458b582de444324da88363c2437b850cc1decd5c (diff)
downloadabslibre-0559cf69f878b44584787f85db8d0b571690da82.tar.gz
abslibre-0559cf69f878b44584787f85db8d0b571690da82.tar.bz2
abslibre-0559cf69f878b44584787f85db8d0b571690da82.zip
libre/parley: added liberated version
Diffstat (limited to 'libre/parley')
-rw-r--r--libre/parley/PKGBUILD44
-rw-r--r--libre/parley/libre.patch63
2 files changed, 107 insertions, 0 deletions
diff --git a/libre/parley/PKGBUILD b/libre/parley/PKGBUILD
new file mode 100644
index 000000000..2504818a6
--- /dev/null
+++ b/libre/parley/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer (Arch): Felix Yan <felixonmars@archlinux.org>
+# Maintainer (Arch): Antonio Rojas <arojas@archlinux.org>
+# Contributor (Arch): Andrea Scarpino <andrea@archlinux.org>
+
+pkgname=parley
+pkgver=17.12.1
+pkgrel=1.parabola1
+pkgdesc="Vocabulary Trainer, without qt5-webengine"
+url="https://kde.org/applications/education/parley/"
+arch=(x86_64)
+license=(GPL LGPL FDL)
+groups=(kde-applications kdeedu)
+depends=(kross knewstuff libkeduvocdocument qt5-webkit kcmutils)
+makedepends=(extra-cmake-modules kdoctools python)
+replaces=(kdeedu-parley)
+conflicts=(kdeedu-parley)
+source=("https://download.kde.org/stable/applications/$pkgver/src/$pkgname-$pkgver.tar.xz"{,.sig}
+ "libre.patch")
+sha256sums=('da2d3b6dcb7a858556a67c63957388b287c614ca5f290747f471b397359c38a5'
+ 'SKIP'
+ 'fa35b14d8c35cedf63685e5e9a8157dbc0bb5339c75a1356fb59359974c08e57')
+validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7 # Albert Astals Cid <aacid@kde.org>
+ F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87) # Christoph Feck <cfeck@kde.org>
+
+prepare() {
+ mkdir -p build
+
+ # remove qt5-webengine references
+ cd $pkgname-$pkgver
+ patch -Np1 -i "$srcdir"/libre.patch
+}
+
+build() {
+ cd build
+ cmake ../$pkgname-$pkgver \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr
+ make
+}
+
+package() {
+ cd build
+ make DESTDIR="$pkgdir" install
+}
diff --git a/libre/parley/libre.patch b/libre/parley/libre.patch
new file mode 100644
index 000000000..5e95ed0fd
--- /dev/null
+++ b/libre/parley/libre.patch
@@ -0,0 +1,63 @@
+diff -rupN parley-17.12.1.old/CMakeLists.txt parley-17.12.1/CMakeLists.txt
+--- parley-17.12.1.old/CMakeLists.txt 2018-01-17 18:16:34.530616323 +0100
++++ parley-17.12.1/CMakeLists.txt 2018-01-17 18:28:26.597544722 +0100
+@@ -21,7 +21,7 @@ find_package(Qt5 ${REQUIRED_QT_VERSION}
+ Svg
+ Concurrent
+ Multimedia
+- WebEngineWidgets
++ WebKitWidgets
+ )
+
+ find_package(KF5 5.22 MODULE REQUIRED COMPONENTS
+@@ -104,7 +104,7 @@ set( parley_LINK_LIBS
+ KF5::Notifications
+ KF5::Crash
+ KF5::CoreAddons
+- Qt5::WebEngineWidgets
++ Qt5::WebKitWidgets
+ )
+
+ message(STATUS "cmake cflags ${CMAKE_C_FLAGS}")
+diff -rupN parley-17.12.1.old/src/editor/browserwidget.cpp parley-17.12.1/src/editor/browserwidget.cpp
+--- parley-17.12.1.old/src/editor/browserwidget.cpp 2018-01-17 18:16:34.527282963 +0100
++++ parley-17.12.1/src/editor/browserwidget.cpp 2018-01-17 18:25:59.043296112 +0100
+@@ -16,7 +16,7 @@
+ #include "browserwidget.h"
+
+ #include <keduvocexpression.h>
+-#include <QtWebEngineWidgets/QWebEngineView>
++#include <QtWebKitWidgets/QWebView>
+
+ #include <QDragEnterEvent>
+
+@@ -29,7 +29,7 @@ BrowserWidget::BrowserWidget(QWidget *pa
+ m_entry = 0;
+ m_currentProvider = 0; ///@todo kconfig?
+
+- m_htmlPart = new QWebEngineView(widget);
++ m_htmlPart = new QWebView(widget);
+ QHBoxLayout *layout = new QHBoxLayout(widget);
+ widget->setLayout(layout);
+ layout->addWidget(m_htmlPart);
+diff -rupN parley-17.12.1.old/src/editor/browserwidget.h parley-17.12.1/src/editor/browserwidget.h
+--- parley-17.12.1.old/src/editor/browserwidget.h 2018-01-17 18:16:34.527282963 +0100
++++ parley-17.12.1/src/editor/browserwidget.h 2018-01-17 18:24:41.782813266 +0100
+@@ -18,7 +18,7 @@
+
+
+ #include "ui_browserwidget.h"
+-#include <QtWebEngineWidgets/QWebEngineView>
++#include <QtWebKitWidgets/QWebView>
+
+ class KEduVocExpression;
+
+@@ -63,7 +63,7 @@ private:
+ /// Selection in the doc - if more than one row is selected behavior is different
+ KEduVocExpression* m_entry;
+
+- QWebEngineView *m_htmlPart;
++ QWebView *m_htmlPart;
+ QList<DictionaryProvider> m_providers;
+ int m_currentProvider;
+ };