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