summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2018-06-20 21:30:55 +0200
committer Eric Hameleers <alien@slackware.com>2018-06-20 21:30:55 +0200
commit53eb7eed4ba066b2fac305fbb17d7c9416be3f5b (patch)
tree9af74b046af31f9d40b73b9189950e2697c5ca6f
parentc9094e71df27a5bd5cfbbc32a3bc77851c533195 (diff)
downloadktown-53eb7eed4ba066b2fac305fbb17d7c9416be3f5b.tar.gz
ktown-53eb7eed4ba066b2fac305fbb17d7c9416be3f5b.tar.xz
kde/plasma/plasma-browser-integration fixes
Move the data that's relevant for the Google Chrome/Chromium and Mozilla based browsers into the location where these browsers actually look for them.
-rw-r--r--kde/build/plasma-browser-integration1
-rw-r--r--kde/cmake/plasma-browser-integration3
-rw-r--r--kde/patch/plasma-browser-integration.patch3
-rw-r--r--kde/patch/plasma-browser-integration/plasma-browser-integration_KDEBUG-113461.patch11
4 files changed, 16 insertions, 2 deletions
diff --git a/kde/build/plasma-browser-integration b/kde/build/plasma-browser-integration
new file mode 100644
index 0000000..0cfbf08
--- /dev/null
+++ b/kde/build/plasma-browser-integration
@@ -0,0 +1 @@
+2
diff --git a/kde/cmake/plasma-browser-integration b/kde/cmake/plasma-browser-integration
index 7e9e3b2..c9b3db9 100644
--- a/kde/cmake/plasma-browser-integration
+++ b/kde/cmake/plasma-browser-integration
@@ -15,10 +15,9 @@ cd build
-DKDE_INSTALL_MANDIR=/usr/man \
-DKDE_INSTALL_QTPLUGINDIR=lib$LIBDIRSUFFIX/qt5/plugins \
-DKDE_INSTALL_QMLDIR=lib$LIBDIRSUFFIX/qt5/qml \
- -DKDE_INSTALL_SYSCONFDIR=/etc/kde \
+ -DKDE_INSTALL_SYSCONFDIR=/etc \
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
-DBUILD_TESTING=OFF \
- -DHAVE_SHADOW=TRUE \
-DQca-qt5_DIR=/usr/lib${LIBDIRSUFFIX}/cmake/Qca \
-DINSTALL_CHROME_MANIFEST=ON \
..
diff --git a/kde/patch/plasma-browser-integration.patch b/kde/patch/plasma-browser-integration.patch
new file mode 100644
index 0000000..c82fee9
--- /dev/null
+++ b/kde/patch/plasma-browser-integration.patch
@@ -0,0 +1,3 @@
+# Fix hardcoded mozilla 'lib' libdir:
+cat $CWD/patch/plasma-browser-integration/plasma-browser-integration_KDEBUG-113461.patch | patch -p1 --verbose || { touch ${SLACK_KDE_BUILD_DIR}/${PKGNAME}.failed ; continue ; }
+
diff --git a/kde/patch/plasma-browser-integration/plasma-browser-integration_KDEBUG-113461.patch b/kde/patch/plasma-browser-integration/plasma-browser-integration_KDEBUG-113461.patch
new file mode 100644
index 0000000..c881edf
--- /dev/null
+++ b/kde/patch/plasma-browser-integration/plasma-browser-integration_KDEBUG-113461.patch
@@ -0,0 +1,11 @@
+--- a/CMakeLists.txt 2018-06-07 22:22:27.000000000 +0800
++++ b/CMakeLists.txt 2018-06-20 20:55:56.000000000 +0800
+@@ -45,7 +45,7 @@
+ option(COPY_MESSAGING_HOST_FILE_HOME "Copy the native messaging hosts json file to user home dir" FALSE)
+ add_feature_info(COPY_MESSAGING_HOST_FILE_HOME ${COPY_MESSAGING_HOST_FILE_HOME} "Enable this option to copy the native messaging hosts json file to home dir if you install plasma-browser-integration to custom prefix (non-/usr)")
+
+-set(MOZILLA_DIR "${CMAKE_INSTALL_PREFIX}/lib/mozilla" CACHE STRING "Mozilla directory")
++set(MOZILLA_DIR "${CMAKE_INSTALL_PREFIX}/${KDE_INSTALL_LIBDIR}/mozilla" CACHE STRING "Mozilla directory")
+ add_feature_info(MOZILLA_DIR On "Mozilla directory is '${MOZILLA_DIR}'")
+
+ add_subdirectory(host)