1 |
commit: d26b8d9cccf22e147a59499cc0a0b1f68196422c |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 29 23:03:57 2018 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 29 23:03:57 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=d26b8d9c |
7 |
|
8 |
kde-plasma/plasma-browser-integration: Fix Mozilla dir |
9 |
|
10 |
Upstream commit 9a4e032c04fd567a3b3a5d2e050a22abd689d575 |
11 |
Thanks-to: Arfrever Frehtes Taifersar Arahesis <arfrever.fta <AT> gmail.com> |
12 |
Closes: https://bugs.gentoo.org/656532 |
13 |
Package-Manager: Portage-2.3.40, Repoman-2.3.9 |
14 |
|
15 |
...rowser-integration-5.12.90-respect-libdir.patch | 35 ++++++++++++++++++++++ |
16 |
...> plasma-browser-integration-5.12.90-r1.ebuild} | 16 ++++++++-- |
17 |
.../plasma-browser-integration-5.13.49.9999.ebuild | 14 +++++++-- |
18 |
.../plasma-browser-integration-9999.ebuild | 14 +++++++-- |
19 |
4 files changed, 70 insertions(+), 9 deletions(-) |
20 |
|
21 |
diff --git a/kde-plasma/plasma-browser-integration/files/plasma-browser-integration-5.12.90-respect-libdir.patch b/kde-plasma/plasma-browser-integration/files/plasma-browser-integration-5.12.90-respect-libdir.patch |
22 |
new file mode 100644 |
23 |
index 0000000000..20f3dacac7 |
24 |
--- /dev/null |
25 |
+++ b/kde-plasma/plasma-browser-integration/files/plasma-browser-integration-5.12.90-respect-libdir.patch |
26 |
@@ -0,0 +1,35 @@ |
27 |
+From f3ffa37d89816d3d9f1e9c5bb83b5e4acbbc295b Mon Sep 17 00:00:00 2001 |
28 |
+From: Arfrever Frehtes Taifersar Arahesis <arfrever.fta@×××××.com> |
29 |
+Date: Tue, 29 May 2018 09:21:41 +0200 |
30 |
+Subject: [PATCH] Respect libdir for Firefox native messaging host manifest |
31 |
+ |
32 |
+--- |
33 |
+ CMakeLists.txt | 5 ++++- |
34 |
+ 1 file changed, 4 insertions(+), 1 deletion(-) |
35 |
+ |
36 |
+diff --git a/CMakeLists.txt b/CMakeLists.txt |
37 |
+index 3a14b60..184b288 100644 |
38 |
+--- a/CMakeLists.txt |
39 |
++++ b/CMakeLists.txt |
40 |
+@@ -45,6 +45,9 @@ add_feature_info(CHROMIUM_EXTENSIONS_DIR On "Directory name to install Chromium |
41 |
+ option(COPY_MESSAGING_HOST_FILE_HOME "Copy the native messaging hosts json file to user home dir" FALSE) |
42 |
+ 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)") |
43 |
+ |
44 |
++set(MOZILLA_DIR "${CMAKE_INSTALL_PREFIX}/lib/mozilla" CACHE STRING "Mozilla directory") |
45 |
++add_feature_info(MOZILLA_DIR On "Mozilla directory is '${MOZILLA_DIR}'") |
46 |
++ |
47 |
+ add_subdirectory(host) |
48 |
+ add_subdirectory(tabsrunner) |
49 |
+ add_subdirectory(reminder) |
50 |
+@@ -66,7 +69,7 @@ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.kde.plasma.chrome_integration.json |
51 |
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.kde.plasma.chrome_integration.json DESTINATION ${KDE_INSTALL_FULL_SYSCONFDIR}/opt/chrome/native-messaging-hosts/ RENAME org.kde.plasma.browser_integration.json) |
52 |
+ # firefox |
53 |
+ |
54 |
+-install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.kde.plasma.firefox_integration.json DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/mozilla/native-messaging-hosts/ RENAME org.kde.plasma.browser_integration.json) |
55 |
++install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.kde.plasma.firefox_integration.json DESTINATION ${MOZILLA_DIR}/native-messaging-hosts/ RENAME org.kde.plasma.browser_integration.json) |
56 |
+ |
57 |
+ if (COPY_MESSAGING_HOST_FILE_HOME) |
58 |
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.kde.plasma.firefox_integration.json DESTINATION $ENV{HOME}/.mozilla/native-messaging-hosts/ RENAME org.kde.plasma.browser_integration.json) |
59 |
+-- |
60 |
+2.17.0 |
61 |
+ |
62 |
|
63 |
diff --git a/kde-plasma/plasma-browser-integration/plasma-browser-integration-5.12.90.ebuild b/kde-plasma/plasma-browser-integration/plasma-browser-integration-5.12.90-r1.ebuild |
64 |
similarity index 80% |
65 |
rename from kde-plasma/plasma-browser-integration/plasma-browser-integration-5.12.90.ebuild |
66 |
rename to kde-plasma/plasma-browser-integration/plasma-browser-integration-5.12.90-r1.ebuild |
67 |
index f48f91d786..1739d8a1f2 100644 |
68 |
--- a/kde-plasma/plasma-browser-integration/plasma-browser-integration-5.12.90.ebuild |
69 |
+++ b/kde-plasma/plasma-browser-integration/plasma-browser-integration-5.12.90-r1.ebuild |
70 |
@@ -13,9 +13,6 @@ KEYWORDS="~amd64 ~x86" |
71 |
IUSE="" |
72 |
|
73 |
DEPEND=" |
74 |
- $(add_qt_dep qtdbus) |
75 |
- $(add_qt_dep qtgui) |
76 |
- $(add_qt_dep qtwidgets) |
77 |
$(add_frameworks_dep kactivities) |
78 |
$(add_frameworks_dep kconfig) |
79 |
$(add_frameworks_dep kcoreaddons) |
80 |
@@ -25,5 +22,18 @@ DEPEND=" |
81 |
$(add_frameworks_dep knotifications) |
82 |
$(add_frameworks_dep krunner) |
83 |
$(add_frameworks_dep kwindowsystem) |
84 |
+ $(add_qt_dep qtdbus) |
85 |
+ $(add_qt_dep qtgui) |
86 |
+ $(add_qt_dep qtwidgets) |
87 |
" |
88 |
RDEPEND="${DEPEND}" |
89 |
+ |
90 |
+PATCHES=( "${FILESDIR}/${P}-respect-libdir.patch" ) |
91 |
+ |
92 |
+src_configure() { |
93 |
+ local mycmakeargs=( |
94 |
+ -DMOZILLA_DIR="${EPREFIX}/usr/$(get_libdir)/mozilla" |
95 |
+ ) |
96 |
+ |
97 |
+ kde5_src_configure |
98 |
+} |
99 |
|
100 |
diff --git a/kde-plasma/plasma-browser-integration/plasma-browser-integration-5.13.49.9999.ebuild b/kde-plasma/plasma-browser-integration/plasma-browser-integration-5.13.49.9999.ebuild |
101 |
index 340f87b871..e6c1dca804 100644 |
102 |
--- a/kde-plasma/plasma-browser-integration/plasma-browser-integration-5.13.49.9999.ebuild |
103 |
+++ b/kde-plasma/plasma-browser-integration/plasma-browser-integration-5.13.49.9999.ebuild |
104 |
@@ -12,9 +12,6 @@ LICENSE="GPL-3+" |
105 |
IUSE="" |
106 |
|
107 |
DEPEND=" |
108 |
- $(add_qt_dep qtdbus) |
109 |
- $(add_qt_dep qtgui) |
110 |
- $(add_qt_dep qtwidgets) |
111 |
$(add_frameworks_dep kactivities) |
112 |
$(add_frameworks_dep kconfig) |
113 |
$(add_frameworks_dep kcoreaddons) |
114 |
@@ -24,5 +21,16 @@ DEPEND=" |
115 |
$(add_frameworks_dep knotifications) |
116 |
$(add_frameworks_dep krunner) |
117 |
$(add_frameworks_dep kwindowsystem) |
118 |
+ $(add_qt_dep qtdbus) |
119 |
+ $(add_qt_dep qtgui) |
120 |
+ $(add_qt_dep qtwidgets) |
121 |
" |
122 |
RDEPEND="${DEPEND}" |
123 |
+ |
124 |
+src_configure() { |
125 |
+ local mycmakeargs=( |
126 |
+ -DMOZILLA_DIR="${EPREFIX}/usr/$(get_libdir)/mozilla" |
127 |
+ ) |
128 |
+ |
129 |
+ kde5_src_configure |
130 |
+} |
131 |
|
132 |
diff --git a/kde-plasma/plasma-browser-integration/plasma-browser-integration-9999.ebuild b/kde-plasma/plasma-browser-integration/plasma-browser-integration-9999.ebuild |
133 |
index 340f87b871..e6c1dca804 100644 |
134 |
--- a/kde-plasma/plasma-browser-integration/plasma-browser-integration-9999.ebuild |
135 |
+++ b/kde-plasma/plasma-browser-integration/plasma-browser-integration-9999.ebuild |
136 |
@@ -12,9 +12,6 @@ LICENSE="GPL-3+" |
137 |
IUSE="" |
138 |
|
139 |
DEPEND=" |
140 |
- $(add_qt_dep qtdbus) |
141 |
- $(add_qt_dep qtgui) |
142 |
- $(add_qt_dep qtwidgets) |
143 |
$(add_frameworks_dep kactivities) |
144 |
$(add_frameworks_dep kconfig) |
145 |
$(add_frameworks_dep kcoreaddons) |
146 |
@@ -24,5 +21,16 @@ DEPEND=" |
147 |
$(add_frameworks_dep knotifications) |
148 |
$(add_frameworks_dep krunner) |
149 |
$(add_frameworks_dep kwindowsystem) |
150 |
+ $(add_qt_dep qtdbus) |
151 |
+ $(add_qt_dep qtgui) |
152 |
+ $(add_qt_dep qtwidgets) |
153 |
" |
154 |
RDEPEND="${DEPEND}" |
155 |
+ |
156 |
+src_configure() { |
157 |
+ local mycmakeargs=( |
158 |
+ -DMOZILLA_DIR="${EPREFIX}/usr/$(get_libdir)/mozilla" |
159 |
+ ) |
160 |
+ |
161 |
+ kde5_src_configure |
162 |
+} |