1 |
commit: ee81f36292d2116e67467a336df2bf706fe2b716 |
2 |
Author: Myckel Habets <myckel <AT> sdf <DOT> org> |
3 |
AuthorDate: Thu Jan 27 15:50:45 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 29 05:49:00 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee81f362 |
7 |
|
8 |
www-client/seamonkey: add 2.53.10.2 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/828479 |
11 |
Closes: https://bugs.gentoo.org/824066 |
12 |
Closes: https://bugs.gentoo.org/831977 |
13 |
Signed-off-by: Myckel Habets <gentoo-bugs <AT> habets-dobben.nl> |
14 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
15 |
|
16 |
www-client/seamonkey/Manifest | 4 + |
17 |
.../files/seamonkey-2.53.10.2-ownertab.patch | 249 +++++++++ |
18 |
www-client/seamonkey/seamonkey-2.53.10.2.ebuild | 557 +++++++++++++++++++++ |
19 |
3 files changed, 810 insertions(+) |
20 |
|
21 |
diff --git a/www-client/seamonkey/Manifest b/www-client/seamonkey/Manifest |
22 |
index 558ad9359458..b6ef41e0a942 100644 |
23 |
--- a/www-client/seamonkey/Manifest |
24 |
+++ b/www-client/seamonkey/Manifest |
25 |
@@ -1,3 +1,7 @@ |
26 |
+DIST seamonkey-2.53.10.2-patches-01.tar.gz 77910 BLAKE2B 9f75470936c15a6c6be27a4751f0ed32dbd7629017b1f142250ef80ecf1adfc6fc7d88c3d1e4a44efaee93b9e15d0171910582ac4a7abcae65fa26bdb6950469 SHA512 ddb0984aaa5e16ced69dad59bb812fbc3ba14c3de96edfea8778ff5450f4f520657031470b80492226fc273fedb7195361c9f56352a53d381061a1171e830d5b |
27 |
+DIST seamonkey-2.53.10.2.source-l10n.tar.xz 13616204 BLAKE2B 75e3efd51fa4628b3853c2fc86357d1a44addd11ea5409ee10fcce5114fb2a92a9f70af24e3e5fb955a15f8568149cd4c7af67a321716313ad71c474a3caeb2a SHA512 9796ac45203e91d1531ed88239ff8771cd666027a1dbf41885b3626ec03e4289854704cac53a56a68f3df9dd82232321cafde24b5f1c49b22722812bf8781a36 |
28 |
+DIST seamonkey-2.53.10.2.source.tar.xz 284350364 BLAKE2B 15ff60b5728b84c00831d4dccde7600648889d56ecbe034708390cd83d096f760157d84f5df266ede2d4388302b0df83684397c276e1a0f6d1dfe3e799265ca1 SHA512 59233c2bfc0cf3c9e290e1165fea4cd285cabb339f66dbad7bdbe0b7fd9b2acbc37c385b775d2a3d045d1a6648012488cc018eb3f879139c2a582e7d37e01d7a |
29 |
+DIST seamonkey-2.53.3-system_libvpx-1.8.patch.gz 3197 BLAKE2B 7a84d2184f4812eabfe3626eb6b2364f2f8c0ba24d4e53440e9d38658b89a3f1c23bdcbd623fd9aca3bfd04743e582587e9c42ba3d983cc9ec4059ea9503830a SHA512 ffc6f179f07cb9dcce2924c64bfed84a5cc724d857b32e5e349967e72022536c5192c3966e1089bab8efd91671584d6474334730ebefe1c4398f564a5f1753be |
30 |
DIST seamonkey-2.53.3-system_libvpx-1.8.patch.xz 3128 BLAKE2B f73802d2715a11964a4b4d34b582a2999ab42cff9ed005c5ca8c002ae745a973fbb682c3e568f6727a7fe93dc2d7a5ba3367adc4e1d256b8ab0cf8d940fceb8a SHA512 80b87c260445af181d1a0d39de9f95ac7c93f76e12328c1799e8607f50ca9e2a20bc4f15de3f32efbbabb444fd5352612b2629fee61875fa0acd6d050df338a2 |
31 |
DIST seamonkey-2.53.8.1-rust-1.45.0.patch.xz 12256 BLAKE2B b311b69ee11a5875beca421b45733e6cd9b0aaa7c00a51e4fdda3e6ecabdef70b683c119a63e404c5763b19b9c6720cc59c0e6033eb2b06b0e97e7f01a8b727d SHA512 1056602044c719da26cf54566ac058a84258c5639a9d717904e97e38323f69100fb5183464602147744fd657aaef322f7fd130773b85896a15c5466a8a3f1e2e |
32 |
DIST seamonkey-2.53.8.1.source-l10n.tar.xz 13542220 BLAKE2B 8b043136595e481077e60cf202ae66d04ad30f089e842f6d4660807cdaf086b99c9252afccf8a6302558f4a1ce38e8e59f72ade6f72929335b0bf7bce72b4569 SHA512 047defbfac18f360ad089d90de3c0e139d3707dcfa74570fcfa1f2f1e789ca2930d08ee0c94f7d88cc79f4e162eda2d0073493656528e0f9b579f452fe13ad8f |
33 |
|
34 |
diff --git a/www-client/seamonkey/files/seamonkey-2.53.10.2-ownertab.patch b/www-client/seamonkey/files/seamonkey-2.53.10.2-ownertab.patch |
35 |
new file mode 100644 |
36 |
index 000000000000..02140bd5e8f7 |
37 |
--- /dev/null |
38 |
+++ b/www-client/seamonkey/files/seamonkey-2.53.10.2-ownertab.patch |
39 |
@@ -0,0 +1,249 @@ |
40 |
+# HG changeset patch |
41 |
+# User Dmitry Butskoy <dmitry@×××××××.name> |
42 |
+# Date 1628960364 -7200 |
43 |
+# Parent 45d5ea1452b1c406303ff3be289df08cde3d5a04 |
44 |
+Bug 1623054 - Set owner tab for proper tab focus handling after close. r=IanN a=IanN |
45 |
+Upstream bug-report: https://bugzilla.mozilla.org/show_bug.cgi?id=1623054 |
46 |
+ |
47 |
+diff --git seamonkey-2.53.10.2/comm/suite/app/profile/suite-prefs.js seamonkey-2.53.10.2/comm/suite/app/profile/suite-prefs.js |
48 |
+--- seamonkey-2.53.10.2/comm/suite/app/profile/suite-prefs.js |
49 |
++++ seamonkey-2.53.10.2/comm/suite/app/profile/suite-prefs.js |
50 |
+@@ -224,16 +224,17 @@ pref("browser.tabs.autoHide", false); |
51 |
+ pref("browser.tabs.forceHide", false); |
52 |
+ pref("browser.tabs.closeWindowWithLastTab", true); |
53 |
+ pref("browser.tabs.warnOnClose", true); |
54 |
+ pref("browser.tabs.warnOnCloseOther", true); |
55 |
+ pref("browser.tabs.warnOnOpen", true); |
56 |
+ pref("browser.tabs.maxOpenBeforeWarn", 15); |
57 |
+ pref("browser.tabs.insertRelatedAfterCurrent", true); |
58 |
+ pref("browser.tabs.insertAllTabsAfterCurrent", false); |
59 |
++pref("browser.tabs.selectOwnerOnClose", true); |
60 |
+ pref("browser.tabs.avoidBrowserFocus", false); |
61 |
+ |
62 |
+ // For future use |
63 |
+ pref("browser.tabs.loadBookmarksInBackground", false); |
64 |
+ |
65 |
+ // how many browsers can be saved in the DOM (by the tabbed browser) |
66 |
+ pref("browser.tabs.max_tabs_undo", 3); |
67 |
+ // should popups by saved in the DOM (by the tabbed browser) |
68 |
+diff --git seamonkey-2.53.10.2/comm/suite/base/content/utilityOverlay.js seamonkey-2.53.10.2/comm/suite/base/content/utilityOverlay.js |
69 |
+--- seamonkey-2.53.10.2/comm/suite/base/content/utilityOverlay.js |
70 |
++++ seamonkey-2.53.10.2/comm/suite/base/content/utilityOverlay.js |
71 |
+@@ -1637,16 +1637,17 @@ function openLinkIn(url, where, params) |
72 |
+ // fall through |
73 |
+ case "tab": |
74 |
+ var browser = w.getBrowser(); |
75 |
+ var tab = browser.addTab(url, { |
76 |
+ referrerURI: aReferrerURI, |
77 |
+ referrerPolicy: aReferrerPolicy, |
78 |
+ charset: aCharset, |
79 |
+ postData: aPostData, |
80 |
++ ownerTab: loadInBackground ? null : browser.selectedTab, |
81 |
+ allowThirdPartyFixup: aAllowThirdPartyFixup, |
82 |
+ relatedToCurrent: aRelatedToCurrent, |
83 |
+ allowMixedContent: aAllowMixedContent, |
84 |
+ noReferrer: aNoReferrer, |
85 |
+ userContextId: aUserContextId, |
86 |
+ originPrincipal: aPrincipal, |
87 |
+ triggeringPrincipal: aTriggeringPrincipal, |
88 |
+ }); |
89 |
+diff --git seamonkey-2.53.10.2/comm/suite/browser/tabbrowser.xml seamonkey-2.53.10.2/comm/suite/browser/tabbrowser.xml |
90 |
+--- seamonkey-2.53.10.2/comm/suite/browser/tabbrowser.xml |
91 |
++++ seamonkey-2.53.10.2/comm/suite/browser/tabbrowser.xml |
92 |
+@@ -1152,16 +1152,27 @@ |
93 |
+ newBrowser.docShellIsActive = this.mCurrentTab.linkedBrowser.docShellIsActive; |
94 |
+ if (this.mCurrentBrowser) { |
95 |
+ this.mCurrentBrowser.droppedLinkHandler = null; |
96 |
+ this.mCurrentBrowser.docShellIsActive = false; |
97 |
+ this.mCurrentBrowser.removeAttribute("primary"); |
98 |
+ this.finder.mListeners.forEach(l => this.mCurrentBrowser.finder.removeResultListener(l)); |
99 |
+ } |
100 |
+ |
101 |
++ let oldTab = this.mCurrentTab; |
102 |
++ |
103 |
++ // Preview mode should not reset the owner. |
104 |
++ if (!this._previewMode && !oldTab.selected) |
105 |
++ oldTab.owner = null; |
106 |
++ |
107 |
++ let lastRelatedTab = this.mLastRelatedIndex ? this.tabs[this.mLastRelatedIndex] : null; |
108 |
++ if (lastRelatedTab && !lastRelatedTab.selected) { |
109 |
++ lastRelatedTab.owner = null; |
110 |
++ } |
111 |
++ |
112 |
+ newBrowser.setAttribute("primary", "true"); |
113 |
+ this.mCurrentBrowser = newBrowser; |
114 |
+ this.mCurrentTab = this.selectedTab; |
115 |
+ this.mCurrentTab.removeAttribute("unread"); |
116 |
+ this.finder.mListeners.forEach(l => this.mCurrentBrowser.finder.addResultListener(l)); |
117 |
+ |
118 |
+ var tabListener = this.mTabListeners[this.tabContainer.selectedIndex]; |
119 |
+ |
120 |
+@@ -1445,16 +1456,19 @@ |
121 |
+ opener: null, |
122 |
+ }; |
123 |
+ } |
124 |
+ |
125 |
+ params.focusNewTab = params.inBackground != null ? |
126 |
+ !params.inBackground : |
127 |
+ !Services.prefs.getBoolPref("browser.tabs.loadInBackground"); |
128 |
+ |
129 |
++ if (params.focusNewTab) |
130 |
++ params.ownerTab = this.selectedTab; |
131 |
++ |
132 |
+ return this.addTab(aURI, params); |
133 |
+ ]]> |
134 |
+ </body> |
135 |
+ </method> |
136 |
+ |
137 |
+ <method name="loadTabs"> |
138 |
+ <parameter name="aURIs"/> |
139 |
+ <parameter name="aLoadInBackground"/> |
140 |
+@@ -1556,43 +1570,49 @@ |
141 |
+ <parameter name="aPostData"/> |
142 |
+ <parameter name="aFocusNewTab"/> |
143 |
+ <parameter name="aAllowThirdPartyFixup"/> |
144 |
+ <body> |
145 |
+ <![CDATA[ |
146 |
+ var aTriggeringPrincipal; |
147 |
+ var aReferrerPolicy; |
148 |
+ var aFromExternal; |
149 |
++ var aOwner; |
150 |
+ var aRelatedToCurrent; |
151 |
+ var aAllowMixedContent; |
152 |
+ var aNoReferrer; |
153 |
+ var aUserContextId; |
154 |
+ var aOriginPrincipal; |
155 |
+ var aOpener; |
156 |
+ if (arguments.length == 2 && |
157 |
+ arguments[1] != null && |
158 |
+ typeof arguments[1] == "object" && |
159 |
+ !(arguments[1] instanceof Ci.nsIURI)) { |
160 |
+ let params = arguments[1]; |
161 |
+ aTriggeringPrincipal = params.triggeringPrincipal; |
162 |
+ aReferrerURI = params.referrerURI; |
163 |
+ aReferrerPolicy = params.referrerPolicy; |
164 |
+ aCharset = params.charset; |
165 |
+ aPostData = params.postData; |
166 |
++ aOwner = params.ownerTab; |
167 |
+ aFocusNewTab = params.focusNewTab; |
168 |
+ aAllowThirdPartyFixup = params.allowThirdPartyFixup; |
169 |
+ aFromExternal = params.fromExternal; |
170 |
+ aRelatedToCurrent = params.relatedToCurrent; |
171 |
+ aAllowMixedContent = params.allowMixedContent; |
172 |
+ aNoReferrer = params.noReferrer; |
173 |
+ aUserContextId = params.userContextId; |
174 |
+ aOriginPrincipal = params.originPrincipal; |
175 |
+ aOpener = params.opener; |
176 |
+ } |
177 |
+ |
178 |
++ // If we're adding tabs, we're past interrupt mode, ditch the owner. |
179 |
++ if (this.mCurrentTab.owner) |
180 |
++ this.mCurrentTab.owner = null; |
181 |
++ |
182 |
+ this._browsers = null; // invalidate cache |
183 |
+ |
184 |
+ var t = this.referenceTab.cloneNode(true); |
185 |
+ |
186 |
+ var blank = !aURI || aURI == "about:blank"; |
187 |
+ |
188 |
+ if (!blank) |
189 |
+ t.setAttribute("label", aURI); |
190 |
+@@ -1650,16 +1670,20 @@ |
191 |
+ |
192 |
+ // We start our browsers out as inactive. |
193 |
+ b.docShellIsActive = false; |
194 |
+ |
195 |
+ this.mStrip.collapsed = false; |
196 |
+ |
197 |
+ Services.prefs.setBoolPref("browser.tabs.forceHide", false); |
198 |
+ |
199 |
++ // If this new tab is owned by another, assert that relationship. |
200 |
++ if (aOwner) |
201 |
++ t.owner = aOwner; |
202 |
++ |
203 |
+ // wire up a progress listener for the new browser object. |
204 |
+ var position = this.tabs.length - 1; |
205 |
+ var tabListener = this.mTabProgressListener(t, b, blank); |
206 |
+ const filter = Cc["@mozilla.org/appshell/component/browser-status-filter;1"] |
207 |
+ .createInstance(Ci.nsIWebProgress); |
208 |
+ filter.addProgressListener(tabListener, Ci.nsIWebProgress.NOTIFY_ALL); |
209 |
+ b.webProgress.addProgressListener(filter, Ci.nsIWebProgress.NOTIFY_ALL); |
210 |
+ this.mTabListeners[position] = tabListener; |
211 |
+@@ -1699,16 +1723,20 @@ |
212 |
+ // aReferrerURI is null or undefined if the tab is opened from |
213 |
+ // an external application or bookmark, i.e. somewhere other |
214 |
+ // than the current tab. |
215 |
+ if ((aRelatedToCurrent || aReferrerURI || |
216 |
+ Services.prefs.getBoolPref("browser.tabs.insertAllTabsAfterCurrent")) && |
217 |
+ Services.prefs.getBoolPref("browser.tabs.insertRelatedAfterCurrent")) { |
218 |
+ var lastRelatedIndex = this.mLastRelatedIndex || |
219 |
+ this.tabContainer.selectedIndex; |
220 |
++ if (this.mLastRelatedIndex) |
221 |
++ this.tabs[this.mLastRelatedIndex].owner = null; |
222 |
++ else |
223 |
++ t.owner = this.selectedTab; |
224 |
+ this.moveTabTo(t, ++lastRelatedIndex); |
225 |
+ this.mLastRelatedIndex = lastRelatedIndex; |
226 |
+ } |
227 |
+ |
228 |
+ if (aFocusNewTab) { |
229 |
+ var parentTab = this.selectedTab; |
230 |
+ this.selectedTab = t; |
231 |
+ this.mPreviousTab = parentTab; |
232 |
+@@ -2037,16 +2065,23 @@ |
233 |
+ oldBrowser.webProgress.removeProgressListener(filter); |
234 |
+ filter.removeProgressListener(this.mTabListeners[index]); |
235 |
+ this.mTabFilters.splice(index, 1); |
236 |
+ this.mTabListeners.splice(index, 1); |
237 |
+ |
238 |
+ // We are no longer the primary content area |
239 |
+ oldBrowser.removeAttribute("primary"); |
240 |
+ |
241 |
++ // Remove this tab as the owner of any other tabs, since it's going away. |
242 |
++ for (let tab of this.tabs) { |
243 |
++ if ("owner" in tab && tab.owner == aTab) |
244 |
++ // |tab| is a child of the tab we're removing, make it an orphan. |
245 |
++ tab.owner = null; |
246 |
++ } |
247 |
++ |
248 |
+ // Now select the new tab before nuking the old one. |
249 |
+ var currentIndex = this.tabContainer.selectedIndex; |
250 |
+ |
251 |
+ var newIndex = -1; |
252 |
+ if (currentIndex > index) |
253 |
+ newIndex = currentIndex - 1; |
254 |
+ else if (currentIndex < index) |
255 |
+ newIndex = currentIndex; |
256 |
+@@ -2057,23 +2092,30 @@ |
257 |
+ |
258 |
+ if (oldBrowser == this.mCurrentBrowser) |
259 |
+ this.mCurrentBrowser = null; |
260 |
+ |
261 |
+ // Invalidate browsers cache, as the tab is removed from the |
262 |
+ // tab container. |
263 |
+ this._browsers = null; |
264 |
+ |
265 |
+- // Clean up before/afterselected attributes before removing the tab |
266 |
++ let owner = ("owner" in aTab) ? aTab.owner : null; |
267 |
++ |
268 |
++ // Clean up before/after selected attributes before removing the |
269 |
++ // tab. |
270 |
+ aTab._selected = false; |
271 |
+ aTab.remove(); |
272 |
+ |
273 |
+ // When the current tab is removed select a new tab |
274 |
+ // and fire select events on tabpanels and tabs |
275 |
+- if (this.mPreviousTab && (aTab == this.mCurrentTab)) |
276 |
++ if (owner && !owner.hidden && !owner.closing && |
277 |
++ Services.prefs.getBoolPref("browser.tabs.selectOwnerOnClose")) { |
278 |
++ this.selectedTab = owner; |
279 |
++ } |
280 |
++ else if (this.mPreviousTab && (aTab == this.mCurrentTab)) |
281 |
+ this.selectedTab = this.mPreviousTab; |
282 |
+ else { |
283 |
+ this.tabContainer.selectedIndex = newIndex; |
284 |
+ |
285 |
+ // We need to explicitly clear this, because updateCurrentBrowser |
286 |
+ // doesn't get called for a background tab |
287 |
+ this.mPreviousTab = null; |
288 |
+ } |
289 |
|
290 |
diff --git a/www-client/seamonkey/seamonkey-2.53.10.2.ebuild b/www-client/seamonkey/seamonkey-2.53.10.2.ebuild |
291 |
new file mode 100644 |
292 |
index 000000000000..d79808ae9be3 |
293 |
--- /dev/null |
294 |
+++ b/www-client/seamonkey/seamonkey-2.53.10.2.ebuild |
295 |
@@ -0,0 +1,557 @@ |
296 |
+# Copyright 1999-2022 Gentoo Authors |
297 |
+# Distributed under the terms of the GNU General Public License v2 |
298 |
+ |
299 |
+EAPI=8 |
300 |
+ |
301 |
+WANT_AUTOCONF="2.1" |
302 |
+ |
303 |
+PYTHON_COMPAT=( python3_{7..9} ) |
304 |
+PYTHON_REQ_USE='ncurses,sqlite,ssl,threads(+)' |
305 |
+ |
306 |
+# This list can be updated with scripts/get_langs.sh from the mozilla overlay |
307 |
+# note - could not roll langpacks for: ca fi |
308 |
+#MOZ_LANGS=(ca cs de en-GB es-AR es-ES fi fr gl hu it ja lt nb-NO nl pl pt-PT |
309 |
+# ru sk sv-SE tr uk zh-CN zh-TW) |
310 |
+MOZ_LANGS=(cs de en-GB es-AR es-ES fr hu it ja lt nl pl pt-PT |
311 |
+ ru sk sv-SE zh-CN zh-TW) |
312 |
+ |
313 |
+MOZ_PV="${PV/_pre*}" |
314 |
+MOZ_PV="${MOZ_PV/_alpha/a}" |
315 |
+MOZ_PV="${MOZ_PV/_beta/b}" |
316 |
+MOZ_PV="${MOZ_PV/_rc/rc}" |
317 |
+MOZ_P="${P}" |
318 |
+MY_MOZ_P="${PN}-${MOZ_PV}" |
319 |
+ |
320 |
+if [[ ${PV} == *_pre* ]] ; then |
321 |
+ MOZ_HTTP_URI="https://archive.mozilla.org/pub/${PN}/candidates/${MOZ_PV}-candidates/build${PV##*_pre}" |
322 |
+else |
323 |
+ MOZ_HTTP_URI="https://archive.mozilla.org/pub/${PN}/releases/${MOZ_PV}" |
324 |
+fi |
325 |
+ |
326 |
+SRC_URI="${MOZ_HTTP_URI}/source/${MY_MOZ_P}.source.tar.xz -> ${P}.source.tar.xz |
327 |
+ ${MOZ_HTTP_URI}/source/${MY_MOZ_P}.source-l10n.tar.xz -> ${P}.source-l10n.tar.xz" |
328 |
+S="${WORKDIR}/${MY_MOZ_P}" |
329 |
+ |
330 |
+MOZ_GENERATE_LANGPACKS=1 |
331 |
+MOZ_L10N_SOURCEDIR="${S}/${P}-l10n" |
332 |
+inherit autotools check-reqs desktop edos2unix flag-o-matic mozcoreconf-v6 mozlinguas-v2 pax-utils toolchain-funcs xdg-utils |
333 |
+ |
334 |
+DESCRIPTION="Seamonkey Web Browser" |
335 |
+HOMEPAGE="https://www.seamonkey-project.org/" |
336 |
+ |
337 |
+PATCH="${PN}-2.53.10.2-patches-01" |
338 |
+SRC_URI+=" |
339 |
+ https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${PATCH}.tar.gz |
340 |
+ system-libvpx? ( https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${PN}-2.53.3-system_libvpx-1.8.patch.gz ) |
341 |
+ |
342 |
+" |
343 |
+ |
344 |
+LICENSE="MPL-2.0 GPL-2 LGPL-2.1" |
345 |
+SLOT="0" |
346 |
+SYSTEM_IUSE=( +system-{av1,harfbuzz,icu,jpeg,libevent,libvpx,png,sqlite} ) |
347 |
+IUSE="+chatzilla cpu_flags_arm_neon +crypt dbus debug +gmp-autoupdate +ipc jack |
348 |
+lto pulseaudio +roaming selinux startup-notification test wifi" |
349 |
+IUSE+=" ${SYSTEM_IUSE[@]}" |
350 |
+KEYWORDS="~amd64 ~ppc64 ~x86" |
351 |
+ |
352 |
+RESTRICT="!test? ( test )" |
353 |
+ |
354 |
+ASM_DEPEND=">=dev-lang/yasm-1.1" |
355 |
+ |
356 |
+BDEPEND=" |
357 |
+ app-arch/unzip |
358 |
+ app-arch/zip |
359 |
+ >=dev-lang/nasm-2.13 |
360 |
+ dev-lang/perl |
361 |
+ >=sys-devel/binutils-2.16.1 |
362 |
+ virtual/pkgconfig |
363 |
+ >=virtual/rust-1.58.1 |
364 |
+ amd64? ( ${ASM_DEPEND} ) |
365 |
+ lto? ( sys-devel/binutils[gold] ) |
366 |
+ x86? ( ${ASM_DEPEND} ) |
367 |
+" |
368 |
+COMMON_DEPEND=" |
369 |
+ >=app-text/hunspell-1.5.4:= |
370 |
+ dev-libs/atk |
371 |
+ >=dev-libs/glib-2.26:2 |
372 |
+ >=dev-libs/libffi-3.0.10:= |
373 |
+ >=dev-libs/nspr-4.23 |
374 |
+ >=dev-libs/nss-3.47.1 |
375 |
+ media-libs/fontconfig |
376 |
+ >=media-libs/freetype-2.4.10 |
377 |
+ >=media-libs/mesa-10.2:= |
378 |
+ >=sys-libs/zlib-1.2.3 |
379 |
+ >=x11-libs/cairo-1.10[X] |
380 |
+ x11-libs/gdk-pixbuf |
381 |
+ >=x11-libs/gtk+-2.18:2 |
382 |
+ >=x11-libs/gtk+-3.4.0:3 |
383 |
+ x11-libs/libX11 |
384 |
+ x11-libs/libXcomposite |
385 |
+ x11-libs/libXdamage |
386 |
+ x11-libs/libXext |
387 |
+ x11-libs/libXfixes |
388 |
+ x11-libs/libXrender |
389 |
+ x11-libs/libXt |
390 |
+ >=x11-libs/pango-1.22.0 |
391 |
+ >=x11-libs/pixman-0.19.2 |
392 |
+ media-video/ffmpeg |
393 |
+ virtual/freedesktop-icon-theme |
394 |
+ dbus? ( |
395 |
+ >=dev-libs/dbus-glib-0.72 |
396 |
+ >=sys-apps/dbus-0.60 |
397 |
+ ) |
398 |
+ jack? ( virtual/jack ) |
399 |
+ crypt? ( <x11-plugins/enigmail-2.1.0 ) |
400 |
+ kernel_linux? ( !pulseaudio? ( media-libs/alsa-lib ) ) |
401 |
+ pulseaudio? ( || ( |
402 |
+ media-sound/pulseaudio |
403 |
+ >=media-sound/apulse-0.1.9 |
404 |
+ ) ) |
405 |
+ startup-notification? ( >=x11-libs/startup-notification-0.8 ) |
406 |
+ system-av1? ( |
407 |
+ >=media-libs/dav1d-0.3.0:= |
408 |
+ >=media-libs/libaom-1.0.0:= |
409 |
+ ) |
410 |
+ system-harfbuzz? ( |
411 |
+ >=media-gfx/graphite2-1.3.9-r1 |
412 |
+ >=media-libs/harfbuzz-1.3.3:0= |
413 |
+ ) |
414 |
+ system-icu? ( >=dev-libs/icu-59.1:= ) |
415 |
+ system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1 ) |
416 |
+ system-libevent? ( >=dev-libs/libevent-2.0:0= ) |
417 |
+ system-libvpx? ( >=media-libs/libvpx-1.8.0:0=[postproc] ) |
418 |
+ system-png? ( >=media-libs/libpng-1.6.31:0=[apng] ) |
419 |
+ system-sqlite? ( >=dev-db/sqlite-3.36.0:3[secure-delete,debug=] ) |
420 |
+ wifi? ( |
421 |
+ kernel_linux? ( |
422 |
+ >=dev-libs/dbus-glib-0.72 |
423 |
+ net-misc/networkmanager |
424 |
+ >=sys-apps/dbus-0.60 |
425 |
+ ) |
426 |
+ ) |
427 |
+" |
428 |
+RDEPEND="${COMMON_DEPEND} |
429 |
+ selinux? ( sec-policy/selinux-mozilla ) |
430 |
+" |
431 |
+DEPEND="${COMMON_DEPEND} |
432 |
+ amd64? ( virtual/opengl ) |
433 |
+ x86? ( virtual/opengl ) |
434 |
+" |
435 |
+ |
436 |
+# allow GMP_PLUGIN_LIST to be set in an eclass or |
437 |
+# overridden in the enviromnent (advanced hackers only) |
438 |
+[[ -z ${GMP_PLUGIN_LIST} ]] && GMP_PLUGIN_LIST=( gmp-gmpopenh264 gmp-widevinecdm ) |
439 |
+ |
440 |
+BUILD_OBJ_DIR="${S}/seamonk" |
441 |
+ |
442 |
+pkg_setup() { |
443 |
+ if [[ ${PV} == *_beta* ]] || [[ ${PV} == *_pre* ]] ; then |
444 |
+ ewarn "You're using an unofficial release of ${PN}. Don't file any bug in" |
445 |
+ ewarn "Gentoo's Bugtracker against this package in case it breaks for you." |
446 |
+ ewarn "Those belong to upstream: https://bugzilla.mozilla.org" |
447 |
+ fi |
448 |
+ |
449 |
+ moz_pkgsetup |
450 |
+} |
451 |
+ |
452 |
+pkg_pretend() { |
453 |
+ # Ensure we have enough disk space to compile |
454 |
+ if use debug || use lto || use test ; then |
455 |
+ CHECKREQS_DISK_BUILD="16G" |
456 |
+ else |
457 |
+ CHECKREQS_DISK_BUILD="12G" |
458 |
+ fi |
459 |
+ check-reqs_pkg_setup |
460 |
+} |
461 |
+ |
462 |
+spkg_setup() { |
463 |
+ # Ensure we have enough disk space to compile |
464 |
+ if use debug || use lto || use test ; then |
465 |
+ CHECKREQS_DISK_BUILD="16G" |
466 |
+ else |
467 |
+ CHECKREQS_DISK_BUILD="12G" |
468 |
+ fi |
469 |
+ check-reqs_pkg_setup |
470 |
+} |
471 |
+ |
472 |
+src_unpack() { |
473 |
+ local l10n_sources="${P}.source-l10n.tar.xz" |
474 |
+ unpack ${A/ ${l10n_sources}} |
475 |
+ |
476 |
+ mkdir "${S}/${P}-l10n" || die |
477 |
+ cd "${S}/${P}-l10n" || die |
478 |
+ unpack ${l10n_sources} |
479 |
+} |
480 |
+ |
481 |
+src_prepare() { |
482 |
+ # Apply our patches |
483 |
+ eapply "${WORKDIR}"/mozilla |
484 |
+ |
485 |
+ # https://bugzilla.mozilla.org/show_bug.cgi?id=1623054 |
486 |
+ eapply "${FILESDIR}/${PN}-2.53.10.2-ownertab.patch" |
487 |
+ |
488 |
+ # Shell scripts sometimes contain DOS line endings; bug 391889 |
489 |
+ grep -rlZ --include="*.sh" $'\r$' . | |
490 |
+ while read -r -d $'\0' file ; do |
491 |
+ einfo edos2unix "${file}" |
492 |
+ edos2unix "${file}" |
493 |
+ done |
494 |
+ |
495 |
+ use system-libvpx \ |
496 |
+ && eapply -p2 "${WORKDIR}/${PN}-2.53.3-system_libvpx-1.8.patch" |
497 |
+ |
498 |
+ # Allow user to apply any additional patches without modifing ebuild |
499 |
+ eapply_user |
500 |
+ |
501 |
+ # Don't error for format with gcc-9 |
502 |
+ grep -rl -- '-Werror=format' | xargs sed -i 's/error=format/no-&/' || die |
503 |
+ |
504 |
+ # Enable gnomebreakpad |
505 |
+ if use debug ; then |
506 |
+ sed -i -e "s:GNOME_DISABLE_CRASH_DIALOG=1:GNOME_DISABLE_CRASH_DIALOG=0:g" \ |
507 |
+ build/unix/run-mozilla.sh || die |
508 |
+ fi |
509 |
+ |
510 |
+ # Ensure that are plugins dir is enabled as default |
511 |
+ sed -i -e "s:/usr/$(get_libdir)/mozilla/plugins:/usr/$(get_libdir)/${PN}/plugins:" \ |
512 |
+ xpcom/io/nsAppFileLocationProvider.cpp || die |
513 |
+ |
514 |
+ # Don't exit with error when some libs are missing which we have in |
515 |
+ # system. |
516 |
+ sed '/^MOZ_PKG_FATAL_WARNINGS/s@= 1@= 0@' \ |
517 |
+ -i comm/suite/installer/Makefile.in || die |
518 |
+ # Don't error out when there's no files to be removed: |
519 |
+ sed 's@\(xargs rm\)$@\1 -f@' \ |
520 |
+ -i toolkit/mozapps/installer/packager.mk || die |
521 |
+ |
522 |
+ # Don't build libs-% locale files for chatzilla if we are not building chatzilla |
523 |
+ # (this is hard-coded in the build system at present rather than being based on configuration) |
524 |
+ if ! use chatzilla ; then |
525 |
+ sed '/extensions\/irc\/locales libs-/s@^@#@' \ |
526 |
+ -i comm/suite/locales/Makefile.in || die |
527 |
+ fi |
528 |
+ |
529 |
+ eautoreconf old-configure.in |
530 |
+ cd js/src || die |
531 |
+ eautoconf old-configure.in |
532 |
+} |
533 |
+ |
534 |
+src_configure() { |
535 |
+ MEXTENSIONS="default" |
536 |
+ # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys) |
537 |
+ # Note: These are for Gentoo Linux use ONLY. For your own distribution, please |
538 |
+ # get your own set of keys. |
539 |
+ _google_api_key=AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc |
540 |
+ |
541 |
+ ###################################### |
542 |
+ # |
543 |
+ # mozconfig, CFLAGS and CXXFLAGS setup |
544 |
+ # |
545 |
+ ###################################### |
546 |
+ |
547 |
+ mozconfig_init |
548 |
+ |
549 |
+ ################################## |
550 |
+ # Former mozconfig_config() part # |
551 |
+ ################################## |
552 |
+ |
553 |
+ # Migrated from mozcoreconf-2 |
554 |
+ mozconfig_annotate 'system_libs' --with-system-bz2 |
555 |
+ mozconfig_annotate 'system_libs' --with-system-zlib |
556 |
+ |
557 |
+ # Disable for testing purposes only |
558 |
+ mozconfig_annotate 'Upstream bug 1341234' --disable-stylo |
559 |
+ |
560 |
+ # Must pass release in order to properly select linker via gold useflag |
561 |
+ mozconfig_annotate 'Enable by Gentoo' --enable-release |
562 |
+ |
563 |
+ # Must pass --enable-gold if using ld.gold |
564 |
+ if tc-ld-is-gold ; then |
565 |
+ mozconfig_annotate 'tc-ld-is-gold=true' --enable-gold |
566 |
+ else |
567 |
+ mozconfig_annotate 'tc-ld-is-gold=false' --disable-gold |
568 |
+ fi |
569 |
+ |
570 |
+ # Enable position independent executables |
571 |
+ mozconfig_annotate 'enabled by Gentoo' --enable-pie |
572 |
+ |
573 |
+ mozconfig_use_enable debug |
574 |
+ mozconfig_use_enable debug tests |
575 |
+ if ! use debug ; then |
576 |
+ mozconfig_annotate 'disabled by Gentoo' --disable-debug-symbols |
577 |
+ else |
578 |
+ mozconfig_annotate 'enabled by Gentoo' --enable-debug-symbols |
579 |
+ fi |
580 |
+ |
581 |
+ mozconfig_use_enable startup-notification |
582 |
+ |
583 |
+ # wifi pulls in dbus so manage both here |
584 |
+ mozconfig_use_enable wifi necko-wifi |
585 |
+ if use kernel_linux && use wifi && ! use dbus ; then |
586 |
+ echo "Enabling dbus support due to wifi request" |
587 |
+ mozconfig_annotate 'dbus required by necko-wifi on linux' --enable-dbus |
588 |
+ else |
589 |
+ mozconfig_use_enable dbus |
590 |
+ mozconfig_annotate 'disabled' --disable-necko-wifi |
591 |
+ fi |
592 |
+ |
593 |
+ # These are enabled by default in all mozilla applications |
594 |
+ mozconfig_annotate '' --with-system-nspr --with-nspr-prefix="${SYSROOT}${EPREFIX}"/usr |
595 |
+ mozconfig_annotate '' --with-system-nss --with-nss-prefix="${SYSROOT}${EPREFIX}"/usr |
596 |
+ mozconfig_annotate '' --x-includes="${SYSROOT}${EPREFIX}"/usr/include --x-libraries="${SYSROOT}${EPREFIX}"/usr/$(get_libdir) |
597 |
+ if use system-libevent ; then |
598 |
+ mozconfig_annotate '' --with-system-libevent="${SYSROOT}${EPREFIX}"/usr |
599 |
+ fi |
600 |
+ mozconfig_annotate '' --prefix="${EPREFIX}"/usr |
601 |
+ mozconfig_annotate '' --libdir="${EPREFIX}"/usr/$(get_libdir) |
602 |
+ mozconfig_annotate 'Gentoo default' --enable-system-hunspell |
603 |
+ mozconfig_annotate '' --disable-crashreporter |
604 |
+ mozconfig_annotate '' --enable-system-ffi |
605 |
+ mozconfig_annotate '' --disable-gconf |
606 |
+ mozconfig_annotate '' --with-intl-api |
607 |
+ |
608 |
+ # skia has no support for big-endian platforms |
609 |
+ if [[ $(tc-endian) == "big" ]] ; then |
610 |
+ mozconfig_annotate 'big endian target' --disable-skia |
611 |
+ else |
612 |
+ mozconfig_annotate '' --enable-skia |
613 |
+ fi |
614 |
+ |
615 |
+ # default toolkit is cairo-gtk3, optional use flags can change this |
616 |
+ mozconfig_annotate '' --enable-default-toolkit=cairo-gtk3 |
617 |
+ |
618 |
+ # Instead of the standard --build= and --host=, mozilla uses --host instead |
619 |
+ # of --build, and --target intstead of --host. |
620 |
+ # Note, mozilla also has --build but it does not do what you think it does. |
621 |
+ # Set both --target and --host as mozilla uses python to guess values otherwise |
622 |
+ mozconfig_annotate '' --target="${CHOST}" |
623 |
+ mozconfig_annotate '' --host="${CBUILD:-${CHOST}}" |
624 |
+ |
625 |
+ mozconfig_use_enable pulseaudio |
626 |
+ # force the deprecated alsa sound code if pulseaudio is disabled |
627 |
+ if use kernel_linux && ! use pulseaudio ; then |
628 |
+ mozconfig_annotate '-pulseaudio' --enable-alsa |
629 |
+ fi |
630 |
+ |
631 |
+ # For testing purpose only |
632 |
+ mozconfig_annotate 'Sandbox' --enable-content-sandbox |
633 |
+ |
634 |
+ mozconfig_use_enable system-sqlite |
635 |
+ mozconfig_use_with system-jpeg |
636 |
+ mozconfig_use_with system-icu |
637 |
+ mozconfig_use_with system-libvpx |
638 |
+ mozconfig_use_with system-png |
639 |
+ mozconfig_use_with system-harfbuzz |
640 |
+ mozconfig_use_with system-harfbuzz system-graphite2 |
641 |
+ mozconfig_use_with system-av1 |
642 |
+ |
643 |
+ # Modifications to better support ARM, bug 553364 |
644 |
+ if use cpu_flags_arm_neon ; then |
645 |
+ mozconfig_annotate '' --with-fpu=neon |
646 |
+ mozconfig_annotate '' --with-thumb=yes |
647 |
+ mozconfig_annotate '' --with-thumb-interwork=no |
648 |
+ fi |
649 |
+ if [[ ${CHOST} == armv* ]] ; then |
650 |
+ mozconfig_annotate '' --with-float-abi=hard |
651 |
+ if ! use system-libvpx ; then |
652 |
+ sed -i -e "s|softfp|hard|" media/libvpx/moz.build || die |
653 |
+ fi |
654 |
+ fi |
655 |
+ |
656 |
+ if use lto ; then |
657 |
+ # Linking only works when using ld.gold when LTO is enabled |
658 |
+ mozconfig_annotate "forcing ld=gold due to USE=lto" --enable-linker=gold |
659 |
+ # ThinLTO is currently broken, see bmo#1644409 |
660 |
+ mozconfig_annotate '+lto' --enable-lto=full |
661 |
+ else |
662 |
+ if tc-ld-is-gold ; then |
663 |
+ mozconfig_annotate "linker is set to gold" --enable-linker=gold |
664 |
+ else |
665 |
+ mozconfig_annotate "linker is set to bfd" --enable-linker=bfd |
666 |
+ fi |
667 |
+ fi |
668 |
+ # LTO flag was handled via configure |
669 |
+ filter-flags '-flto*' |
670 |
+ |
671 |
+ ################################## |
672 |
+ # Former mozconfig_config() end # |
673 |
+ ################################## |
674 |
+ |
675 |
+ # enable JACK, bug 600002 |
676 |
+ mozconfig_use_enable jack |
677 |
+ |
678 |
+ # It doesn't compile on alpha without this LDFLAGS |
679 |
+ use alpha && append-ldflags "-Wl,--no-relax" |
680 |
+ |
681 |
+ # Linking fails without this due to memory exhaustion |
682 |
+ use x86 && append-ldflags "-Wl,--no-keep-memory" |
683 |
+ |
684 |
+ if ! use roaming ; then |
685 |
+ MEXTENSIONS+=",-sroaming" |
686 |
+ fi |
687 |
+ |
688 |
+ # Setup api key for location services |
689 |
+ printf '%s' "${_google_api_key}" > "${S}"/google-api-key |
690 |
+ mozconfig_annotate '' --with-google-location-service-api-keyfile="${S}/google-api-key" |
691 |
+ mozconfig_annotate '' --with-google-safebrowsing-api-keyfile="${S}/google-api-key" |
692 |
+ |
693 |
+ mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}" |
694 |
+ mozconfig_use_enable chatzilla irc |
695 |
+ mozconfig_annotate '' --enable-dominspector |
696 |
+ |
697 |
+ # use startup-cache for faster startup time |
698 |
+ mozconfig_annotate '' --enable-startupcache |
699 |
+ |
700 |
+ # Broken on some arches |
701 |
+ mozconfig_annotate '' --disable-elf-hack |
702 |
+ |
703 |
+ # Use an objdir to keep things organized. |
704 |
+ echo "mk_add_options MOZ_OBJDIR=${BUILD_OBJ_DIR}" >> "${S}"/.mozconfig |
705 |
+ echo "mk_add_options XARGS=/usr/bin/xargs" >> "${S}"/.mozconfig |
706 |
+ |
707 |
+ mozlinguas_mozconfig |
708 |
+ |
709 |
+ # Finalize and report settings |
710 |
+ mozconfig_final |
711 |
+ |
712 |
+ # Work around breakage in makeopts with --no-print-directory |
713 |
+ MAKEOPTS="${MAKEOPTS/--no-print-directory/}" |
714 |
+ |
715 |
+ if [[ $(gcc-major-version) -lt 4 ]] ; then |
716 |
+ append-cxxflags -fno-stack-protector |
717 |
+ elif [[ $(gcc-major-version) -gt 4 || $(gcc-minor-version) -gt 3 ]] ; then |
718 |
+ if use amd64 || use x86 ; then |
719 |
+ append-flags -mno-avx |
720 |
+ fi |
721 |
+ fi |
722 |
+ |
723 |
+ # Pass $MAKEOPTS to build system |
724 |
+ export MOZ_MAKE_FLAGS="${MAKEOPTS}" |
725 |
+ # Use system's Python environment |
726 |
+ export MACH_USE_SYSTEM_PYTHON=1 |
727 |
+ # Disable notification when build system has finished |
728 |
+ export MOZ_NOSPAM=1 |
729 |
+ |
730 |
+ # workaround for funky/broken upstream configure... |
731 |
+ export SHELL="${SHELL:-${EPREFIX}/bin/bash}" |
732 |
+ #emake V=1 -f client.mk configure |
733 |
+ ./mach configure || die |
734 |
+} |
735 |
+ |
736 |
+src_compile() { |
737 |
+ #MOZ_MAKE_FLAGS="${MAKEOPTS}" SHELL="${SHELL}" \ |
738 |
+ #emake V=1 -f client.mk |
739 |
+ ./mach build --verbose || die |
740 |
+ |
741 |
+ mozlinguas_src_compile |
742 |
+} |
743 |
+ |
744 |
+src_install() { |
745 |
+ MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
746 |
+ DICTPATH="\"${EPREFIX}/usr/share/myspell\"" |
747 |
+ |
748 |
+ local emid |
749 |
+ pushd "${BUILD_OBJ_DIR}" &>/dev/null || die |
750 |
+ |
751 |
+ # Pax mark xpcshell for hardened support, only used for startupcache creation. |
752 |
+ pax-mark m dist/bin/xpcshell |
753 |
+ |
754 |
+ # Copy our preference before omnijar is created. |
755 |
+ sed "s|SEAMONKEY_PVR|${PVR}|" "${FILESDIR}"/all-gentoo-1.js > \ |
756 |
+ dist/bin/defaults/pref/all-gentoo.js \ |
757 |
+ || die |
758 |
+ |
759 |
+ # Set default path to search for dictionaries. |
760 |
+ echo "pref(\"spellchecker.dictionary_path\", ${DICTPATH});" \ |
761 |
+ >> dist/bin/defaults/pref/all-gentoo.js \ |
762 |
+ || die |
763 |
+ |
764 |
+ echo 'pref("extensions.autoDisableScopes", 3);' >> \ |
765 |
+ dist/bin/defaults/pref/all-gentoo.js \ |
766 |
+ || die |
767 |
+ |
768 |
+ local plugin |
769 |
+ if ! use gmp-autoupdate ; then |
770 |
+ for plugin in "${GMP_PLUGIN_LIST[@]}" ; do |
771 |
+ echo "pref(\"media.${plugin}.autoupdate\", false);" >> \ |
772 |
+ dist/bin/defaults/pref/all-gentoo.js || die |
773 |
+ done |
774 |
+ fi |
775 |
+ |
776 |
+ popd &>/dev/null || die |
777 |
+ |
778 |
+ #MOZ_MAKE_FLAGS="${MAKEOPTS}" SHELL="${SHELL:-${EPREFIX}/bin/bash}" \ |
779 |
+ #emake DESTDIR="${D}" install |
780 |
+ DESTDIR="${D}" ./mach install || die |
781 |
+ MOZ_P="${MY_MOZ_P}" mozlinguas_src_install |
782 |
+ |
783 |
+ cp "${FILESDIR}"/${PN}.desktop "${T}" || die |
784 |
+ |
785 |
+ sed 's|^\(MimeType=.*\)$|\1text/x-vcard;text/directory;application/mbox;message/rfc822;x-scheme-handler/mailto;|' \ |
786 |
+ -i "${T}"/${PN}.desktop || die |
787 |
+ sed 's|^\(Categories=.*\)$|\1Email;|' -i "${T}"/${PN}.desktop \ |
788 |
+ || die |
789 |
+ |
790 |
+ # Install icon and .desktop for menu entry |
791 |
+ newicon "${S}"/comm/suite/branding/${PN}/default64.png ${PN}.png |
792 |
+ domenu "${T}"/${PN}.desktop |
793 |
+ |
794 |
+ # Required in order to use plugins and even run seamonkey on hardened. |
795 |
+ pax-mark m "${ED}"/${MOZILLA_FIVE_HOME}/{seamonkey,seamonkey-bin,plugin-container} |
796 |
+ |
797 |
+ if use chatzilla ; then |
798 |
+ emid='{59c81df5-4b7a-477b-912d-4e0fdf64e5f2}' |
799 |
+ |
800 |
+ # remove the en_US-only xpi file so a version with all requested locales can be installed |
801 |
+ if [[ -e "${ED}"/${MOZILLA_FIVE_HOME}/extensions/${emid}.xpi ]] ; then |
802 |
+ rm -f "${ED}"/${MOZILLA_FIVE_HOME}/extensions/${emid}.xpi || die |
803 |
+ fi |
804 |
+ |
805 |
+ # merge the extra locales into the main extension |
806 |
+ mozlinguas_xpistage_langpacks dist/xpi-stage/chatzilla |
807 |
+ |
808 |
+ # install the merged extension |
809 |
+ mkdir -p "${T}/${emid}" || die |
810 |
+ cp -RLp -t "${T}/${emid}" dist/xpi-stage/chatzilla/* || die |
811 |
+ insinto ${MOZILLA_FIVE_HOME}/extensions |
812 |
+ doins -r "${T}/${emid}" |
813 |
+ fi |
814 |
+ |
815 |
+ # Provide a place for plugins |
816 |
+ keepdir "${MOZILLA_FIVE_HOME}/plugins" |
817 |
+ |
818 |
+ # revdep-rebuild entry |
819 |
+ insinto /etc/revdep-rebuild |
820 |
+ echo "SEARCH_DIRS_MASK=${MOZILLA_FIVE_HOME}*" >> ${T}/11${PN} |
821 |
+ doins "${T}"/11${PN} |
822 |
+ |
823 |
+} |
824 |
+ |
825 |
+pkg_preinst() { |
826 |
+ SEAMONKEY_PLUGINS_DIR="${ROOT}/usr/$(get_libdir)/${PN}/plugins" |
827 |
+ |
828 |
+ if [[ -L "${SEAMONKEY_PLUGINS_DIR}" ]] ; then |
829 |
+ rm "${SEAMONKEY_PLUGINS_DIR}" || die |
830 |
+ fi |
831 |
+} |
832 |
+ |
833 |
+pkg_postinst() { |
834 |
+ # Update mimedb for the new .desktop file |
835 |
+ xdg_desktop_database_update |
836 |
+ |
837 |
+ if ! use gmp-autoupdate ; then |
838 |
+ elog "USE='-gmp-autoupdate' has disabled the following plugins from updating or" |
839 |
+ elog "installing into new profiles:" |
840 |
+ local plugin |
841 |
+ for plugin in "${GMP_PLUGIN_LIST[@]}"; do elog "\t ${plugin}" ; done |
842 |
+ fi |
843 |
+ |
844 |
+ if use chatzilla ; then |
845 |
+ elog "chatzilla is now an extension which can be en-/disabled and configured via" |
846 |
+ elog "the Add-on manager." |
847 |
+ fi |
848 |
+} |
849 |
+ |
850 |
+pkg_postrm() { |
851 |
+ xdg_desktop_database_update |
852 |
+} |