1 |
commit: fcbb033d304690bf1918494ffbff722dc8c1589d |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Apr 29 11:00:33 2020 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 29 11:00:49 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fcbb033d |
7 |
|
8 |
www-client/seamonkey: Removed old |
9 |
|
10 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
www-client/seamonkey/Manifest | 3 - |
14 |
www-client/seamonkey/metadata.xml | 3 +- |
15 |
www-client/seamonkey/seamonkey-2.49.5-r2.ebuild | 376 ------------------------ |
16 |
3 files changed, 1 insertion(+), 381 deletions(-) |
17 |
|
18 |
diff --git a/www-client/seamonkey/Manifest b/www-client/seamonkey/Manifest |
19 |
index d605f9c39c8..4ef35174598 100644 |
20 |
--- a/www-client/seamonkey/Manifest |
21 |
+++ b/www-client/seamonkey/Manifest |
22 |
@@ -1,6 +1,3 @@ |
23 |
-DIST seamonkey-2.49.5-patches-01.tar.xz 14488 BLAKE2B 6619f5d8e034e72cac37ba2421ebcdd62a23054b118c40e0daabe6943a45b8b98ee3cfeb46ac60280d34d5bef5facc7bdadb01af23ad54631ad4dd2021d5b8d3 SHA512 f39cd1518d060a384fb2fcac1e394329ef3728f121a0b777233e1d2887cecc0a0df64530de344edfad098a462f048c031a4cd01828d9fe4a9e45f88035536196 |
24 |
-DIST seamonkey-2.49.5.source-l10n.tar.xz 11706060 BLAKE2B 24b8185cc958ac82433d7bbaab48f4ce4b6d18fd5299a6d2e24f804178f162edc9b29664e0f8437a69b767b8e3e6d0b860301de25daa89b4181af58ef1053c37 SHA512 eda23c334123e7fb060e93a5495b061e96a71944ce4216eee1dbf017d4803310da0882ff9fcf2c986e016ac8bbcca1fe7c2837dd04ea8208fe7127bf6e92afc5 |
25 |
-DIST seamonkey-2.49.5.source.tar.xz 231748204 BLAKE2B eeae383fabb596fdc25ab3a68f1c1161b6bb3aa2d1086b53b2f843047182e68cf9f8a0ce689e4b037068f08a0467b7911947415bc9f141b6c0ddc52e0a749d88 SHA512 31309def1ad4276f13ecb343e936c7cade4b6850db88d9d84700f86bff7024b2b217b9e50fc3756b1d1beea483ceaa2a5a3afd053da00f6ac06e3795e9116789 |
26 |
DIST seamonkey-2.53.1-patches-02.tar.xz 73596 BLAKE2B 79136ce3ffb93bd76ada89458df7a1ef360dc59f68716a987a63ed8074963a2673d766d63e99947120fc000e3809377a7bf852feb3f6ea385f52ee1c9a44772a SHA512 80a23c65f4dbef05e3cc16bc4ffe4dd3e8f5312641dc02b5f92de70e322771a702aa9ae486e5e5e5b5a659aec46b5b931dc8c6f575612cbd5e6aaa0c0ee43fe7 |
27 |
DIST seamonkey-2.53.1.source-l10n.tar.xz 11423472 BLAKE2B ce577c8fd5ff10fdfe5a9f8725cacf2801ed2d4fc66f9535ec1a57e2a613d87925bbccd1293aef8d86c329a221d6f0a5f694b16c8762e2aceed1b4c60cf5883c SHA512 52bc7d82e935abb67778a6fcdab6a9e6d66a196d0962c59ddddae4ae854e1cd0e923016b13afa55df7a3f3997014fc38e729605d449a170a7ff96b905c7ea084 |
28 |
DIST seamonkey-2.53.1.source.tar.xz 290149116 BLAKE2B 613625df9f364550b1456a8f4afad012469e0740d3e084cf2d4e94b22389d2a8de5fa5012bcb8c6139e092054cfd2214d3d93e562a522f76009b6e5e3b5f406d SHA512 67c8a5343070948a88f1184a4f0c6ec720f9d43910165812b05a2a1bed8b698de2860d75b4bbf831f23c750fb521f50afa44ddc13835047f517a1407892ede3f |
29 |
|
30 |
diff --git a/www-client/seamonkey/metadata.xml b/www-client/seamonkey/metadata.xml |
31 |
index b240cff9114..eaa0d9c3da6 100644 |
32 |
--- a/www-client/seamonkey/metadata.xml |
33 |
+++ b/www-client/seamonkey/metadata.xml |
34 |
@@ -14,10 +14,9 @@ |
35 |
<flag name="chatzilla">Build Mozilla's IRC client (default on)</flag> |
36 |
<flag name="custom-optimization">Build with user-specified compiler optimizations (-Os, -O0, -O1, -O2, -O3) from CFLAGS (unsupported)</flag> |
37 |
<flag name="gmp-autoupdate">Allow Gecko Media Plugins (binary blobs) to be automatically downloaded and kept up-to-date in user profiles</flag> |
38 |
- <flag name="force-gtk3">Use the cairo-gtk3 rendering engine</flag> |
39 |
<flag name="ipc">Use inter-process communication between tabs and plugins. Allows for greater stability in case of plugin crashes</flag> |
40 |
<flag name="roaming">Build roaming extension support (default on)</flag> |
41 |
- <flag name="system-cairo">Use the system-wide <pkg>x11-libs/cairo</pkg> instead of bundled</flag> |
42 |
+ <!-- flag name="system-cairo">Use the system-wide <pkg>x11-libs/cairo</pkg> instead of bundled</flag --> |
43 |
<flag name="system-harfbuzz">Use the system-wide <pkg>media-libs/harfbuzz</pkg> instead of bundled</flag> |
44 |
<flag name="system-icu">Use the sytem-wide <pkg>dev-libs/icu</pkg> instead of bundled</flag> |
45 |
<flag name="system-jpeg">Use the system-wide <pkg>media-libs/libjpeg-turbo</pkg> instead of bundled</flag> |
46 |
|
47 |
diff --git a/www-client/seamonkey/seamonkey-2.49.5-r2.ebuild b/www-client/seamonkey/seamonkey-2.49.5-r2.ebuild |
48 |
deleted file mode 100644 |
49 |
index 643eef5a761..00000000000 |
50 |
--- a/www-client/seamonkey/seamonkey-2.49.5-r2.ebuild |
51 |
+++ /dev/null |
52 |
@@ -1,376 +0,0 @@ |
53 |
-# Copyright 1999-2020 Gentoo Authors |
54 |
-# Distributed under the terms of the GNU General Public License v2 |
55 |
- |
56 |
-EAPI=6 |
57 |
-WANT_AUTOCONF="2.1" |
58 |
- |
59 |
-PYTHON_COMPAT=( python3_{6,7} ) |
60 |
-PYTHON_REQ_USE='ncurses,sqlite,ssl,threads(+)' |
61 |
- |
62 |
-# This list can be updated with scripts/get_langs.sh from the mozilla overlay |
63 |
-# note - could not roll langpacks for: ca fi |
64 |
-#MOZ_LANGS=(ca cs de en-GB es-AR es-ES fi fr gl hu it ja lt nb-NO nl pl pt-PT |
65 |
-# ru sk sv-SE tr uk zh-CN zh-TW) |
66 |
-MOZ_LANGS=(cs de en-GB es-AR es-ES fr hu it ja lt nl pl pt-PT |
67 |
- ru sk sv-SE zh-CN zh-TW) |
68 |
- |
69 |
-MOZ_PV="${PV/_pre*}" |
70 |
-MOZ_PV="${MOZ_PV/_alpha/a}" |
71 |
-MOZ_PV="${MOZ_PV/_beta/b}" |
72 |
-MOZ_PV="${MOZ_PV/_rc/rc}" |
73 |
-MOZ_PV="${MOZ_PV/_p[0-9]}" |
74 |
-MOZ_P="${P}" |
75 |
-MY_MOZ_P="${PN}-${MOZ_PV}" |
76 |
- |
77 |
-if [[ ${PV} == *_pre* ]] ; then |
78 |
- MOZ_HTTP_URI="https://archive.mozilla.org/pub/${PN}/candidates/${MOZ_PV}-candidates/build${PV##*_pre}" |
79 |
- #MOZ_LANGPACK_HTTP_URI="https://archive.mozilla.org/pub/${PN}/releases/2.49.4" |
80 |
- #MOZ_LANGPACK_PREFIX="linux-i686/xpi/" |
81 |
- SRC_URI+=" ${MOZ_HTTP_URI}/source/${MY_MOZ_P}.source.tar.xz -> ${P}.source.tar.xz |
82 |
- ${MOZ_HTTP_URI}/source/${MY_MOZ_P}.source-l10n.tar.xz -> ${P}.source-l10n.tar.xz" |
83 |
- S="${WORKDIR}/${MY_MOZ_P}" |
84 |
-else |
85 |
- MOZ_HTTP_URI="https://archive.mozilla.org/pub/${PN}/releases/${MOZ_PV}" |
86 |
- #MOZ_LANGPACK_PREFIX="langpack/${MY_MOZ_P}." |
87 |
- #MOZ_LANGPACK_SUFFIX=".langpack.xpi" |
88 |
- S="${WORKDIR}/${PN}-${MOZ_PV}" |
89 |
- SRC_URI+=" ${MOZ_HTTP_URI}/source/${MY_MOZ_P}.source.tar.xz -> ${P}.source.tar.xz |
90 |
- ${MOZ_HTTP_URI}/source/${MY_MOZ_P}.source-l10n.tar.xz -> ${P}.source-l10n.tar.xz" |
91 |
-fi |
92 |
- |
93 |
-MOZCONFIG_OPTIONAL_WIFI=1 |
94 |
-MOZ_GENERATE_LANGPACKS=1 |
95 |
-MOZ_L10N_SOURCEDIR="${S}/${P}-l10n" |
96 |
-MOZCONFIG_OPTIONAL_GTK3=enabled |
97 |
-inherit check-reqs flag-o-matic toolchain-funcs eutils mozconfig-v6.52 pax-utils xdg-utils autotools mozextension nsplugins mozlinguas-v2 |
98 |
- |
99 |
-PATCH="${PN}-2.49.5-patches-01" |
100 |
- |
101 |
-DESCRIPTION="Seamonkey Web Browser" |
102 |
-HOMEPAGE="http://www.seamonkey-project.org" |
103 |
-KEYWORDS="amd64 ~ppc64 x86" |
104 |
- |
105 |
-SLOT="0" |
106 |
-LICENSE="MPL-2.0 GPL-2 LGPL-2.1" |
107 |
-IUSE="+calendar +chatzilla +crypt +gmp-autoupdate +ipc jack minimal pulseaudio +roaming selinux test" |
108 |
-RESTRICT="!test? ( test )" |
109 |
- |
110 |
-SRC_URI+=" |
111 |
- https://dev.gentoo.org/~axs/mozilla/patchsets/${PATCH}.tar.xz |
112 |
- https://dev.gentoo.org/~polynomial-c/mozilla/patchsets/${PATCH}.tar.xz |
113 |
-" |
114 |
- |
115 |
-ASM_DEPEND=">=dev-lang/yasm-1.1" |
116 |
- |
117 |
-RDEPEND=" |
118 |
- >=dev-libs/nss-3.28.3 |
119 |
- >=dev-libs/nspr-4.13.1 |
120 |
- jack? ( virtual/jack ) |
121 |
- crypt? ( <x11-plugins/enigmail-2.1.0 ) |
122 |
-" |
123 |
- |
124 |
-DEPEND=" |
125 |
- ${RDEPEND} |
126 |
- !elibc_glibc? ( !elibc_uclibc? ( !elibc_musl? ( dev-libs/libexecinfo ) ) ) |
127 |
- amd64? ( ${ASM_DEPEND} |
128 |
- virtual/opengl ) |
129 |
- x86? ( ${ASM_DEPEND} |
130 |
- virtual/opengl ) |
131 |
-" |
132 |
- |
133 |
-# allow GMP_PLUGIN_LIST to be set in an eclass or |
134 |
-# overridden in the enviromnent (advanced hackers only) |
135 |
-if [[ -z $GMP_PLUGIN_LIST ]] ; then |
136 |
- GMP_PLUGIN_LIST=( gmp-gmpopenh264 gmp-widevinecdm ) |
137 |
-fi |
138 |
- |
139 |
-BUILD_OBJ_DIR="${S}/seamonk" |
140 |
- |
141 |
-pkg_setup() { |
142 |
- if [[ ${PV} == *_pre* ]] ; then |
143 |
- ewarn "You're using an unofficial release of ${PN}. Don't file any bug in" |
144 |
- ewarn "Gentoo's Bugtracker against this package in case it breaks for you." |
145 |
- ewarn "Those belong to upstream: https://bugzilla.mozilla.org" |
146 |
- fi |
147 |
- |
148 |
- moz_pkgsetup |
149 |
-} |
150 |
- |
151 |
-pkg_pretend() { |
152 |
- # Ensure we have enough disk space to compile |
153 |
- if use debug || use test ; then |
154 |
- CHECKREQS_DISK_BUILD="8G" |
155 |
- else |
156 |
- CHECKREQS_DISK_BUILD="4G" |
157 |
- fi |
158 |
- check-reqs_pkg_setup |
159 |
-} |
160 |
- |
161 |
-src_unpack() { |
162 |
- local l10n_sources="${P}.source-l10n.tar.xz" |
163 |
- unpack ${A/ ${l10n_sources}} |
164 |
- |
165 |
- mkdir "${S}/${P}-l10n" || die |
166 |
- cd "${S}/${P}-l10n" || die |
167 |
- unpack ${l10n_sources} |
168 |
-} |
169 |
- |
170 |
-src_prepare() { |
171 |
- # Apply our patches |
172 |
- eapply "${WORKDIR}"/seamonkey |
173 |
- |
174 |
- # browser patches go here |
175 |
- pushd "${S}"/mozilla &>/dev/null || die |
176 |
- rm -f "${WORKDIR}"/firefox/1000_gentoo_install_dir.patch \ |
177 |
- "${WORKDIR}"/firefox/1001_disable_sdk_install.patch |
178 |
- eapply "${WORKDIR}"/firefox |
179 |
- popd &>/dev/null || die |
180 |
- |
181 |
- if grep -q '^sdkdir.*$(MOZ_APP_NAME)-devel' mozilla/config/baseconfig.mk ; then |
182 |
- sed '/^sdkdir/s@-devel@@' \ |
183 |
- -i mozilla/config/baseconfig.mk || die |
184 |
- else |
185 |
- einfo "baseconfig.mk hackery no longer needed." |
186 |
- fi |
187 |
- |
188 |
- # Shell scripts sometimes contain DOS line endings; bug 391889 |
189 |
- grep -rlZ --include="*.sh" $'\r$' . | |
190 |
- while read -r -d $'\0' file ; do |
191 |
- einfo edos2unix "${file}" |
192 |
- edos2unix "${file}" |
193 |
- done |
194 |
- |
195 |
- # Allow user to apply any additional patches without modifing ebuild |
196 |
- eapply_user |
197 |
- |
198 |
- local ms="${S}/mozilla" |
199 |
- |
200 |
- # Don't error for format with gcc-9 |
201 |
- grep -rl -- '-Werror=format' | xargs sed -i 's/error=format/no-&/' || die "sed failed" |
202 |
- |
203 |
- # Enable gnomebreakpad |
204 |
- if use debug ; then |
205 |
- sed -i -e "s:GNOME_DISABLE_CRASH_DIALOG=1:GNOME_DISABLE_CRASH_DIALOG=0:g" \ |
206 |
- "${ms}"/build/unix/run-mozilla.sh || die "sed failed!" |
207 |
- fi |
208 |
- |
209 |
- # Ensure that are plugins dir is enabled as default |
210 |
- sed -i -e "s:/usr/lib/mozilla/plugins:/usr/lib/nsbrowser/plugins:" \ |
211 |
- "${ms}"/xpcom/io/nsAppFileLocationProvider.cpp || die "sed failed to replace plugin path for 32bit!" |
212 |
- sed -i -e "s:/usr/lib64/mozilla/plugins:/usr/lib64/nsbrowser/plugins:" \ |
213 |
- "${ms}"/xpcom/io/nsAppFileLocationProvider.cpp || die "sed failed to replace plugin path for 64bit!" |
214 |
- |
215 |
- # Don't exit with error when some libs are missing which we have in |
216 |
- # system. |
217 |
- sed '/^MOZ_PKG_FATAL_WARNINGS/s@= 1@= 0@' \ |
218 |
- -i "${S}"/suite/installer/Makefile.in || die |
219 |
- # Don't error out when there's no files to be removed: |
220 |
- sed 's@\(xargs rm\)$@\1 -f@' \ |
221 |
- -i "${ms}"/toolkit/mozapps/installer/packager.mk || die |
222 |
- |
223 |
- # Don't build libs-% locale files for chatzilla if we are not building chatzilla |
224 |
- # (this is hard-coded in the build system at present rather than being based on configuration) |
225 |
- if ! use chatzilla ; then |
226 |
- sed '/extensions\/irc\/locales libs-/s@^@#@' \ |
227 |
- -i "${S}"/suite/locales/Makefile.in || die |
228 |
- fi |
229 |
- |
230 |
- eautoreconf old-configure.in |
231 |
- cd "${S}"/mozilla || die |
232 |
- eautoconf old-configure.in |
233 |
- cd "${S}"/mozilla/js/src || die |
234 |
- eautoconf old-configure.in |
235 |
- cd "${S}"/mozilla/memory/jemalloc/src || die |
236 |
- WANT_AUTOCONF= eautoconf |
237 |
-} |
238 |
- |
239 |
-src_configure() { |
240 |
- MEXTENSIONS="default" |
241 |
- # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys) |
242 |
- # Note: These are for Gentoo Linux use ONLY. For your own distribution, please |
243 |
- # get your own set of keys. |
244 |
- _google_api_key=AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc |
245 |
- |
246 |
- #################################### |
247 |
- # |
248 |
- # mozconfig, CFLAGS and CXXFLAGS setup |
249 |
- # |
250 |
- #################################### |
251 |
- |
252 |
- mozconfig_init |
253 |
- mozconfig_config |
254 |
- |
255 |
- # enable JACK, bug 600002 |
256 |
- mozconfig_use_enable jack |
257 |
- |
258 |
- # It doesn't compile on alpha without this LDFLAGS |
259 |
- use alpha && append-ldflags "-Wl,--no-relax" |
260 |
- |
261 |
- if ! use chatzilla ; then |
262 |
- MEXTENSIONS+=",-irc" |
263 |
- fi |
264 |
- if ! use roaming ; then |
265 |
- MEXTENSIONS+=",-sroaming" |
266 |
- fi |
267 |
- |
268 |
- # Setup api key for location services |
269 |
- echo -n "${_google_api_key}" > "${S}"/google-api-key |
270 |
- mozconfig_annotate '' --with-google-api-keyfile="${S}/google-api-key" |
271 |
- |
272 |
- mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}" |
273 |
- |
274 |
- # Other sm-specific settings |
275 |
- mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME} |
276 |
- mozconfig_annotate '' --enable-safe-browsing |
277 |
- mozconfig_use_enable calendar |
278 |
- |
279 |
- # Use an objdir to keep things organized. |
280 |
- echo "mk_add_options MOZ_OBJDIR=${BUILD_OBJ_DIR}" >> "${S}"/.mozconfig |
281 |
- echo "mk_add_options XARGS=/usr/bin/xargs" >> "${S}"/.mozconfig |
282 |
- |
283 |
- mozlinguas_mozconfig |
284 |
- |
285 |
- # Finalize and report settings |
286 |
- mozconfig_final |
287 |
- |
288 |
- # Required until seamonkey-2.53 is available |
289 |
- sed \ |
290 |
- -e '/--enable-application/s@comm/suite@suite@' \ |
291 |
- -e '/--enable-linker/d' \ |
292 |
- -i .mozconfig || die |
293 |
- |
294 |
- # Work around breakage in makeopts with --no-print-directory |
295 |
- MAKEOPTS="${MAKEOPTS/--no-print-directory/}" |
296 |
- |
297 |
- if [[ $(gcc-major-version) -lt 4 ]] ; then |
298 |
- append-cxxflags -fno-stack-protector |
299 |
- elif [[ $(gcc-major-version) -gt 4 || $(gcc-minor-version) -gt 3 ]] ; then |
300 |
- if use amd64 || use x86 ; then |
301 |
- append-flags -mno-avx |
302 |
- fi |
303 |
- fi |
304 |
- |
305 |
- # workaround for funky/broken upstream configure... |
306 |
- SHELL="${SHELL:-${EPREFIX}/bin/bash}" \ |
307 |
- emake V=1 -f client.mk configure |
308 |
-} |
309 |
- |
310 |
-src_compile() { |
311 |
- MOZ_MAKE_FLAGS="${MAKEOPTS}" SHELL="${SHELL}" \ |
312 |
- emake V=1 -f client.mk |
313 |
- |
314 |
- mozlinguas_src_compile |
315 |
-} |
316 |
- |
317 |
-src_install() { |
318 |
- MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
319 |
- DICTPATH="\"${EPREFIX}/usr/share/myspell\"" |
320 |
- |
321 |
- local emid |
322 |
- cd "${BUILD_OBJ_DIR}" || die |
323 |
- |
324 |
- # Pax mark xpcshell for hardened support, only used for startupcache creation. |
325 |
- pax-mark m "${BUILD_OBJ_DIR}/dist/bin/xpcshell" |
326 |
- |
327 |
- # Copy our preference before omnijar is created. |
328 |
- sed "s|SEAMONKEY_PVR|${PVR}|" "${FILESDIR}"/all-gentoo-1.js > \ |
329 |
- "${BUILD_OBJ_DIR}/dist/bin/defaults/pref/all-gentoo.js" \ |
330 |
- || die |
331 |
- |
332 |
- # Set default path to search for dictionaries. |
333 |
- echo "pref(\"spellchecker.dictionary_path\", ${DICTPATH});" \ |
334 |
- >> "${BUILD_OBJ_DIR}/dist/bin/defaults/pref/all-gentoo.js" \ |
335 |
- || die |
336 |
- |
337 |
- echo 'pref("extensions.autoDisableScopes", 3);' >> \ |
338 |
- "${BUILD_OBJ_DIR}/dist/bin/defaults/pref/all-gentoo.js" \ |
339 |
- || die |
340 |
- |
341 |
- local plugin |
342 |
- if ! use gmp-autoupdate ; then |
343 |
- for plugin in "${GMP_PLUGIN_LIST[@]}" ; do |
344 |
- echo "pref(\"media.${plugin}.autoupdate\", false);" >> \ |
345 |
- "${S}/${BUILD_OBJ_DIR}/dist/bin/browser/defaults/preferences/all-gentoo.js" \ |
346 |
- || dir |
347 |
- done |
348 |
- fi |
349 |
- |
350 |
- MOZ_MAKE_FLAGS="${MAKEOPTS}" SHELL="${SHELL:-${EPREFIX}/bin/bash}" \ |
351 |
- emake DESTDIR="${D}" install |
352 |
- MOZ_P="${P/_*}" mozlinguas_src_install |
353 |
- cp "${FILESDIR}"/${PN}.desktop "${T}" || die |
354 |
- |
355 |
- sed 's|^\(MimeType=.*\)$|\1text/x-vcard;text/directory;application/mbox;message/rfc822;x-scheme-handler/mailto;|' \ |
356 |
- -i "${T}"/${PN}.desktop || die |
357 |
- sed 's|^\(Categories=.*\)$|\1Email;|' -i "${T}"/${PN}.desktop \ |
358 |
- || die |
359 |
- |
360 |
- # Add StartupNotify=true bug 290401 |
361 |
- if use startup-notification ; then |
362 |
- echo "StartupNotify=true" >> "${T}"/${PN}.desktop || die |
363 |
- fi |
364 |
- |
365 |
- # Install icon and .desktop for menu entry |
366 |
- newicon "${S}"/suite/branding/nightly/content/icon64.png ${PN}.png |
367 |
- domenu "${T}"/${PN}.desktop |
368 |
- |
369 |
- # Required in order to use plugins and even run seamonkey on hardened. |
370 |
- pax-mark m "${ED}"${MOZILLA_FIVE_HOME}/{seamonkey,seamonkey-bin,plugin-container} |
371 |
- |
372 |
- if use minimal ; then |
373 |
- rm -rf "${ED}"/usr/include "${ED}${MOZILLA_FIVE_HOME}"/{idl,include,lib,sdk} |
374 |
- fi |
375 |
- |
376 |
- if use chatzilla ; then |
377 |
- local emid='{59c81df5-4b7a-477b-912d-4e0fdf64e5f2}' |
378 |
- |
379 |
- # remove the en_US-only xpi file so a version with all requested locales can be installed |
380 |
- if [[ -e "${ED}"${MOZILLA_FIVE_HOME}/distribution/extensions/${emid}.xpi ]]; then |
381 |
- rm -f "${ED}"${MOZILLA_FIVE_HOME}/distribution/extensions/${emid}.xpi || die |
382 |
- fi |
383 |
- |
384 |
- # merge the extra locales into the main extension |
385 |
- mozlinguas_xpistage_langpacks "${BUILD_OBJ_DIR}"/dist/xpi-stage/chatzilla |
386 |
- |
387 |
- # install the merged extension |
388 |
- mkdir -p "${T}/${emid}" || die |
389 |
- cp -RLp -t "${T}/${emid}" "${BUILD_OBJ_DIR}"/dist/xpi-stage/chatzilla/* || die |
390 |
- insinto ${MOZILLA_FIVE_HOME}/distribution/extensions |
391 |
- doins -r "${T}/${emid}" |
392 |
- fi |
393 |
- |
394 |
- # Handle plugins dir through nsplugins.eclass |
395 |
- share_plugins_dir |
396 |
- |
397 |
- # revdep-rebuild entry |
398 |
- insinto /etc/revdep-rebuild |
399 |
- echo "SEARCH_DIRS_MASK=${MOZILLA_FIVE_HOME}*" >> ${T}/11${PN} |
400 |
- doins "${T}"/11${PN} |
401 |
-} |
402 |
- |
403 |
-pkg_preinst() { |
404 |
- MOZILLA_FIVE_HOME="${ROOT}/usr/$(get_libdir)/${PN}" |
405 |
- |
406 |
- if [ -d ${MOZILLA_FIVE_HOME}/plugins ] ; then |
407 |
- rm ${MOZILLA_FIVE_HOME}/plugins -rf |
408 |
- fi |
409 |
-} |
410 |
- |
411 |
-pkg_postinst() { |
412 |
- MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
413 |
- |
414 |
- # Update mimedb for the new .desktop file |
415 |
- xdg_desktop_database_update |
416 |
- |
417 |
- if ! use gmp-autoupdate ; then |
418 |
- elog "USE='-gmp-autoupdate' has disabled the following plugins from updating or" |
419 |
- elog "installing into new profiles:" |
420 |
- local plugin |
421 |
- for plugin in "${GMP_PLUGIN_LIST[@]}"; do elog "\t ${plugin}" ; done |
422 |
- fi |
423 |
- |
424 |
- if use chatzilla ; then |
425 |
- elog "chatzilla is now an extension which can be en-/disabled and configured via" |
426 |
- elog "the Add-on manager." |
427 |
- fi |
428 |
-} |