1 |
commit: e0bb4d3b5a54a856a451c54b42e115797a11f19d |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 4 07:17:05 2021 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 4 08:30:09 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0bb4d3b |
7 |
|
8 |
www-client/seamonkey: Removed old |
9 |
|
10 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
11 |
|
12 |
www-client/seamonkey/Manifest | 2 - |
13 |
www-client/seamonkey/seamonkey-2.53.7.ebuild | 555 --------------------------- |
14 |
2 files changed, 557 deletions(-) |
15 |
|
16 |
diff --git a/www-client/seamonkey/Manifest b/www-client/seamonkey/Manifest |
17 |
index e99fe42e611..536fb84be54 100644 |
18 |
--- a/www-client/seamonkey/Manifest |
19 |
+++ b/www-client/seamonkey/Manifest |
20 |
@@ -2,5 +2,3 @@ DIST seamonkey-2.53.3-system_libvpx-1.8.patch.xz 3128 BLAKE2B f73802d2715a11964a |
21 |
DIST seamonkey-2.53.6_beta1-patches-01.tar.xz 44160 BLAKE2B f6a959a983e726cd919ab5004b27cd496a78cd58759168d6dd64e155059c7b52f269bc42143ddb69a1e8880c72779257216d942a1abc58800491fde9eaaea061 SHA512 710e668209f76f2ca4112923c61219e435123791dfcfcb202af1f7975436d17f13ab025722e9725f219e9de9d024091514d23c71a851d68f750c11ea8d56c2b9 |
22 |
DIST seamonkey-2.53.7.1.source-l10n.tar.xz 13540652 BLAKE2B a42471ee8d2c4c57158291a9770aa6759a620e4b9a38a1bedcf17495332924839d65f1a12dce3c7452137fd6d176c576ec0da639f20be29621b10406c0e9bd4f SHA512 d4bde45e0dfdbd1eb316ef3f3d2e611a1a3314a1144ad7075f96ad35c961bc07fd82bbfd7959aa9bee0034cbf081427670d7da3eb3b3aac85b5db7aab92b32a5 |
23 |
DIST seamonkey-2.53.7.1.source.tar.xz 283452108 BLAKE2B 4f0a73c5d57c708e4b5d5af6ddee1c9515b6bf401b0181da17c03cdeee1afb9d120c0157cdf2a07e8fa6495462e8bbb4b85e3e6646dbbead123934c565732926 SHA512 21f52b2668b8cb31670a80f3fbcd04d714527545ddd36fa5782999be398428cfeac989da4e3e7e049202249d43c71228ebc8640dd0b594150c8cff0b587caf7e |
24 |
-DIST seamonkey-2.53.7.source-l10n.tar.xz 13540652 BLAKE2B a42471ee8d2c4c57158291a9770aa6759a620e4b9a38a1bedcf17495332924839d65f1a12dce3c7452137fd6d176c576ec0da639f20be29621b10406c0e9bd4f SHA512 d4bde45e0dfdbd1eb316ef3f3d2e611a1a3314a1144ad7075f96ad35c961bc07fd82bbfd7959aa9bee0034cbf081427670d7da3eb3b3aac85b5db7aab92b32a5 |
25 |
-DIST seamonkey-2.53.7.source.tar.xz 283282204 BLAKE2B a0e239381b6f1dbd41042ab1daf1ed986d6ea9f6fb68cb38b41e05e579937d1754f4293f1d3b9ded7ce6f05f3ca8cd292addfd06fe6405777c440ded2804d4c1 SHA512 175bf010f5279f07e0cccaf2d8caf4d6e0368de035aba7b5bc4c5da301de19aa7fc8c0125b2ee3d1c1a859e94c8f7985c977bafe48cd6f453d609270891887e5 |
26 |
|
27 |
diff --git a/www-client/seamonkey/seamonkey-2.53.7.ebuild b/www-client/seamonkey/seamonkey-2.53.7.ebuild |
28 |
deleted file mode 100644 |
29 |
index a71a636282e..00000000000 |
30 |
--- a/www-client/seamonkey/seamonkey-2.53.7.ebuild |
31 |
+++ /dev/null |
32 |
@@ -1,555 +0,0 @@ |
33 |
-# Copyright 1999-2021 Gentoo Authors |
34 |
-# Distributed under the terms of the GNU General Public License v2 |
35 |
- |
36 |
-EAPI=7 |
37 |
- |
38 |
-WANT_AUTOCONF="2.1" |
39 |
- |
40 |
-PYTHON_COMPAT=( python3_{7..9} ) |
41 |
-PYTHON_REQ_USE='ncurses,sqlite,ssl,threads(+)' |
42 |
- |
43 |
-# This list can be updated with scripts/get_langs.sh from the mozilla overlay |
44 |
-# note - could not roll langpacks for: ca fi |
45 |
-#MOZ_LANGS=(ca cs de en-GB es-AR es-ES fi fr gl hu it ja lt nb-NO nl pl pt-PT |
46 |
-# ru sk sv-SE tr uk zh-CN zh-TW) |
47 |
-MOZ_LANGS=(cs de en-GB es-AR es-ES fr hu it ja lt nl pl pt-PT |
48 |
- ru sk sv-SE zh-CN zh-TW) |
49 |
- |
50 |
-MOZ_PV="${PV/_pre*}" |
51 |
-MOZ_PV="${MOZ_PV/_alpha/a}" |
52 |
-MOZ_PV="${MOZ_PV/_beta/b}" |
53 |
-MOZ_PV="${MOZ_PV/_rc/rc}" |
54 |
-MOZ_P="${P}" |
55 |
-MY_MOZ_P="${PN}-${MOZ_PV}" |
56 |
- |
57 |
-if [[ ${PV} == *_pre* ]] ; then |
58 |
- MOZ_HTTP_URI="https://archive.mozilla.org/pub/${PN}/candidates/${MOZ_PV}-candidates/build${PV##*_pre}" |
59 |
-else |
60 |
- MOZ_HTTP_URI="https://archive.mozilla.org/pub/${PN}/releases/${MOZ_PV}" |
61 |
-fi |
62 |
- |
63 |
-SRC_URI="${MOZ_HTTP_URI}/source/${MY_MOZ_P}.source.tar.xz -> ${P}.source.tar.xz |
64 |
- ${MOZ_HTTP_URI}/source/${MY_MOZ_P}.source-l10n.tar.xz -> ${P}.source-l10n.tar.xz" |
65 |
-S="${WORKDIR}/${MY_MOZ_P}" |
66 |
- |
67 |
-MOZ_GENERATE_LANGPACKS=1 |
68 |
-MOZ_L10N_SOURCEDIR="${S}/${P}-l10n" |
69 |
-inherit autotools check-reqs desktop flag-o-matic mozcoreconf-v6 mozextension mozlinguas-v2 pax-utils toolchain-funcs xdg-utils |
70 |
- |
71 |
-DESCRIPTION="Seamonkey Web Browser" |
72 |
-HOMEPAGE="https://www.seamonkey-project.org/" |
73 |
- |
74 |
-PATCH="${PN}-2.53.6_beta1-patches-01" |
75 |
-SRC_URI+=" |
76 |
- https://dev.gentoo.org/~polynomial-c/mozilla/patchsets/${PATCH}.tar.xz |
77 |
- system-libvpx? ( https://dev.gentoo.org/~polynomial-c/mozilla/${PN}-2.53.3-system_libvpx-1.8.patch.xz ) |
78 |
-" |
79 |
- |
80 |
-LICENSE="MPL-2.0 GPL-2 LGPL-2.1" |
81 |
-SLOT="0" |
82 |
-SYSTEM_IUSE=( +system-{av1,harfbuzz,icu,jpeg,libevent,libvpx,sqlite} ) |
83 |
-IUSE="+chatzilla cpu_flags_arm_neon +crypt dbus debug +gmp-autoupdate +ipc jack |
84 |
-lto minimal pulseaudio +roaming selinux startup-notification test wifi" |
85 |
-IUSE+=" ${SYSTEM_IUSE[@]}" |
86 |
-KEYWORDS="amd64 ~ppc64 x86" |
87 |
- |
88 |
-RESTRICT="!test? ( test )" |
89 |
- |
90 |
-ASM_DEPEND=">=dev-lang/yasm-1.1" |
91 |
- |
92 |
-BDEPEND=" |
93 |
- app-arch/unzip |
94 |
- app-arch/zip |
95 |
- >=dev-lang/nasm-2.13 |
96 |
- dev-lang/perl |
97 |
- sys-apps/findutils |
98 |
- >=sys-devel/binutils-2.16.1 |
99 |
- virtual/pkgconfig |
100 |
- >=virtual/rust-1.34.0 |
101 |
- amd64? ( ${ASM_DEPEND} ) |
102 |
- lto? ( sys-devel/binutils[gold] ) |
103 |
- x86? ( ${ASM_DEPEND} ) |
104 |
-" |
105 |
-COMMON_DEPEND=" |
106 |
- >=app-text/hunspell-1.5.4:= |
107 |
- dev-libs/atk |
108 |
- >=dev-libs/glib-2.26:2 |
109 |
- >=dev-libs/libffi-3.0.10:= |
110 |
- >=dev-libs/nspr-4.23 |
111 |
- >=dev-libs/nss-3.47.1 |
112 |
- media-libs/fontconfig |
113 |
- >=media-libs/freetype-2.4.10 |
114 |
- >=media-libs/libpng-1.6.31:0=[apng] |
115 |
- >=media-libs/mesa-10.2:= |
116 |
- >=sys-libs/zlib-1.2.3 |
117 |
- >=x11-libs/cairo-1.10[X] |
118 |
- x11-libs/gdk-pixbuf |
119 |
- >=x11-libs/gtk+-2.18:2 |
120 |
- >=x11-libs/gtk+-3.4.0:3 |
121 |
- x11-libs/libX11 |
122 |
- x11-libs/libXcomposite |
123 |
- x11-libs/libXdamage |
124 |
- x11-libs/libXext |
125 |
- x11-libs/libXfixes |
126 |
- x11-libs/libXrender |
127 |
- x11-libs/libXt |
128 |
- >=x11-libs/pango-1.22.0 |
129 |
- >=x11-libs/pixman-0.19.2 |
130 |
- media-video/ffmpeg |
131 |
- virtual/freedesktop-icon-theme |
132 |
- dbus? ( |
133 |
- >=dev-libs/dbus-glib-0.72 |
134 |
- >=sys-apps/dbus-0.60 |
135 |
- ) |
136 |
- jack? ( virtual/jack ) |
137 |
- crypt? ( <x11-plugins/enigmail-2.1.0 ) |
138 |
- kernel_linux? ( !pulseaudio? ( media-libs/alsa-lib ) ) |
139 |
- pulseaudio? ( || ( |
140 |
- media-sound/pulseaudio |
141 |
- >=media-sound/apulse-0.1.9 |
142 |
- ) ) |
143 |
- startup-notification? ( >=x11-libs/startup-notification-0.8 ) |
144 |
- system-av1? ( |
145 |
- >=media-libs/dav1d-0.3.0:= |
146 |
- >=media-libs/libaom-1.0.0:= |
147 |
- ) |
148 |
- system-harfbuzz? ( |
149 |
- >=media-gfx/graphite2-1.3.9-r1 |
150 |
- >=media-libs/harfbuzz-1.3.3:0= |
151 |
- ) |
152 |
- system-icu? ( >=dev-libs/icu-59.1:= ) |
153 |
- system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1 ) |
154 |
- system-libevent? ( >=dev-libs/libevent-2.0:0= ) |
155 |
- system-libvpx? ( >=media-libs/libvpx-1.8.0:0=[postproc] ) |
156 |
- system-sqlite? ( >=dev-db/sqlite-3.19.3:3[secure-delete,debug=] ) |
157 |
- wifi? ( |
158 |
- kernel_linux? ( |
159 |
- >=dev-libs/dbus-glib-0.72 |
160 |
- net-misc/networkmanager |
161 |
- >=sys-apps/dbus-0.60 |
162 |
- ) |
163 |
- ) |
164 |
-" |
165 |
-RDEPEND="${COMMON_DEPEND} |
166 |
- selinux? ( sec-policy/selinux-mozilla ) |
167 |
-" |
168 |
-DEPEND="${COMMON_DEPEND} |
169 |
- amd64? ( virtual/opengl ) |
170 |
- x86? ( virtual/opengl ) |
171 |
-" |
172 |
- |
173 |
-# allow GMP_PLUGIN_LIST to be set in an eclass or |
174 |
-# overridden in the enviromnent (advanced hackers only) |
175 |
-[[ -z ${GMP_PLUGIN_LIST} ]] && GMP_PLUGIN_LIST=( gmp-gmpopenh264 gmp-widevinecdm ) |
176 |
- |
177 |
-BUILD_OBJ_DIR="${S}/seamonk" |
178 |
- |
179 |
-pkg_setup() { |
180 |
- if [[ ${PV} == *_beta* ]] || [[ ${PV} == *_pre* ]] ; then |
181 |
- ewarn "You're using an unofficial release of ${PN}. Don't file any bug in" |
182 |
- ewarn "Gentoo's Bugtracker against this package in case it breaks for you." |
183 |
- ewarn "Those belong to upstream: https://bugzilla.mozilla.org" |
184 |
- fi |
185 |
- |
186 |
- moz_pkgsetup |
187 |
-} |
188 |
- |
189 |
-pkg_pretend() { |
190 |
- # Ensure we have enough disk space to compile |
191 |
- if use debug || use lto || use test ; then |
192 |
- CHECKREQS_DISK_BUILD="16G" |
193 |
- else |
194 |
- CHECKREQS_DISK_BUILD="12G" |
195 |
- fi |
196 |
- check-reqs_pkg_setup |
197 |
-} |
198 |
- |
199 |
-spkg_setup() { |
200 |
- # Ensure we have enough disk space to compile |
201 |
- if use debug || use lto || use test ; then |
202 |
- CHECKREQS_DISK_BUILD="16G" |
203 |
- else |
204 |
- CHECKREQS_DISK_BUILD="12G" |
205 |
- fi |
206 |
- check-reqs_pkg_setup |
207 |
-} |
208 |
- |
209 |
-src_unpack() { |
210 |
- local l10n_sources="${P}.source-l10n.tar.xz" |
211 |
- unpack ${A/ ${l10n_sources}} |
212 |
- |
213 |
- mkdir "${S}/${P}-l10n" || die |
214 |
- cd "${S}/${P}-l10n" || die |
215 |
- unpack ${l10n_sources} |
216 |
-} |
217 |
- |
218 |
-src_prepare() { |
219 |
- rm "${WORKDIR}/mozilla/6009_musl_sandbox_membarrier.patch" || die |
220 |
- |
221 |
- # Apply our patches |
222 |
- eapply "${WORKDIR}"/mozilla |
223 |
- |
224 |
- # Shell scripts sometimes contain DOS line endings; bug 391889 |
225 |
- grep -rlZ --include="*.sh" $'\r$' . | |
226 |
- while read -r -d $'\0' file ; do |
227 |
- einfo edos2unix "${file}" |
228 |
- edos2unix "${file}" |
229 |
- done |
230 |
- |
231 |
- use system-libvpx \ |
232 |
- && eapply -p2 "${WORKDIR}/${PN}-2.53.3-system_libvpx-1.8.patch" |
233 |
- |
234 |
- # Allow user to apply any additional patches without modifing ebuild |
235 |
- eapply_user |
236 |
- |
237 |
- # Don't error for format with gcc-9 |
238 |
- grep -rl -- '-Werror=format' | xargs sed -i 's/error=format/no-&/' || die |
239 |
- |
240 |
- # Enable gnomebreakpad |
241 |
- if use debug ; then |
242 |
- sed -i -e "s:GNOME_DISABLE_CRASH_DIALOG=1:GNOME_DISABLE_CRASH_DIALOG=0:g" \ |
243 |
- build/unix/run-mozilla.sh || die |
244 |
- fi |
245 |
- |
246 |
- # Ensure that are plugins dir is enabled as default |
247 |
- sed -i -e "s:/usr/$(get_libdir)/mozilla/plugins:/usr/$(get_libdir)/${PN}/plugins:" \ |
248 |
- xpcom/io/nsAppFileLocationProvider.cpp || die |
249 |
- |
250 |
- # Don't exit with error when some libs are missing which we have in |
251 |
- # system. |
252 |
- sed '/^MOZ_PKG_FATAL_WARNINGS/s@= 1@= 0@' \ |
253 |
- -i comm/suite/installer/Makefile.in || die |
254 |
- # Don't error out when there's no files to be removed: |
255 |
- sed 's@\(xargs rm\)$@\1 -f@' \ |
256 |
- -i toolkit/mozapps/installer/packager.mk || die |
257 |
- |
258 |
- # Don't build libs-% locale files for chatzilla if we are not building chatzilla |
259 |
- # (this is hard-coded in the build system at present rather than being based on configuration) |
260 |
- if ! use chatzilla ; then |
261 |
- sed '/extensions\/irc\/locales libs-/s@^@#@' \ |
262 |
- -i comm/suite/locales/Makefile.in || die |
263 |
- fi |
264 |
- |
265 |
- eautoreconf old-configure.in |
266 |
- cd js/src || die |
267 |
- eautoconf old-configure.in |
268 |
-} |
269 |
- |
270 |
-src_configure() { |
271 |
- MEXTENSIONS="default" |
272 |
- # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys) |
273 |
- # Note: These are for Gentoo Linux use ONLY. For your own distribution, please |
274 |
- # get your own set of keys. |
275 |
- _google_api_key=AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc |
276 |
- |
277 |
- ###################################### |
278 |
- # |
279 |
- # mozconfig, CFLAGS and CXXFLAGS setup |
280 |
- # |
281 |
- ###################################### |
282 |
- |
283 |
- mozconfig_init |
284 |
- |
285 |
- ################################## |
286 |
- # Former mozconfig_config() part # |
287 |
- ################################## |
288 |
- |
289 |
- # Migrated from mozcoreconf-2 |
290 |
- mozconfig_annotate 'system_libs' --with-system-bz2 |
291 |
- mozconfig_annotate 'system_libs' --with-system-zlib |
292 |
- |
293 |
- # Disable for testing purposes only |
294 |
- mozconfig_annotate 'Upstream bug 1341234' --disable-stylo |
295 |
- |
296 |
- # Must pass release in order to properly select linker via gold useflag |
297 |
- mozconfig_annotate 'Enable by Gentoo' --enable-release |
298 |
- |
299 |
- # Must pass --enable-gold if using ld.gold |
300 |
- if tc-ld-is-gold ; then |
301 |
- mozconfig_annotate 'tc-ld-is-gold=true' --enable-gold |
302 |
- else |
303 |
- mozconfig_annotate 'tc-ld-is-gold=false' --disable-gold |
304 |
- fi |
305 |
- |
306 |
- # Enable position independent executables |
307 |
- mozconfig_annotate 'enabled by Gentoo' --enable-pie |
308 |
- |
309 |
- mozconfig_use_enable debug |
310 |
- mozconfig_use_enable debug tests |
311 |
- if ! use debug ; then |
312 |
- mozconfig_annotate 'disabled by Gentoo' --disable-debug-symbols |
313 |
- else |
314 |
- mozconfig_annotate 'enabled by Gentoo' --enable-debug-symbols |
315 |
- fi |
316 |
- |
317 |
- mozconfig_use_enable startup-notification |
318 |
- |
319 |
- # wifi pulls in dbus so manage both here |
320 |
- mozconfig_use_enable wifi necko-wifi |
321 |
- if use kernel_linux && use wifi && ! use dbus ; then |
322 |
- echo "Enabling dbus support due to wifi request" |
323 |
- mozconfig_annotate 'dbus required by necko-wifi on linux' --enable-dbus |
324 |
- else |
325 |
- mozconfig_use_enable dbus |
326 |
- mozconfig_annotate 'disabled' --disable-necko-wifi |
327 |
- fi |
328 |
- |
329 |
- # These are enabled by default in all mozilla applications |
330 |
- mozconfig_annotate '' --with-system-nspr --with-nspr-prefix="${SYSROOT}${EPREFIX}"/usr |
331 |
- mozconfig_annotate '' --with-system-nss --with-nss-prefix="${SYSROOT}${EPREFIX}"/usr |
332 |
- mozconfig_annotate '' --x-includes="${SYSROOT}${EPREFIX}"/usr/include --x-libraries="${SYSROOT}${EPREFIX}"/usr/$(get_libdir) |
333 |
- if use system-libevent ; then |
334 |
- mozconfig_annotate '' --with-system-libevent="${SYSROOT}${EPREFIX}"/usr |
335 |
- fi |
336 |
- mozconfig_annotate '' --prefix="${EPREFIX}"/usr |
337 |
- mozconfig_annotate '' --libdir="${EPREFIX}"/usr/$(get_libdir) |
338 |
- mozconfig_annotate 'Gentoo default' --enable-system-hunspell |
339 |
- mozconfig_annotate '' --disable-crashreporter |
340 |
- mozconfig_annotate 'Gentoo default' --with-system-png |
341 |
- mozconfig_annotate '' --enable-system-ffi |
342 |
- mozconfig_annotate '' --disable-gconf |
343 |
- mozconfig_annotate '' --with-intl-api |
344 |
- |
345 |
- # skia has no support for big-endian platforms |
346 |
- if [[ $(tc-endian) == "big" ]] ; then |
347 |
- mozconfig_annotate 'big endian target' --disable-skia |
348 |
- else |
349 |
- mozconfig_annotate '' --enable-skia |
350 |
- fi |
351 |
- |
352 |
- # default toolkit is cairo-gtk3, optional use flags can change this |
353 |
- mozconfig_annotate '' --enable-default-toolkit=cairo-gtk3 |
354 |
- |
355 |
- # Instead of the standard --build= and --host=, mozilla uses --host instead |
356 |
- # of --build, and --target intstead of --host. |
357 |
- # Note, mozilla also has --build but it does not do what you think it does. |
358 |
- # Set both --target and --host as mozilla uses python to guess values otherwise |
359 |
- mozconfig_annotate '' --target="${CHOST}" |
360 |
- mozconfig_annotate '' --host="${CBUILD:-${CHOST}}" |
361 |
- |
362 |
- mozconfig_use_enable pulseaudio |
363 |
- # force the deprecated alsa sound code if pulseaudio is disabled |
364 |
- if use kernel_linux && ! use pulseaudio ; then |
365 |
- mozconfig_annotate '-pulseaudio' --enable-alsa |
366 |
- fi |
367 |
- |
368 |
- # For testing purpose only |
369 |
- mozconfig_annotate 'Sandbox' --enable-content-sandbox |
370 |
- |
371 |
- mozconfig_use_enable system-sqlite |
372 |
- mozconfig_use_with system-jpeg |
373 |
- mozconfig_use_with system-icu |
374 |
- mozconfig_use_with system-libvpx |
375 |
- mozconfig_use_with system-harfbuzz |
376 |
- mozconfig_use_with system-harfbuzz system-graphite2 |
377 |
- mozconfig_use_with system-av1 |
378 |
- |
379 |
- # Modifications to better support ARM, bug 553364 |
380 |
- if use cpu_flags_arm_neon ; then |
381 |
- mozconfig_annotate '' --with-fpu=neon |
382 |
- mozconfig_annotate '' --with-thumb=yes |
383 |
- mozconfig_annotate '' --with-thumb-interwork=no |
384 |
- fi |
385 |
- if [[ ${CHOST} == armv* ]] ; then |
386 |
- mozconfig_annotate '' --with-float-abi=hard |
387 |
- if ! use system-libvpx ; then |
388 |
- sed -i -e "s|softfp|hard|" media/libvpx/moz.build || die |
389 |
- fi |
390 |
- fi |
391 |
- |
392 |
- if use lto ; then |
393 |
- # Linking only works when using ld.gold when LTO is enabled |
394 |
- mozconfig_annotate "forcing ld=gold due to USE=lto" --enable-linker=gold |
395 |
- # ThinLTO is currently broken, see bmo#1644409 |
396 |
- mozconfig_annotate '+lto' --enable-lto=full |
397 |
- else |
398 |
- if tc-ld-is-gold ; then |
399 |
- mozconfig_annotate "linker is set to gold" --enable-linker=gold |
400 |
- else |
401 |
- mozconfig_annotate "linker is set to bfd" --enable-linker=bfd |
402 |
- fi |
403 |
- fi |
404 |
- # LTO flag was handled via configure |
405 |
- filter-flags '-flto*' |
406 |
- |
407 |
- ################################## |
408 |
- # Former mozconfig_config() end # |
409 |
- ################################## |
410 |
- |
411 |
- # enable JACK, bug 600002 |
412 |
- mozconfig_use_enable jack |
413 |
- |
414 |
- # It doesn't compile on alpha without this LDFLAGS |
415 |
- use alpha && append-ldflags "-Wl,--no-relax" |
416 |
- |
417 |
- # Linking fails without this due to memory exhaustion |
418 |
- use x86 && append-ldflags "-Wl,--no-keep-memory" |
419 |
- |
420 |
- if ! use chatzilla ; then |
421 |
- MEXTENSIONS+=",-irc" |
422 |
- fi |
423 |
- if ! use roaming ; then |
424 |
- MEXTENSIONS+=",-sroaming" |
425 |
- fi |
426 |
- |
427 |
- # Setup api key for location services |
428 |
- echo -n "${_google_api_key}" > "${S}"/google-api-key |
429 |
- mozconfig_annotate '' --with-google-location-service-api-keyfile="${S}/google-api-key" |
430 |
- mozconfig_annotate '' --with-google-safebrowsing-api-keyfile="${S}/google-api-key" |
431 |
- |
432 |
- mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}" |
433 |
- |
434 |
- # use startup-cache for faster startup time |
435 |
- mozconfig_annotate '' --enable-startupcache |
436 |
- |
437 |
- # Use an objdir to keep things organized. |
438 |
- echo "mk_add_options MOZ_OBJDIR=${BUILD_OBJ_DIR}" >> "${S}"/.mozconfig |
439 |
- echo "mk_add_options XARGS=/usr/bin/xargs" >> "${S}"/.mozconfig |
440 |
- |
441 |
- mozlinguas_mozconfig |
442 |
- |
443 |
- # Finalize and report settings |
444 |
- mozconfig_final |
445 |
- |
446 |
- # Work around breakage in makeopts with --no-print-directory |
447 |
- MAKEOPTS="${MAKEOPTS/--no-print-directory/}" |
448 |
- |
449 |
- if [[ $(gcc-major-version) -lt 4 ]] ; then |
450 |
- append-cxxflags -fno-stack-protector |
451 |
- elif [[ $(gcc-major-version) -gt 4 || $(gcc-minor-version) -gt 3 ]] ; then |
452 |
- if use amd64 || use x86 ; then |
453 |
- append-flags -mno-avx |
454 |
- fi |
455 |
- fi |
456 |
- |
457 |
- # Pass $MAKEOPTS to build system |
458 |
- export MOZ_MAKE_FLAGS="${MAKEOPTS}" |
459 |
- # Use system's Python environment |
460 |
- #export MACH_USE_SYSTEM_PYTHON=1 |
461 |
- # Disable notification when build system has finished |
462 |
- export MOZ_NOSPAM=1 |
463 |
- |
464 |
- # workaround for funky/broken upstream configure... |
465 |
- SHELL="${SHELL:-${EPREFIX}/bin/bash}" \ |
466 |
- emake V=1 -f client.mk configure |
467 |
- #./mach configure || die |
468 |
-} |
469 |
- |
470 |
-src_compile() { |
471 |
- MOZ_MAKE_FLAGS="${MAKEOPTS}" SHELL="${SHELL}" \ |
472 |
- emake V=1 -f client.mk |
473 |
- #./mach build --verbose || die |
474 |
- |
475 |
- mozlinguas_src_compile |
476 |
-} |
477 |
- |
478 |
-src_install() { |
479 |
- MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
480 |
- DICTPATH="\"${EPREFIX}/usr/share/myspell\"" |
481 |
- |
482 |
- local emid |
483 |
- cd "${BUILD_OBJ_DIR}" || die |
484 |
- |
485 |
- # Pax mark xpcshell for hardened support, only used for startupcache creation. |
486 |
- pax-mark m dist/bin/xpcshell |
487 |
- |
488 |
- # Copy our preference before omnijar is created. |
489 |
- sed "s|SEAMONKEY_PVR|${PVR}|" "${FILESDIR}"/all-gentoo-1.js > \ |
490 |
- dist/bin/defaults/pref/all-gentoo.js \ |
491 |
- || die |
492 |
- |
493 |
- # Set default path to search for dictionaries. |
494 |
- echo "pref(\"spellchecker.dictionary_path\", ${DICTPATH});" \ |
495 |
- >> dist/bin/defaults/pref/all-gentoo.js \ |
496 |
- || die |
497 |
- |
498 |
- echo 'pref("extensions.autoDisableScopes", 3);' >> \ |
499 |
- dist/bin/defaults/pref/all-gentoo.js \ |
500 |
- || die |
501 |
- |
502 |
- local plugin |
503 |
- if ! use gmp-autoupdate ; then |
504 |
- for plugin in "${GMP_PLUGIN_LIST[@]}" ; do |
505 |
- echo "pref(\"media.${plugin}.autoupdate\", false);" >> \ |
506 |
- dist/bin/defaults/pref/all-gentoo.js || die |
507 |
- done |
508 |
- fi |
509 |
- |
510 |
- MOZ_MAKE_FLAGS="${MAKEOPTS}" SHELL="${SHELL:-${EPREFIX}/bin/bash}" \ |
511 |
- emake DESTDIR="${D}" install |
512 |
- MOZ_P="${MY_MOZ_P}" mozlinguas_src_install |
513 |
- |
514 |
- cp "${FILESDIR}"/${PN}.desktop "${T}" || die |
515 |
- |
516 |
- sed 's|^\(MimeType=.*\)$|\1text/x-vcard;text/directory;application/mbox;message/rfc822;x-scheme-handler/mailto;|' \ |
517 |
- -i "${T}"/${PN}.desktop || die |
518 |
- sed 's|^\(Categories=.*\)$|\1Email;|' -i "${T}"/${PN}.desktop \ |
519 |
- || die |
520 |
- |
521 |
- # Install icon and .desktop for menu entry |
522 |
- newicon "${S}"/comm/suite/branding/${PN}/default64.png ${PN}.png |
523 |
- domenu "${T}"/${PN}.desktop |
524 |
- |
525 |
- # Required in order to use plugins and even run seamonkey on hardened. |
526 |
- pax-mark m "${ED}"/${MOZILLA_FIVE_HOME}/{seamonkey,seamonkey-bin,plugin-container} |
527 |
- |
528 |
- if use minimal ; then |
529 |
- rm -r "${ED}"/usr/include "${ED}/${MOZILLA_FIVE_HOME}"/{idl,include,lib,sdk} || die |
530 |
- fi |
531 |
- |
532 |
- if use chatzilla ; then |
533 |
- emid='{59c81df5-4b7a-477b-912d-4e0fdf64e5f2}' |
534 |
- |
535 |
- # remove the en_US-only xpi file so a version with all requested locales can be installed |
536 |
- if [[ -e "${ED}"/${MOZILLA_FIVE_HOME}/distribution/extensions/${emid}.xpi ]] ; then |
537 |
- rm -f "${ED}"/${MOZILLA_FIVE_HOME}/distribution/extensions/${emid}.xpi || die |
538 |
- fi |
539 |
- |
540 |
- # merge the extra locales into the main extension |
541 |
- mozlinguas_xpistage_langpacks dist/xpi-stage/chatzilla |
542 |
- |
543 |
- # install the merged extension |
544 |
- mkdir -p "${T}/${emid}" || die |
545 |
- cp -RLp -t "${T}/${emid}" dist/xpi-stage/chatzilla/* || die |
546 |
- insinto ${MOZILLA_FIVE_HOME}/distribution/extensions |
547 |
- doins -r "${T}/${emid}" |
548 |
- fi |
549 |
- |
550 |
- # Provide a place for plugins |
551 |
- keepdir "${MOZILLA_FIVE_HOME}/plugins" |
552 |
- |
553 |
- # revdep-rebuild entry |
554 |
- insinto /etc/revdep-rebuild |
555 |
- echo "SEARCH_DIRS_MASK=${MOZILLA_FIVE_HOME}*" >> ${T}/11${PN} |
556 |
- doins "${T}"/11${PN} |
557 |
- |
558 |
-} |
559 |
- |
560 |
-pkg_preinst() { |
561 |
- SEAMONKEY_PLUGINS_DIR="${ROOT}/usr/$(get_libdir)/${PN}/plugins" |
562 |
- |
563 |
- if [[ -L "${SEAMONKEY_PLUGINS_DIR}" ]] ; then |
564 |
- rm "${SEAMONKEY_PLUGINS_DIR}" || die |
565 |
- fi |
566 |
-} |
567 |
- |
568 |
-pkg_postinst() { |
569 |
- # Update mimedb for the new .desktop file |
570 |
- xdg_desktop_database_update |
571 |
- |
572 |
- if ! use gmp-autoupdate ; then |
573 |
- elog "USE='-gmp-autoupdate' has disabled the following plugins from updating or" |
574 |
- elog "installing into new profiles:" |
575 |
- local plugin |
576 |
- for plugin in "${GMP_PLUGIN_LIST[@]}"; do elog "\t ${plugin}" ; done |
577 |
- fi |
578 |
- |
579 |
- if use chatzilla ; then |
580 |
- elog "chatzilla is now an extension which can be en-/disabled and configured via" |
581 |
- elog "the Add-on manager." |
582 |
- fi |
583 |
-} |
584 |
- |
585 |
-pkg_postrm() { |
586 |
- xdg_desktop_database_update |
587 |
-} |