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