1 |
commit: 0c533a58b87c8de24685fe005def6eea89f4c5df |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 29 05:52:20 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 29 05:53:09 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c533a58 |
7 |
|
8 |
www-client/seamonkey: drop 2.53.8.1-r1, 2.53.9-r1 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/828479 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
www-client/seamonkey/Manifest | 6 - |
14 |
www-client/seamonkey/seamonkey-2.53.8.1-r1.ebuild | 556 --------------------- |
15 |
www-client/seamonkey/seamonkey-2.53.9-r1.ebuild | 557 ---------------------- |
16 |
3 files changed, 1119 deletions(-) |
17 |
|
18 |
diff --git a/www-client/seamonkey/Manifest b/www-client/seamonkey/Manifest |
19 |
index b6ef41e0a942..19330205cff7 100644 |
20 |
--- a/www-client/seamonkey/Manifest |
21 |
+++ b/www-client/seamonkey/Manifest |
22 |
@@ -3,12 +3,6 @@ DIST seamonkey-2.53.10.2.source-l10n.tar.xz 13616204 BLAKE2B 75e3efd51fa4628b385 |
23 |
DIST seamonkey-2.53.10.2.source.tar.xz 284350364 BLAKE2B 15ff60b5728b84c00831d4dccde7600648889d56ecbe034708390cd83d096f760157d84f5df266ede2d4388302b0df83684397c276e1a0f6d1dfe3e799265ca1 SHA512 59233c2bfc0cf3c9e290e1165fea4cd285cabb339f66dbad7bdbe0b7fd9b2acbc37c385b775d2a3d045d1a6648012488cc018eb3f879139c2a582e7d37e01d7a |
24 |
DIST seamonkey-2.53.3-system_libvpx-1.8.patch.gz 3197 BLAKE2B 7a84d2184f4812eabfe3626eb6b2364f2f8c0ba24d4e53440e9d38658b89a3f1c23bdcbd623fd9aca3bfd04743e582587e9c42ba3d983cc9ec4059ea9503830a SHA512 ffc6f179f07cb9dcce2924c64bfed84a5cc724d857b32e5e349967e72022536c5192c3966e1089bab8efd91671584d6474334730ebefe1c4398f564a5f1753be |
25 |
DIST seamonkey-2.53.3-system_libvpx-1.8.patch.xz 3128 BLAKE2B f73802d2715a11964a4b4d34b582a2999ab42cff9ed005c5ca8c002ae745a973fbb682c3e568f6727a7fe93dc2d7a5ba3367adc4e1d256b8ab0cf8d940fceb8a SHA512 80b87c260445af181d1a0d39de9f95ac7c93f76e12328c1799e8607f50ca9e2a20bc4f15de3f32efbbabb444fd5352612b2629fee61875fa0acd6d050df338a2 |
26 |
-DIST seamonkey-2.53.8.1-rust-1.45.0.patch.xz 12256 BLAKE2B b311b69ee11a5875beca421b45733e6cd9b0aaa7c00a51e4fdda3e6ecabdef70b683c119a63e404c5763b19b9c6720cc59c0e6033eb2b06b0e97e7f01a8b727d SHA512 1056602044c719da26cf54566ac058a84258c5639a9d717904e97e38323f69100fb5183464602147744fd657aaef322f7fd130773b85896a15c5466a8a3f1e2e |
27 |
-DIST seamonkey-2.53.8.1.source-l10n.tar.xz 13542220 BLAKE2B 8b043136595e481077e60cf202ae66d04ad30f089e842f6d4660807cdaf086b99c9252afccf8a6302558f4a1ce38e8e59f72ade6f72929335b0bf7bce72b4569 SHA512 047defbfac18f360ad089d90de3c0e139d3707dcfa74570fcfa1f2f1e789ca2930d08ee0c94f7d88cc79f4e162eda2d0073493656528e0f9b579f452fe13ad8f |
28 |
-DIST seamonkey-2.53.8.1.source.tar.xz 283254760 BLAKE2B b078e0333a992b5b6fc9b3966528cc8201ea2c3fddfff8584d3ae9fa5e4b3b7b8abd25dc85dc9fb5ce60b55efcc1692dc56490f520a3b486dca7e873689f0f26 SHA512 1e3eb8686b3b04bfc95f0229c71df7e6ffe085e3ba0bf043c6714789b08e701ede1e288c47df238fa3c5d5979efffe7a9b73b04a32a85f04259ce2c77937a366 |
29 |
-DIST seamonkey-2.53.8_beta1-patches-01.tar.xz 43208 BLAKE2B 947b8131810f3f9855e1e8ff45d841e05dde9dc8c1d1204b1a3d55a743c2c7f9b23b251460d6743ca760edc4609eb08c1df3b165acc56af95e5ecb3c871fec3a SHA512 8196be87112926de0becf272bf44c1ce5522579d4b66f93f455cc0e503c4c3bb96fba5ec48a73e0d53ad9683820cb167e677bbf2497fe266e93d154c8d4a7837 |
30 |
DIST seamonkey-2.53.9.1.source-l10n.tar.xz 13615680 BLAKE2B ce5baea8c004219af74d25671272b2a4104018e35f54adee46bacd8eadbc9c44a53c7ab8f6382402a16dd4353068e0e6144158d3ec874105a5c03ac89a15af7a SHA512 c0dd469a12a4acc7e84793a56615fa109e00c638ed71fe0b51b3125750ed115bf921dbc6e8a4b391bb5cfccd679cdcbdfe9b23e619590c0f22c62489566d459f |
31 |
DIST seamonkey-2.53.9.1.source.tar.xz 285481656 BLAKE2B c96107de40c83515fff49d4bf409a13f3a712daf19b466044d6eff244159ebe6d37b7dfc16e6dc0676be344378e9838f7c1d055064bc63ba36a92844e54bfd33 SHA512 67c0645a2b8c4ddafc148da80166d6cff9ceafbeee0683fc4099e69720c4bb725a4165643db37abf0a0545e170e30e811eb0ad198f5c7cd4196294624b86775f |
32 |
-DIST seamonkey-2.53.9.source-l10n.tar.xz 13615680 BLAKE2B ce5baea8c004219af74d25671272b2a4104018e35f54adee46bacd8eadbc9c44a53c7ab8f6382402a16dd4353068e0e6144158d3ec874105a5c03ac89a15af7a SHA512 c0dd469a12a4acc7e84793a56615fa109e00c638ed71fe0b51b3125750ed115bf921dbc6e8a4b391bb5cfccd679cdcbdfe9b23e619590c0f22c62489566d459f |
33 |
-DIST seamonkey-2.53.9.source.tar.xz 285118824 BLAKE2B 524e51ca00e36658787aa734dd775ef009ef6d4dfd6917f00ebc8d4ec4ecb72c61a50dc33c89fabe2e65e4b95086645db9e26ef12776574f47d3928a42af100b SHA512 17f7009f2b5a1f337c24f98e2bfac2b63498f6e5b5080cbfc1c541ee60fa07f5116b76b7f20f2fc4e000b8c38c4558c7c9ef10abbdfec52dd597bc25d5a952f4 |
34 |
DIST seamonkey-2.53.9_beta1-patches-01.tar.xz 43328 BLAKE2B 66869b0ebb3259da19148473311b00cb2b2ca762f6ae7003b5374c51f53e6d58fecdf00084d9c43c62023b14666b08efa6138fb28642cc11272851d799f8d0ad SHA512 38b8759da9230d745ab5c8cf1f3964762893e88174f20f3a0458a3196297845fb0876bdb330fac21a24a2661c2b319c8bfb0a7d6e8e47048ced1955500291638 |
35 |
|
36 |
diff --git a/www-client/seamonkey/seamonkey-2.53.8.1-r1.ebuild b/www-client/seamonkey/seamonkey-2.53.8.1-r1.ebuild |
37 |
deleted file mode 100644 |
38 |
index 2c668bd949c8..000000000000 |
39 |
--- a/www-client/seamonkey/seamonkey-2.53.8.1-r1.ebuild |
40 |
+++ /dev/null |
41 |
@@ -1,556 +0,0 @@ |
42 |
-# Copyright 1999-2022 Gentoo Authors |
43 |
-# Distributed under the terms of the GNU General Public License v2 |
44 |
- |
45 |
-EAPI=7 |
46 |
- |
47 |
-WANT_AUTOCONF="2.1" |
48 |
- |
49 |
-PYTHON_COMPAT=( python3_{7..9} ) |
50 |
-PYTHON_REQ_USE='ncurses,sqlite,ssl,threads(+)' |
51 |
- |
52 |
-# This list can be updated with scripts/get_langs.sh from the mozilla overlay |
53 |
-# note - could not roll langpacks for: ca fi |
54 |
-#MOZ_LANGS=(ca cs de en-GB es-AR es-ES fi fr gl hu it ja lt nb-NO nl pl pt-PT |
55 |
-# ru sk sv-SE tr uk zh-CN zh-TW) |
56 |
-MOZ_LANGS=(cs de en-GB es-AR es-ES fr hu it ja lt nl pl pt-PT |
57 |
- ru sk sv-SE zh-CN zh-TW) |
58 |
- |
59 |
-MOZ_PV="${PV/_pre*}" |
60 |
-MOZ_PV="${MOZ_PV/_alpha/a}" |
61 |
-MOZ_PV="${MOZ_PV/_beta/b}" |
62 |
-MOZ_PV="${MOZ_PV/_rc/rc}" |
63 |
-MOZ_P="${P}" |
64 |
-MY_MOZ_P="${PN}-${MOZ_PV}" |
65 |
- |
66 |
-if [[ ${PV} == *_pre* ]] ; then |
67 |
- MOZ_HTTP_URI="https://archive.mozilla.org/pub/${PN}/candidates/${MOZ_PV}-candidates/build${PV##*_pre}" |
68 |
-else |
69 |
- MOZ_HTTP_URI="https://archive.mozilla.org/pub/${PN}/releases/${MOZ_PV}" |
70 |
-fi |
71 |
- |
72 |
-SRC_URI="${MOZ_HTTP_URI}/source/${MY_MOZ_P}.source.tar.xz -> ${P}.source.tar.xz |
73 |
- ${MOZ_HTTP_URI}/source/${MY_MOZ_P}.source-l10n.tar.xz -> ${P}.source-l10n.tar.xz" |
74 |
-S="${WORKDIR}/${MY_MOZ_P}" |
75 |
- |
76 |
-MOZ_GENERATE_LANGPACKS=1 |
77 |
-MOZ_L10N_SOURCEDIR="${S}/${P}-l10n" |
78 |
-inherit autotools check-reqs desktop flag-o-matic mozcoreconf-v6 mozextension mozlinguas-v2 pax-utils toolchain-funcs xdg-utils |
79 |
- |
80 |
-DESCRIPTION="Seamonkey Web Browser" |
81 |
-HOMEPAGE="https://www.seamonkey-project.org/" |
82 |
- |
83 |
-PATCH="${PN}-2.53.8_beta1-patches-01" |
84 |
-SRC_URI+=" |
85 |
- https://dev.gentoo.org/~polynomial-c/mozilla/patchsets/${PATCH}.tar.xz |
86 |
- https://dev.gentoo.org/~polynomial-c/mozilla/${PN}-2.53.8.1-rust-1.45.0.patch.xz |
87 |
- system-libvpx? ( https://dev.gentoo.org/~polynomial-c/mozilla/${PN}-2.53.3-system_libvpx-1.8.patch.xz ) |
88 |
- |
89 |
-" |
90 |
- |
91 |
-LICENSE="MPL-2.0 GPL-2 LGPL-2.1" |
92 |
-SLOT="0" |
93 |
-SYSTEM_IUSE=( +system-{av1,harfbuzz,icu,jpeg,libevent,libvpx,png,sqlite} ) |
94 |
-IUSE="+chatzilla cpu_flags_arm_neon +crypt dbus debug +gmp-autoupdate +ipc jack |
95 |
-lto pulseaudio +roaming selinux startup-notification test wifi" |
96 |
-IUSE+=" ${SYSTEM_IUSE[@]}" |
97 |
-KEYWORDS="amd64 ~ppc64 x86" |
98 |
- |
99 |
-RESTRICT="!test? ( test )" |
100 |
- |
101 |
-ASM_DEPEND=">=dev-lang/yasm-1.1" |
102 |
- |
103 |
-BDEPEND=" |
104 |
- app-arch/unzip |
105 |
- app-arch/zip |
106 |
- >=dev-lang/nasm-2.13 |
107 |
- dev-lang/perl |
108 |
- >=sys-devel/binutils-2.16.1 |
109 |
- virtual/pkgconfig |
110 |
- <virtual/rust-1.56.0 |
111 |
- amd64? ( ${ASM_DEPEND} ) |
112 |
- lto? ( sys-devel/binutils[gold] ) |
113 |
- x86? ( ${ASM_DEPEND} ) |
114 |
-" |
115 |
-COMMON_DEPEND=" |
116 |
- >=app-text/hunspell-1.5.4:= |
117 |
- dev-libs/atk |
118 |
- >=dev-libs/glib-2.26:2 |
119 |
- >=dev-libs/libffi-3.0.10:= |
120 |
- >=dev-libs/nspr-4.23 |
121 |
- >=dev-libs/nss-3.47.1 |
122 |
- media-libs/fontconfig |
123 |
- >=media-libs/freetype-2.4.10 |
124 |
- >=media-libs/mesa-10.2:= |
125 |
- >=sys-libs/zlib-1.2.3 |
126 |
- >=x11-libs/cairo-1.10[X] |
127 |
- x11-libs/gdk-pixbuf |
128 |
- >=x11-libs/gtk+-2.18:2 |
129 |
- >=x11-libs/gtk+-3.4.0:3 |
130 |
- x11-libs/libX11 |
131 |
- x11-libs/libXcomposite |
132 |
- x11-libs/libXdamage |
133 |
- x11-libs/libXext |
134 |
- x11-libs/libXfixes |
135 |
- x11-libs/libXrender |
136 |
- x11-libs/libXt |
137 |
- >=x11-libs/pango-1.22.0 |
138 |
- >=x11-libs/pixman-0.19.2 |
139 |
- media-video/ffmpeg |
140 |
- virtual/freedesktop-icon-theme |
141 |
- dbus? ( |
142 |
- >=dev-libs/dbus-glib-0.72 |
143 |
- >=sys-apps/dbus-0.60 |
144 |
- ) |
145 |
- jack? ( virtual/jack ) |
146 |
- crypt? ( <x11-plugins/enigmail-2.1.0 ) |
147 |
- kernel_linux? ( !pulseaudio? ( media-libs/alsa-lib ) ) |
148 |
- pulseaudio? ( || ( |
149 |
- media-sound/pulseaudio |
150 |
- >=media-sound/apulse-0.1.9 |
151 |
- ) ) |
152 |
- startup-notification? ( >=x11-libs/startup-notification-0.8 ) |
153 |
- system-av1? ( |
154 |
- >=media-libs/dav1d-0.3.0:= |
155 |
- >=media-libs/libaom-1.0.0:= |
156 |
- ) |
157 |
- system-harfbuzz? ( |
158 |
- >=media-gfx/graphite2-1.3.9-r1 |
159 |
- >=media-libs/harfbuzz-1.3.3:0= |
160 |
- ) |
161 |
- system-icu? ( >=dev-libs/icu-59.1:= ) |
162 |
- system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1 ) |
163 |
- system-libevent? ( >=dev-libs/libevent-2.0:0= ) |
164 |
- system-libvpx? ( >=media-libs/libvpx-1.8.0:0=[postproc] ) |
165 |
- system-png? ( >=media-libs/libpng-1.6.31:0=[apng] ) |
166 |
- system-sqlite? ( >=dev-db/sqlite-3.31.0:3[secure-delete,debug=] ) |
167 |
- wifi? ( |
168 |
- kernel_linux? ( |
169 |
- >=dev-libs/dbus-glib-0.72 |
170 |
- net-misc/networkmanager |
171 |
- >=sys-apps/dbus-0.60 |
172 |
- ) |
173 |
- ) |
174 |
-" |
175 |
-RDEPEND="${COMMON_DEPEND} |
176 |
- selinux? ( sec-policy/selinux-mozilla ) |
177 |
-" |
178 |
-DEPEND="${COMMON_DEPEND} |
179 |
- amd64? ( virtual/opengl ) |
180 |
- x86? ( virtual/opengl ) |
181 |
-" |
182 |
- |
183 |
-# allow GMP_PLUGIN_LIST to be set in an eclass or |
184 |
-# overridden in the enviromnent (advanced hackers only) |
185 |
-[[ -z ${GMP_PLUGIN_LIST} ]] && GMP_PLUGIN_LIST=( gmp-gmpopenh264 gmp-widevinecdm ) |
186 |
- |
187 |
-BUILD_OBJ_DIR="${S}/seamonk" |
188 |
- |
189 |
-pkg_setup() { |
190 |
- if [[ ${PV} == *_beta* ]] || [[ ${PV} == *_pre* ]] ; then |
191 |
- ewarn "You're using an unofficial release of ${PN}. Don't file any bug in" |
192 |
- ewarn "Gentoo's Bugtracker against this package in case it breaks for you." |
193 |
- ewarn "Those belong to upstream: https://bugzilla.mozilla.org" |
194 |
- fi |
195 |
- |
196 |
- moz_pkgsetup |
197 |
-} |
198 |
- |
199 |
-pkg_pretend() { |
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 |
-spkg_setup() { |
210 |
- # Ensure we have enough disk space to compile |
211 |
- if use debug || use lto || use test ; then |
212 |
- CHECKREQS_DISK_BUILD="16G" |
213 |
- else |
214 |
- CHECKREQS_DISK_BUILD="12G" |
215 |
- fi |
216 |
- check-reqs_pkg_setup |
217 |
-} |
218 |
- |
219 |
-src_unpack() { |
220 |
- local l10n_sources="${P}.source-l10n.tar.xz" |
221 |
- unpack ${A/ ${l10n_sources}} |
222 |
- |
223 |
- mkdir "${S}/${P}-l10n" || die |
224 |
- cd "${S}/${P}-l10n" || die |
225 |
- unpack ${l10n_sources} |
226 |
-} |
227 |
- |
228 |
-src_prepare() { |
229 |
- # Apply our patches |
230 |
- eapply "${WORKDIR}"/mozilla |
231 |
- |
232 |
- # https://bugzilla.mozilla.org/show_bug.cgi?id=1623054 |
233 |
- eapply "${FILESDIR}/${PN}-2.53.7-ownertab.patch" |
234 |
- |
235 |
- # Shell scripts sometimes contain DOS line endings; bug 391889 |
236 |
- grep -rlZ --include="*.sh" $'\r$' . | |
237 |
- while read -r -d $'\0' file ; do |
238 |
- einfo edos2unix "${file}" |
239 |
- edos2unix "${file}" |
240 |
- done |
241 |
- |
242 |
- use system-libvpx \ |
243 |
- && eapply -p2 "${WORKDIR}/${PN}-2.53.3-system_libvpx-1.8.patch" |
244 |
- eapply "${WORKDIR}"/${PN}-2.53.8.1-rust-1.45.0.patch |
245 |
- |
246 |
- # Allow user to apply any additional patches without modifing ebuild |
247 |
- eapply_user |
248 |
- |
249 |
- # Don't error for format with gcc-9 |
250 |
- grep -rl -- '-Werror=format' | xargs sed -i 's/error=format/no-&/' || die |
251 |
- |
252 |
- # Enable gnomebreakpad |
253 |
- if use debug ; then |
254 |
- sed -i -e "s:GNOME_DISABLE_CRASH_DIALOG=1:GNOME_DISABLE_CRASH_DIALOG=0:g" \ |
255 |
- build/unix/run-mozilla.sh || die |
256 |
- fi |
257 |
- |
258 |
- # Ensure that are plugins dir is enabled as default |
259 |
- sed -i -e "s:/usr/$(get_libdir)/mozilla/plugins:/usr/$(get_libdir)/${PN}/plugins:" \ |
260 |
- xpcom/io/nsAppFileLocationProvider.cpp || die |
261 |
- |
262 |
- # Don't exit with error when some libs are missing which we have in |
263 |
- # system. |
264 |
- sed '/^MOZ_PKG_FATAL_WARNINGS/s@= 1@= 0@' \ |
265 |
- -i comm/suite/installer/Makefile.in || die |
266 |
- # Don't error out when there's no files to be removed: |
267 |
- sed 's@\(xargs rm\)$@\1 -f@' \ |
268 |
- -i toolkit/mozapps/installer/packager.mk || die |
269 |
- |
270 |
- # Don't build libs-% locale files for chatzilla if we are not building chatzilla |
271 |
- # (this is hard-coded in the build system at present rather than being based on configuration) |
272 |
- if ! use chatzilla ; then |
273 |
- sed '/extensions\/irc\/locales libs-/s@^@#@' \ |
274 |
- -i comm/suite/locales/Makefile.in || die |
275 |
- fi |
276 |
- |
277 |
- eautoreconf old-configure.in |
278 |
- cd js/src || die |
279 |
- eautoconf old-configure.in |
280 |
-} |
281 |
- |
282 |
-src_configure() { |
283 |
- MEXTENSIONS="default" |
284 |
- # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys) |
285 |
- # Note: These are for Gentoo Linux use ONLY. For your own distribution, please |
286 |
- # get your own set of keys. |
287 |
- _google_api_key=AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc |
288 |
- |
289 |
- ###################################### |
290 |
- # |
291 |
- # mozconfig, CFLAGS and CXXFLAGS setup |
292 |
- # |
293 |
- ###################################### |
294 |
- |
295 |
- mozconfig_init |
296 |
- |
297 |
- ################################## |
298 |
- # Former mozconfig_config() part # |
299 |
- ################################## |
300 |
- |
301 |
- # Migrated from mozcoreconf-2 |
302 |
- mozconfig_annotate 'system_libs' --with-system-bz2 |
303 |
- mozconfig_annotate 'system_libs' --with-system-zlib |
304 |
- |
305 |
- # Disable for testing purposes only |
306 |
- mozconfig_annotate 'Upstream bug 1341234' --disable-stylo |
307 |
- |
308 |
- # Must pass release in order to properly select linker via gold useflag |
309 |
- mozconfig_annotate 'Enable by Gentoo' --enable-release |
310 |
- |
311 |
- # Must pass --enable-gold if using ld.gold |
312 |
- if tc-ld-is-gold ; then |
313 |
- mozconfig_annotate 'tc-ld-is-gold=true' --enable-gold |
314 |
- else |
315 |
- mozconfig_annotate 'tc-ld-is-gold=false' --disable-gold |
316 |
- fi |
317 |
- |
318 |
- # Enable position independent executables |
319 |
- mozconfig_annotate 'enabled by Gentoo' --enable-pie |
320 |
- |
321 |
- mozconfig_use_enable debug |
322 |
- mozconfig_use_enable debug tests |
323 |
- if ! use debug ; then |
324 |
- mozconfig_annotate 'disabled by Gentoo' --disable-debug-symbols |
325 |
- else |
326 |
- mozconfig_annotate 'enabled by Gentoo' --enable-debug-symbols |
327 |
- fi |
328 |
- |
329 |
- mozconfig_use_enable startup-notification |
330 |
- |
331 |
- # wifi pulls in dbus so manage both here |
332 |
- mozconfig_use_enable wifi necko-wifi |
333 |
- if use kernel_linux && use wifi && ! use dbus ; then |
334 |
- echo "Enabling dbus support due to wifi request" |
335 |
- mozconfig_annotate 'dbus required by necko-wifi on linux' --enable-dbus |
336 |
- else |
337 |
- mozconfig_use_enable dbus |
338 |
- mozconfig_annotate 'disabled' --disable-necko-wifi |
339 |
- fi |
340 |
- |
341 |
- # These are enabled by default in all mozilla applications |
342 |
- mozconfig_annotate '' --with-system-nspr --with-nspr-prefix="${SYSROOT}${EPREFIX}"/usr |
343 |
- mozconfig_annotate '' --with-system-nss --with-nss-prefix="${SYSROOT}${EPREFIX}"/usr |
344 |
- mozconfig_annotate '' --x-includes="${SYSROOT}${EPREFIX}"/usr/include --x-libraries="${SYSROOT}${EPREFIX}"/usr/$(get_libdir) |
345 |
- if use system-libevent ; then |
346 |
- mozconfig_annotate '' --with-system-libevent="${SYSROOT}${EPREFIX}"/usr |
347 |
- fi |
348 |
- mozconfig_annotate '' --prefix="${EPREFIX}"/usr |
349 |
- mozconfig_annotate '' --libdir="${EPREFIX}"/usr/$(get_libdir) |
350 |
- mozconfig_annotate 'Gentoo default' --enable-system-hunspell |
351 |
- mozconfig_annotate '' --disable-crashreporter |
352 |
- mozconfig_annotate '' --enable-system-ffi |
353 |
- mozconfig_annotate '' --disable-gconf |
354 |
- mozconfig_annotate '' --with-intl-api |
355 |
- |
356 |
- # skia has no support for big-endian platforms |
357 |
- if [[ $(tc-endian) == "big" ]] ; then |
358 |
- mozconfig_annotate 'big endian target' --disable-skia |
359 |
- else |
360 |
- mozconfig_annotate '' --enable-skia |
361 |
- fi |
362 |
- |
363 |
- # default toolkit is cairo-gtk3, optional use flags can change this |
364 |
- mozconfig_annotate '' --enable-default-toolkit=cairo-gtk3 |
365 |
- |
366 |
- # Instead of the standard --build= and --host=, mozilla uses --host instead |
367 |
- # of --build, and --target intstead of --host. |
368 |
- # Note, mozilla also has --build but it does not do what you think it does. |
369 |
- # Set both --target and --host as mozilla uses python to guess values otherwise |
370 |
- mozconfig_annotate '' --target="${CHOST}" |
371 |
- mozconfig_annotate '' --host="${CBUILD:-${CHOST}}" |
372 |
- |
373 |
- mozconfig_use_enable pulseaudio |
374 |
- # force the deprecated alsa sound code if pulseaudio is disabled |
375 |
- if use kernel_linux && ! use pulseaudio ; then |
376 |
- mozconfig_annotate '-pulseaudio' --enable-alsa |
377 |
- fi |
378 |
- |
379 |
- # For testing purpose only |
380 |
- mozconfig_annotate 'Sandbox' --enable-content-sandbox |
381 |
- |
382 |
- mozconfig_use_enable system-sqlite |
383 |
- mozconfig_use_with system-jpeg |
384 |
- mozconfig_use_with system-icu |
385 |
- mozconfig_use_with system-libvpx |
386 |
- mozconfig_use_with system-png |
387 |
- mozconfig_use_with system-harfbuzz |
388 |
- mozconfig_use_with system-harfbuzz system-graphite2 |
389 |
- mozconfig_use_with system-av1 |
390 |
- |
391 |
- # Modifications to better support ARM, bug 553364 |
392 |
- if use cpu_flags_arm_neon ; then |
393 |
- mozconfig_annotate '' --with-fpu=neon |
394 |
- mozconfig_annotate '' --with-thumb=yes |
395 |
- mozconfig_annotate '' --with-thumb-interwork=no |
396 |
- fi |
397 |
- if [[ ${CHOST} == armv* ]] ; then |
398 |
- mozconfig_annotate '' --with-float-abi=hard |
399 |
- if ! use system-libvpx ; then |
400 |
- sed -i -e "s|softfp|hard|" media/libvpx/moz.build || die |
401 |
- fi |
402 |
- fi |
403 |
- |
404 |
- if use lto ; then |
405 |
- # Linking only works when using ld.gold when LTO is enabled |
406 |
- mozconfig_annotate "forcing ld=gold due to USE=lto" --enable-linker=gold |
407 |
- # ThinLTO is currently broken, see bmo#1644409 |
408 |
- mozconfig_annotate '+lto' --enable-lto=full |
409 |
- else |
410 |
- if tc-ld-is-gold ; then |
411 |
- mozconfig_annotate "linker is set to gold" --enable-linker=gold |
412 |
- else |
413 |
- mozconfig_annotate "linker is set to bfd" --enable-linker=bfd |
414 |
- fi |
415 |
- fi |
416 |
- # LTO flag was handled via configure |
417 |
- filter-flags '-flto*' |
418 |
- |
419 |
- ################################## |
420 |
- # Former mozconfig_config() end # |
421 |
- ################################## |
422 |
- |
423 |
- # enable JACK, bug 600002 |
424 |
- mozconfig_use_enable jack |
425 |
- |
426 |
- # It doesn't compile on alpha without this LDFLAGS |
427 |
- use alpha && append-ldflags "-Wl,--no-relax" |
428 |
- |
429 |
- # Linking fails without this due to memory exhaustion |
430 |
- use x86 && append-ldflags "-Wl,--no-keep-memory" |
431 |
- |
432 |
- if ! use roaming ; then |
433 |
- MEXTENSIONS+=",-sroaming" |
434 |
- fi |
435 |
- |
436 |
- # Setup api key for location services |
437 |
- printf '%s' "${_google_api_key}" > "${S}"/google-api-key |
438 |
- mozconfig_annotate '' --with-google-location-service-api-keyfile="${S}/google-api-key" |
439 |
- mozconfig_annotate '' --with-google-safebrowsing-api-keyfile="${S}/google-api-key" |
440 |
- |
441 |
- mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}" |
442 |
- mozconfig_use_enable chatzilla irc |
443 |
- mozconfig_annotate '' --enable-dominspector |
444 |
- |
445 |
- # use startup-cache for faster startup time |
446 |
- mozconfig_annotate '' --enable-startupcache |
447 |
- |
448 |
- # Use an objdir to keep things organized. |
449 |
- echo "mk_add_options MOZ_OBJDIR=${BUILD_OBJ_DIR}" >> "${S}"/.mozconfig |
450 |
- echo "mk_add_options XARGS=/usr/bin/xargs" >> "${S}"/.mozconfig |
451 |
- |
452 |
- mozlinguas_mozconfig |
453 |
- |
454 |
- # Finalize and report settings |
455 |
- mozconfig_final |
456 |
- |
457 |
- # Work around breakage in makeopts with --no-print-directory |
458 |
- MAKEOPTS="${MAKEOPTS/--no-print-directory/}" |
459 |
- |
460 |
- if [[ $(gcc-major-version) -lt 4 ]] ; then |
461 |
- append-cxxflags -fno-stack-protector |
462 |
- elif [[ $(gcc-major-version) -gt 4 || $(gcc-minor-version) -gt 3 ]] ; then |
463 |
- if use amd64 || use x86 ; then |
464 |
- append-flags -mno-avx |
465 |
- fi |
466 |
- fi |
467 |
- |
468 |
- # Pass $MAKEOPTS to build system |
469 |
- export MOZ_MAKE_FLAGS="${MAKEOPTS}" |
470 |
- # Use system's Python environment |
471 |
- export MACH_USE_SYSTEM_PYTHON=1 |
472 |
- # Disable notification when build system has finished |
473 |
- export MOZ_NOSPAM=1 |
474 |
- |
475 |
- # workaround for funky/broken upstream configure... |
476 |
- export SHELL="${SHELL:-${EPREFIX}/bin/bash}" |
477 |
- #emake V=1 -f client.mk configure |
478 |
- ./mach configure || die |
479 |
-} |
480 |
- |
481 |
-src_compile() { |
482 |
- #MOZ_MAKE_FLAGS="${MAKEOPTS}" SHELL="${SHELL}" \ |
483 |
- #emake V=1 -f client.mk |
484 |
- ./mach build --verbose || die |
485 |
- |
486 |
- mozlinguas_src_compile |
487 |
-} |
488 |
- |
489 |
-src_install() { |
490 |
- MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
491 |
- DICTPATH="\"${EPREFIX}/usr/share/myspell\"" |
492 |
- |
493 |
- local emid |
494 |
- pushd "${BUILD_OBJ_DIR}" &>/dev/null || die |
495 |
- |
496 |
- # Pax mark xpcshell for hardened support, only used for startupcache creation. |
497 |
- pax-mark m dist/bin/xpcshell |
498 |
- |
499 |
- # Copy our preference before omnijar is created. |
500 |
- sed "s|SEAMONKEY_PVR|${PVR}|" "${FILESDIR}"/all-gentoo-1.js > \ |
501 |
- dist/bin/defaults/pref/all-gentoo.js \ |
502 |
- || die |
503 |
- |
504 |
- # Set default path to search for dictionaries. |
505 |
- echo "pref(\"spellchecker.dictionary_path\", ${DICTPATH});" \ |
506 |
- >> dist/bin/defaults/pref/all-gentoo.js \ |
507 |
- || die |
508 |
- |
509 |
- echo 'pref("extensions.autoDisableScopes", 3);' >> \ |
510 |
- dist/bin/defaults/pref/all-gentoo.js \ |
511 |
- || die |
512 |
- |
513 |
- local plugin |
514 |
- if ! use gmp-autoupdate ; then |
515 |
- for plugin in "${GMP_PLUGIN_LIST[@]}" ; do |
516 |
- echo "pref(\"media.${plugin}.autoupdate\", false);" >> \ |
517 |
- dist/bin/defaults/pref/all-gentoo.js || die |
518 |
- done |
519 |
- fi |
520 |
- |
521 |
- popd &>/dev/null || die |
522 |
- |
523 |
- #MOZ_MAKE_FLAGS="${MAKEOPTS}" SHELL="${SHELL:-${EPREFIX}/bin/bash}" \ |
524 |
- #emake DESTDIR="${D}" install |
525 |
- DESTDIR="${D}" ./mach install || die |
526 |
- MOZ_P="${MY_MOZ_P}" mozlinguas_src_install |
527 |
- |
528 |
- cp "${FILESDIR}"/${PN}.desktop "${T}" || die |
529 |
- |
530 |
- sed 's|^\(MimeType=.*\)$|\1text/x-vcard;text/directory;application/mbox;message/rfc822;x-scheme-handler/mailto;|' \ |
531 |
- -i "${T}"/${PN}.desktop || die |
532 |
- sed 's|^\(Categories=.*\)$|\1Email;|' -i "${T}"/${PN}.desktop \ |
533 |
- || die |
534 |
- |
535 |
- # Install icon and .desktop for menu entry |
536 |
- newicon "${S}"/comm/suite/branding/${PN}/default64.png ${PN}.png |
537 |
- domenu "${T}"/${PN}.desktop |
538 |
- |
539 |
- # Required in order to use plugins and even run seamonkey on hardened. |
540 |
- pax-mark m "${ED}"/${MOZILLA_FIVE_HOME}/{seamonkey,seamonkey-bin,plugin-container} |
541 |
- |
542 |
- if use chatzilla ; then |
543 |
- emid='{59c81df5-4b7a-477b-912d-4e0fdf64e5f2}' |
544 |
- |
545 |
- # remove the en_US-only xpi file so a version with all requested locales can be installed |
546 |
- if [[ -e "${ED}"/${MOZILLA_FIVE_HOME}/extensions/${emid}.xpi ]] ; then |
547 |
- rm -f "${ED}"/${MOZILLA_FIVE_HOME}/extensions/${emid}.xpi || die |
548 |
- fi |
549 |
- |
550 |
- # merge the extra locales into the main extension |
551 |
- mozlinguas_xpistage_langpacks dist/xpi-stage/chatzilla |
552 |
- |
553 |
- # install the merged extension |
554 |
- mkdir -p "${T}/${emid}" || die |
555 |
- cp -RLp -t "${T}/${emid}" dist/xpi-stage/chatzilla/* || die |
556 |
- insinto ${MOZILLA_FIVE_HOME}/extensions |
557 |
- doins -r "${T}/${emid}" |
558 |
- fi |
559 |
- |
560 |
- # Provide a place for plugins |
561 |
- keepdir "${MOZILLA_FIVE_HOME}/plugins" |
562 |
- |
563 |
- # revdep-rebuild entry |
564 |
- insinto /etc/revdep-rebuild |
565 |
- echo "SEARCH_DIRS_MASK=${MOZILLA_FIVE_HOME}*" >> ${T}/11${PN} |
566 |
- doins "${T}"/11${PN} |
567 |
- |
568 |
-} |
569 |
- |
570 |
-pkg_preinst() { |
571 |
- SEAMONKEY_PLUGINS_DIR="${ROOT}/usr/$(get_libdir)/${PN}/plugins" |
572 |
- |
573 |
- if [[ -L "${SEAMONKEY_PLUGINS_DIR}" ]] ; then |
574 |
- rm "${SEAMONKEY_PLUGINS_DIR}" || die |
575 |
- fi |
576 |
-} |
577 |
- |
578 |
-pkg_postinst() { |
579 |
- # Update mimedb for the new .desktop file |
580 |
- xdg_desktop_database_update |
581 |
- |
582 |
- if ! use gmp-autoupdate ; then |
583 |
- elog "USE='-gmp-autoupdate' has disabled the following plugins from updating or" |
584 |
- elog "installing into new profiles:" |
585 |
- local plugin |
586 |
- for plugin in "${GMP_PLUGIN_LIST[@]}"; do elog "\t ${plugin}" ; done |
587 |
- fi |
588 |
- |
589 |
- if use chatzilla ; then |
590 |
- elog "chatzilla is now an extension which can be en-/disabled and configured via" |
591 |
- elog "the Add-on manager." |
592 |
- fi |
593 |
-} |
594 |
- |
595 |
-pkg_postrm() { |
596 |
- xdg_desktop_database_update |
597 |
-} |
598 |
|
599 |
diff --git a/www-client/seamonkey/seamonkey-2.53.9-r1.ebuild b/www-client/seamonkey/seamonkey-2.53.9-r1.ebuild |
600 |
deleted file mode 100644 |
601 |
index 2f6721842fdf..000000000000 |
602 |
--- a/www-client/seamonkey/seamonkey-2.53.9-r1.ebuild |
603 |
+++ /dev/null |
604 |
@@ -1,557 +0,0 @@ |
605 |
-# Copyright 1999-2022 Gentoo Authors |
606 |
-# Distributed under the terms of the GNU General Public License v2 |
607 |
- |
608 |
-EAPI=7 |
609 |
- |
610 |
-WANT_AUTOCONF="2.1" |
611 |
- |
612 |
-PYTHON_COMPAT=( python3_{7..9} ) |
613 |
-PYTHON_REQ_USE='ncurses,sqlite,ssl,threads(+)' |
614 |
- |
615 |
-# This list can be updated with scripts/get_langs.sh from the mozilla overlay |
616 |
-# note - could not roll langpacks for: ca fi |
617 |
-#MOZ_LANGS=(ca cs de en-GB es-AR es-ES fi fr gl hu it ja lt nb-NO nl pl pt-PT |
618 |
-# ru sk sv-SE tr uk zh-CN zh-TW) |
619 |
-MOZ_LANGS=(cs de en-GB es-AR es-ES fr hu it ja lt nl pl pt-PT |
620 |
- ru sk sv-SE zh-CN zh-TW) |
621 |
- |
622 |
-MOZ_PV="${PV/_pre*}" |
623 |
-MOZ_PV="${MOZ_PV/_alpha/a}" |
624 |
-MOZ_PV="${MOZ_PV/_beta/b}" |
625 |
-MOZ_PV="${MOZ_PV/_rc/rc}" |
626 |
-MOZ_P="${P}" |
627 |
-MY_MOZ_P="${PN}-${MOZ_PV}" |
628 |
- |
629 |
-if [[ ${PV} == *_pre* ]] ; then |
630 |
- MOZ_HTTP_URI="https://archive.mozilla.org/pub/${PN}/candidates/${MOZ_PV}-candidates/build${PV##*_pre}" |
631 |
-else |
632 |
- MOZ_HTTP_URI="https://archive.mozilla.org/pub/${PN}/releases/${MOZ_PV}" |
633 |
-fi |
634 |
- |
635 |
-SRC_URI="${MOZ_HTTP_URI}/source/${MY_MOZ_P}.source.tar.xz -> ${P}.source.tar.xz |
636 |
- ${MOZ_HTTP_URI}/source/${MY_MOZ_P}.source-l10n.tar.xz -> ${P}.source-l10n.tar.xz" |
637 |
-S="${WORKDIR}/${MY_MOZ_P}" |
638 |
- |
639 |
-MOZ_GENERATE_LANGPACKS=1 |
640 |
-MOZ_L10N_SOURCEDIR="${S}/${P}-l10n" |
641 |
-inherit autotools check-reqs desktop flag-o-matic mozcoreconf-v6 mozextension mozlinguas-v2 pax-utils toolchain-funcs xdg-utils |
642 |
- |
643 |
-DESCRIPTION="Seamonkey Web Browser" |
644 |
-HOMEPAGE="https://www.seamonkey-project.org/" |
645 |
- |
646 |
-PATCH="${PN}-2.53.9_beta1-patches-01" |
647 |
-SRC_URI+=" |
648 |
- https://dev.gentoo.org/~polynomial-c/mozilla/patchsets/${PATCH}.tar.xz |
649 |
- system-libvpx? ( https://dev.gentoo.org/~polynomial-c/mozilla/${PN}-2.53.3-system_libvpx-1.8.patch.xz ) |
650 |
- |
651 |
-" |
652 |
- |
653 |
-LICENSE="MPL-2.0 GPL-2 LGPL-2.1" |
654 |
-SLOT="0" |
655 |
-SYSTEM_IUSE=( +system-{av1,harfbuzz,icu,jpeg,libevent,libvpx,png,sqlite} ) |
656 |
-IUSE="+chatzilla cpu_flags_arm_neon +crypt dbus debug +gmp-autoupdate +ipc jack |
657 |
-lto pulseaudio +roaming selinux startup-notification test wifi" |
658 |
-IUSE+=" ${SYSTEM_IUSE[@]}" |
659 |
-KEYWORDS="~amd64 ~ppc64 ~x86" |
660 |
- |
661 |
-RESTRICT="!test? ( test )" |
662 |
- |
663 |
-ASM_DEPEND=">=dev-lang/yasm-1.1" |
664 |
- |
665 |
-BDEPEND=" |
666 |
- app-arch/unzip |
667 |
- app-arch/zip |
668 |
- >=dev-lang/nasm-2.13 |
669 |
- dev-lang/perl |
670 |
- >=sys-devel/binutils-2.16.1 |
671 |
- virtual/pkgconfig |
672 |
- <virtual/rust-1.56.0 |
673 |
- amd64? ( ${ASM_DEPEND} ) |
674 |
- lto? ( sys-devel/binutils[gold] ) |
675 |
- x86? ( ${ASM_DEPEND} ) |
676 |
-" |
677 |
-COMMON_DEPEND=" |
678 |
- >=app-text/hunspell-1.5.4:= |
679 |
- dev-libs/atk |
680 |
- >=dev-libs/glib-2.26:2 |
681 |
- >=dev-libs/libffi-3.0.10:= |
682 |
- >=dev-libs/nspr-4.23 |
683 |
- >=dev-libs/nss-3.47.1 |
684 |
- media-libs/fontconfig |
685 |
- >=media-libs/freetype-2.4.10 |
686 |
- >=media-libs/mesa-10.2:= |
687 |
- >=sys-libs/zlib-1.2.3 |
688 |
- >=x11-libs/cairo-1.10[X] |
689 |
- x11-libs/gdk-pixbuf |
690 |
- >=x11-libs/gtk+-2.18:2 |
691 |
- >=x11-libs/gtk+-3.4.0:3 |
692 |
- x11-libs/libX11 |
693 |
- x11-libs/libXcomposite |
694 |
- x11-libs/libXdamage |
695 |
- x11-libs/libXext |
696 |
- x11-libs/libXfixes |
697 |
- x11-libs/libXrender |
698 |
- x11-libs/libXt |
699 |
- >=x11-libs/pango-1.22.0 |
700 |
- >=x11-libs/pixman-0.19.2 |
701 |
- media-video/ffmpeg |
702 |
- virtual/freedesktop-icon-theme |
703 |
- dbus? ( |
704 |
- >=dev-libs/dbus-glib-0.72 |
705 |
- >=sys-apps/dbus-0.60 |
706 |
- ) |
707 |
- jack? ( virtual/jack ) |
708 |
- crypt? ( <x11-plugins/enigmail-2.1.0 ) |
709 |
- kernel_linux? ( !pulseaudio? ( media-libs/alsa-lib ) ) |
710 |
- pulseaudio? ( || ( |
711 |
- media-sound/pulseaudio |
712 |
- >=media-sound/apulse-0.1.9 |
713 |
- ) ) |
714 |
- startup-notification? ( >=x11-libs/startup-notification-0.8 ) |
715 |
- system-av1? ( |
716 |
- >=media-libs/dav1d-0.3.0:= |
717 |
- >=media-libs/libaom-1.0.0:= |
718 |
- ) |
719 |
- system-harfbuzz? ( |
720 |
- >=media-gfx/graphite2-1.3.9-r1 |
721 |
- >=media-libs/harfbuzz-1.3.3:0= |
722 |
- ) |
723 |
- system-icu? ( >=dev-libs/icu-59.1:= ) |
724 |
- system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1 ) |
725 |
- system-libevent? ( >=dev-libs/libevent-2.0:0= ) |
726 |
- system-libvpx? ( >=media-libs/libvpx-1.8.0:0=[postproc] ) |
727 |
- system-png? ( >=media-libs/libpng-1.6.31:0=[apng] ) |
728 |
- system-sqlite? ( >=dev-db/sqlite-3.33.0:3[secure-delete,debug=] ) |
729 |
- wifi? ( |
730 |
- kernel_linux? ( |
731 |
- >=dev-libs/dbus-glib-0.72 |
732 |
- net-misc/networkmanager |
733 |
- >=sys-apps/dbus-0.60 |
734 |
- ) |
735 |
- ) |
736 |
-" |
737 |
-RDEPEND="${COMMON_DEPEND} |
738 |
- selinux? ( sec-policy/selinux-mozilla ) |
739 |
-" |
740 |
-DEPEND="${COMMON_DEPEND} |
741 |
- amd64? ( virtual/opengl ) |
742 |
- x86? ( virtual/opengl ) |
743 |
-" |
744 |
- |
745 |
-# allow GMP_PLUGIN_LIST to be set in an eclass or |
746 |
-# overridden in the enviromnent (advanced hackers only) |
747 |
-[[ -z ${GMP_PLUGIN_LIST} ]] && GMP_PLUGIN_LIST=( gmp-gmpopenh264 gmp-widevinecdm ) |
748 |
- |
749 |
-BUILD_OBJ_DIR="${S}/seamonk" |
750 |
- |
751 |
-pkg_setup() { |
752 |
- if [[ ${PV} == *_beta* ]] || [[ ${PV} == *_pre* ]] ; then |
753 |
- ewarn "You're using an unofficial release of ${PN}. Don't file any bug in" |
754 |
- ewarn "Gentoo's Bugtracker against this package in case it breaks for you." |
755 |
- ewarn "Those belong to upstream: https://bugzilla.mozilla.org" |
756 |
- fi |
757 |
- |
758 |
- moz_pkgsetup |
759 |
-} |
760 |
- |
761 |
-pkg_pretend() { |
762 |
- # Ensure we have enough disk space to compile |
763 |
- if use debug || use lto || use test ; then |
764 |
- CHECKREQS_DISK_BUILD="16G" |
765 |
- else |
766 |
- CHECKREQS_DISK_BUILD="12G" |
767 |
- fi |
768 |
- check-reqs_pkg_setup |
769 |
-} |
770 |
- |
771 |
-spkg_setup() { |
772 |
- # Ensure we have enough disk space to compile |
773 |
- if use debug || use lto || use test ; then |
774 |
- CHECKREQS_DISK_BUILD="16G" |
775 |
- else |
776 |
- CHECKREQS_DISK_BUILD="12G" |
777 |
- fi |
778 |
- check-reqs_pkg_setup |
779 |
-} |
780 |
- |
781 |
-src_unpack() { |
782 |
- local l10n_sources="${P}.source-l10n.tar.xz" |
783 |
- unpack ${A/ ${l10n_sources}} |
784 |
- |
785 |
- mkdir "${S}/${P}-l10n" || die |
786 |
- cd "${S}/${P}-l10n" || die |
787 |
- unpack ${l10n_sources} |
788 |
-} |
789 |
- |
790 |
-src_prepare() { |
791 |
- # Apply our patches |
792 |
- eapply "${WORKDIR}"/mozilla |
793 |
- |
794 |
- # https://bugzilla.mozilla.org/show_bug.cgi?id=1623054 |
795 |
- eapply "${FILESDIR}/${PN}-2.53.7-ownertab.patch" |
796 |
- |
797 |
- # Shell scripts sometimes contain DOS line endings; bug 391889 |
798 |
- grep -rlZ --include="*.sh" $'\r$' . | |
799 |
- while read -r -d $'\0' file ; do |
800 |
- einfo edos2unix "${file}" |
801 |
- edos2unix "${file}" |
802 |
- done |
803 |
- |
804 |
- use system-libvpx \ |
805 |
- && eapply -p2 "${WORKDIR}/${PN}-2.53.3-system_libvpx-1.8.patch" |
806 |
- |
807 |
- # Allow user to apply any additional patches without modifing ebuild |
808 |
- eapply_user |
809 |
- |
810 |
- # Don't error for format with gcc-9 |
811 |
- grep -rl -- '-Werror=format' | xargs sed -i 's/error=format/no-&/' || die |
812 |
- |
813 |
- # Enable gnomebreakpad |
814 |
- if use debug ; then |
815 |
- sed -i -e "s:GNOME_DISABLE_CRASH_DIALOG=1:GNOME_DISABLE_CRASH_DIALOG=0:g" \ |
816 |
- build/unix/run-mozilla.sh || die |
817 |
- fi |
818 |
- |
819 |
- # Ensure that are plugins dir is enabled as default |
820 |
- sed -i -e "s:/usr/$(get_libdir)/mozilla/plugins:/usr/$(get_libdir)/${PN}/plugins:" \ |
821 |
- xpcom/io/nsAppFileLocationProvider.cpp || die |
822 |
- |
823 |
- # Don't exit with error when some libs are missing which we have in |
824 |
- # system. |
825 |
- sed '/^MOZ_PKG_FATAL_WARNINGS/s@= 1@= 0@' \ |
826 |
- -i comm/suite/installer/Makefile.in || die |
827 |
- # Don't error out when there's no files to be removed: |
828 |
- sed 's@\(xargs rm\)$@\1 -f@' \ |
829 |
- -i toolkit/mozapps/installer/packager.mk || die |
830 |
- |
831 |
- # Don't build libs-% locale files for chatzilla if we are not building chatzilla |
832 |
- # (this is hard-coded in the build system at present rather than being based on configuration) |
833 |
- if ! use chatzilla ; then |
834 |
- sed '/extensions\/irc\/locales libs-/s@^@#@' \ |
835 |
- -i comm/suite/locales/Makefile.in || die |
836 |
- fi |
837 |
- |
838 |
- eautoreconf old-configure.in |
839 |
- cd js/src || die |
840 |
- eautoconf old-configure.in |
841 |
-} |
842 |
- |
843 |
-src_configure() { |
844 |
- MEXTENSIONS="default" |
845 |
- # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys) |
846 |
- # Note: These are for Gentoo Linux use ONLY. For your own distribution, please |
847 |
- # get your own set of keys. |
848 |
- _google_api_key=AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc |
849 |
- |
850 |
- ###################################### |
851 |
- # |
852 |
- # mozconfig, CFLAGS and CXXFLAGS setup |
853 |
- # |
854 |
- ###################################### |
855 |
- |
856 |
- mozconfig_init |
857 |
- |
858 |
- ################################## |
859 |
- # Former mozconfig_config() part # |
860 |
- ################################## |
861 |
- |
862 |
- # Migrated from mozcoreconf-2 |
863 |
- mozconfig_annotate 'system_libs' --with-system-bz2 |
864 |
- mozconfig_annotate 'system_libs' --with-system-zlib |
865 |
- |
866 |
- # Disable for testing purposes only |
867 |
- mozconfig_annotate 'Upstream bug 1341234' --disable-stylo |
868 |
- |
869 |
- # Must pass release in order to properly select linker via gold useflag |
870 |
- mozconfig_annotate 'Enable by Gentoo' --enable-release |
871 |
- |
872 |
- # Must pass --enable-gold if using ld.gold |
873 |
- if tc-ld-is-gold ; then |
874 |
- mozconfig_annotate 'tc-ld-is-gold=true' --enable-gold |
875 |
- else |
876 |
- mozconfig_annotate 'tc-ld-is-gold=false' --disable-gold |
877 |
- fi |
878 |
- |
879 |
- # Enable position independent executables |
880 |
- mozconfig_annotate 'enabled by Gentoo' --enable-pie |
881 |
- |
882 |
- mozconfig_use_enable debug |
883 |
- mozconfig_use_enable debug tests |
884 |
- if ! use debug ; then |
885 |
- mozconfig_annotate 'disabled by Gentoo' --disable-debug-symbols |
886 |
- else |
887 |
- mozconfig_annotate 'enabled by Gentoo' --enable-debug-symbols |
888 |
- fi |
889 |
- |
890 |
- mozconfig_use_enable startup-notification |
891 |
- |
892 |
- # wifi pulls in dbus so manage both here |
893 |
- mozconfig_use_enable wifi necko-wifi |
894 |
- if use kernel_linux && use wifi && ! use dbus ; then |
895 |
- echo "Enabling dbus support due to wifi request" |
896 |
- mozconfig_annotate 'dbus required by necko-wifi on linux' --enable-dbus |
897 |
- else |
898 |
- mozconfig_use_enable dbus |
899 |
- mozconfig_annotate 'disabled' --disable-necko-wifi |
900 |
- fi |
901 |
- |
902 |
- # These are enabled by default in all mozilla applications |
903 |
- mozconfig_annotate '' --with-system-nspr --with-nspr-prefix="${SYSROOT}${EPREFIX}"/usr |
904 |
- mozconfig_annotate '' --with-system-nss --with-nss-prefix="${SYSROOT}${EPREFIX}"/usr |
905 |
- mozconfig_annotate '' --x-includes="${SYSROOT}${EPREFIX}"/usr/include --x-libraries="${SYSROOT}${EPREFIX}"/usr/$(get_libdir) |
906 |
- if use system-libevent ; then |
907 |
- mozconfig_annotate '' --with-system-libevent="${SYSROOT}${EPREFIX}"/usr |
908 |
- fi |
909 |
- mozconfig_annotate '' --prefix="${EPREFIX}"/usr |
910 |
- mozconfig_annotate '' --libdir="${EPREFIX}"/usr/$(get_libdir) |
911 |
- mozconfig_annotate 'Gentoo default' --enable-system-hunspell |
912 |
- mozconfig_annotate '' --disable-crashreporter |
913 |
- mozconfig_annotate '' --enable-system-ffi |
914 |
- mozconfig_annotate '' --disable-gconf |
915 |
- mozconfig_annotate '' --with-intl-api |
916 |
- |
917 |
- # skia has no support for big-endian platforms |
918 |
- if [[ $(tc-endian) == "big" ]] ; then |
919 |
- mozconfig_annotate 'big endian target' --disable-skia |
920 |
- else |
921 |
- mozconfig_annotate '' --enable-skia |
922 |
- fi |
923 |
- |
924 |
- # default toolkit is cairo-gtk3, optional use flags can change this |
925 |
- mozconfig_annotate '' --enable-default-toolkit=cairo-gtk3 |
926 |
- |
927 |
- # Instead of the standard --build= and --host=, mozilla uses --host instead |
928 |
- # of --build, and --target intstead of --host. |
929 |
- # Note, mozilla also has --build but it does not do what you think it does. |
930 |
- # Set both --target and --host as mozilla uses python to guess values otherwise |
931 |
- mozconfig_annotate '' --target="${CHOST}" |
932 |
- mozconfig_annotate '' --host="${CBUILD:-${CHOST}}" |
933 |
- |
934 |
- mozconfig_use_enable pulseaudio |
935 |
- # force the deprecated alsa sound code if pulseaudio is disabled |
936 |
- if use kernel_linux && ! use pulseaudio ; then |
937 |
- mozconfig_annotate '-pulseaudio' --enable-alsa |
938 |
- fi |
939 |
- |
940 |
- # For testing purpose only |
941 |
- mozconfig_annotate 'Sandbox' --enable-content-sandbox |
942 |
- |
943 |
- mozconfig_use_enable system-sqlite |
944 |
- mozconfig_use_with system-jpeg |
945 |
- mozconfig_use_with system-icu |
946 |
- mozconfig_use_with system-libvpx |
947 |
- mozconfig_use_with system-png |
948 |
- mozconfig_use_with system-harfbuzz |
949 |
- mozconfig_use_with system-harfbuzz system-graphite2 |
950 |
- mozconfig_use_with system-av1 |
951 |
- |
952 |
- # Modifications to better support ARM, bug 553364 |
953 |
- if use cpu_flags_arm_neon ; then |
954 |
- mozconfig_annotate '' --with-fpu=neon |
955 |
- mozconfig_annotate '' --with-thumb=yes |
956 |
- mozconfig_annotate '' --with-thumb-interwork=no |
957 |
- fi |
958 |
- if [[ ${CHOST} == armv* ]] ; then |
959 |
- mozconfig_annotate '' --with-float-abi=hard |
960 |
- if ! use system-libvpx ; then |
961 |
- sed -i -e "s|softfp|hard|" media/libvpx/moz.build || die |
962 |
- fi |
963 |
- fi |
964 |
- |
965 |
- if use lto ; then |
966 |
- # Linking only works when using ld.gold when LTO is enabled |
967 |
- mozconfig_annotate "forcing ld=gold due to USE=lto" --enable-linker=gold |
968 |
- # ThinLTO is currently broken, see bmo#1644409 |
969 |
- mozconfig_annotate '+lto' --enable-lto=full |
970 |
- else |
971 |
- if tc-ld-is-gold ; then |
972 |
- mozconfig_annotate "linker is set to gold" --enable-linker=gold |
973 |
- else |
974 |
- mozconfig_annotate "linker is set to bfd" --enable-linker=bfd |
975 |
- fi |
976 |
- fi |
977 |
- # LTO flag was handled via configure |
978 |
- filter-flags '-flto*' |
979 |
- |
980 |
- ################################## |
981 |
- # Former mozconfig_config() end # |
982 |
- ################################## |
983 |
- |
984 |
- # enable JACK, bug 600002 |
985 |
- mozconfig_use_enable jack |
986 |
- |
987 |
- # It doesn't compile on alpha without this LDFLAGS |
988 |
- use alpha && append-ldflags "-Wl,--no-relax" |
989 |
- |
990 |
- # Linking fails without this due to memory exhaustion |
991 |
- use x86 && append-ldflags "-Wl,--no-keep-memory" |
992 |
- |
993 |
- if ! use roaming ; then |
994 |
- MEXTENSIONS+=",-sroaming" |
995 |
- fi |
996 |
- |
997 |
- # Setup api key for location services |
998 |
- printf '%s' "${_google_api_key}" > "${S}"/google-api-key |
999 |
- mozconfig_annotate '' --with-google-location-service-api-keyfile="${S}/google-api-key" |
1000 |
- mozconfig_annotate '' --with-google-safebrowsing-api-keyfile="${S}/google-api-key" |
1001 |
- |
1002 |
- mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}" |
1003 |
- mozconfig_use_enable chatzilla irc |
1004 |
- mozconfig_annotate '' --enable-dominspector |
1005 |
- |
1006 |
- # use startup-cache for faster startup time |
1007 |
- mozconfig_annotate '' --enable-startupcache |
1008 |
- |
1009 |
- # Broken on some arches |
1010 |
- mozconfig_annotate '' --disable-elf-hack |
1011 |
- |
1012 |
- # Use an objdir to keep things organized. |
1013 |
- echo "mk_add_options MOZ_OBJDIR=${BUILD_OBJ_DIR}" >> "${S}"/.mozconfig |
1014 |
- echo "mk_add_options XARGS=/usr/bin/xargs" >> "${S}"/.mozconfig |
1015 |
- |
1016 |
- mozlinguas_mozconfig |
1017 |
- |
1018 |
- # Finalize and report settings |
1019 |
- mozconfig_final |
1020 |
- |
1021 |
- # Work around breakage in makeopts with --no-print-directory |
1022 |
- MAKEOPTS="${MAKEOPTS/--no-print-directory/}" |
1023 |
- |
1024 |
- if [[ $(gcc-major-version) -lt 4 ]] ; then |
1025 |
- append-cxxflags -fno-stack-protector |
1026 |
- elif [[ $(gcc-major-version) -gt 4 || $(gcc-minor-version) -gt 3 ]] ; then |
1027 |
- if use amd64 || use x86 ; then |
1028 |
- append-flags -mno-avx |
1029 |
- fi |
1030 |
- fi |
1031 |
- |
1032 |
- # Pass $MAKEOPTS to build system |
1033 |
- export MOZ_MAKE_FLAGS="${MAKEOPTS}" |
1034 |
- # Use system's Python environment |
1035 |
- export MACH_USE_SYSTEM_PYTHON=1 |
1036 |
- # Disable notification when build system has finished |
1037 |
- export MOZ_NOSPAM=1 |
1038 |
- |
1039 |
- # workaround for funky/broken upstream configure... |
1040 |
- export SHELL="${SHELL:-${EPREFIX}/bin/bash}" |
1041 |
- #emake V=1 -f client.mk configure |
1042 |
- ./mach configure || die |
1043 |
-} |
1044 |
- |
1045 |
-src_compile() { |
1046 |
- #MOZ_MAKE_FLAGS="${MAKEOPTS}" SHELL="${SHELL}" \ |
1047 |
- #emake V=1 -f client.mk |
1048 |
- ./mach build --verbose || die |
1049 |
- |
1050 |
- mozlinguas_src_compile |
1051 |
-} |
1052 |
- |
1053 |
-src_install() { |
1054 |
- MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
1055 |
- DICTPATH="\"${EPREFIX}/usr/share/myspell\"" |
1056 |
- |
1057 |
- local emid |
1058 |
- pushd "${BUILD_OBJ_DIR}" &>/dev/null || die |
1059 |
- |
1060 |
- # Pax mark xpcshell for hardened support, only used for startupcache creation. |
1061 |
- pax-mark m dist/bin/xpcshell |
1062 |
- |
1063 |
- # Copy our preference before omnijar is created. |
1064 |
- sed "s|SEAMONKEY_PVR|${PVR}|" "${FILESDIR}"/all-gentoo-1.js > \ |
1065 |
- dist/bin/defaults/pref/all-gentoo.js \ |
1066 |
- || die |
1067 |
- |
1068 |
- # Set default path to search for dictionaries. |
1069 |
- echo "pref(\"spellchecker.dictionary_path\", ${DICTPATH});" \ |
1070 |
- >> dist/bin/defaults/pref/all-gentoo.js \ |
1071 |
- || die |
1072 |
- |
1073 |
- echo 'pref("extensions.autoDisableScopes", 3);' >> \ |
1074 |
- dist/bin/defaults/pref/all-gentoo.js \ |
1075 |
- || die |
1076 |
- |
1077 |
- local plugin |
1078 |
- if ! use gmp-autoupdate ; then |
1079 |
- for plugin in "${GMP_PLUGIN_LIST[@]}" ; do |
1080 |
- echo "pref(\"media.${plugin}.autoupdate\", false);" >> \ |
1081 |
- dist/bin/defaults/pref/all-gentoo.js || die |
1082 |
- done |
1083 |
- fi |
1084 |
- |
1085 |
- popd &>/dev/null || die |
1086 |
- |
1087 |
- #MOZ_MAKE_FLAGS="${MAKEOPTS}" SHELL="${SHELL:-${EPREFIX}/bin/bash}" \ |
1088 |
- #emake DESTDIR="${D}" install |
1089 |
- DESTDIR="${D}" ./mach install || die |
1090 |
- MOZ_P="${MY_MOZ_P}" mozlinguas_src_install |
1091 |
- |
1092 |
- cp "${FILESDIR}"/${PN}.desktop "${T}" || die |
1093 |
- |
1094 |
- sed 's|^\(MimeType=.*\)$|\1text/x-vcard;text/directory;application/mbox;message/rfc822;x-scheme-handler/mailto;|' \ |
1095 |
- -i "${T}"/${PN}.desktop || die |
1096 |
- sed 's|^\(Categories=.*\)$|\1Email;|' -i "${T}"/${PN}.desktop \ |
1097 |
- || die |
1098 |
- |
1099 |
- # Install icon and .desktop for menu entry |
1100 |
- newicon "${S}"/comm/suite/branding/${PN}/default64.png ${PN}.png |
1101 |
- domenu "${T}"/${PN}.desktop |
1102 |
- |
1103 |
- # Required in order to use plugins and even run seamonkey on hardened. |
1104 |
- pax-mark m "${ED}"/${MOZILLA_FIVE_HOME}/{seamonkey,seamonkey-bin,plugin-container} |
1105 |
- |
1106 |
- if use chatzilla ; then |
1107 |
- emid='{59c81df5-4b7a-477b-912d-4e0fdf64e5f2}' |
1108 |
- |
1109 |
- # remove the en_US-only xpi file so a version with all requested locales can be installed |
1110 |
- if [[ -e "${ED}"/${MOZILLA_FIVE_HOME}/extensions/${emid}.xpi ]] ; then |
1111 |
- rm -f "${ED}"/${MOZILLA_FIVE_HOME}/extensions/${emid}.xpi || die |
1112 |
- fi |
1113 |
- |
1114 |
- # merge the extra locales into the main extension |
1115 |
- mozlinguas_xpistage_langpacks dist/xpi-stage/chatzilla |
1116 |
- |
1117 |
- # install the merged extension |
1118 |
- mkdir -p "${T}/${emid}" || die |
1119 |
- cp -RLp -t "${T}/${emid}" dist/xpi-stage/chatzilla/* || die |
1120 |
- insinto ${MOZILLA_FIVE_HOME}/extensions |
1121 |
- doins -r "${T}/${emid}" |
1122 |
- fi |
1123 |
- |
1124 |
- # Provide a place for plugins |
1125 |
- keepdir "${MOZILLA_FIVE_HOME}/plugins" |
1126 |
- |
1127 |
- # revdep-rebuild entry |
1128 |
- insinto /etc/revdep-rebuild |
1129 |
- echo "SEARCH_DIRS_MASK=${MOZILLA_FIVE_HOME}*" >> ${T}/11${PN} |
1130 |
- doins "${T}"/11${PN} |
1131 |
- |
1132 |
-} |
1133 |
- |
1134 |
-pkg_preinst() { |
1135 |
- SEAMONKEY_PLUGINS_DIR="${ROOT}/usr/$(get_libdir)/${PN}/plugins" |
1136 |
- |
1137 |
- if [[ -L "${SEAMONKEY_PLUGINS_DIR}" ]] ; then |
1138 |
- rm "${SEAMONKEY_PLUGINS_DIR}" || die |
1139 |
- fi |
1140 |
-} |
1141 |
- |
1142 |
-pkg_postinst() { |
1143 |
- # Update mimedb for the new .desktop file |
1144 |
- xdg_desktop_database_update |
1145 |
- |
1146 |
- if ! use gmp-autoupdate ; then |
1147 |
- elog "USE='-gmp-autoupdate' has disabled the following plugins from updating or" |
1148 |
- elog "installing into new profiles:" |
1149 |
- local plugin |
1150 |
- for plugin in "${GMP_PLUGIN_LIST[@]}"; do elog "\t ${plugin}" ; done |
1151 |
- fi |
1152 |
- |
1153 |
- if use chatzilla ; then |
1154 |
- elog "chatzilla is now an extension which can be en-/disabled and configured via" |
1155 |
- elog "the Add-on manager." |
1156 |
- fi |
1157 |
-} |
1158 |
- |
1159 |
-pkg_postrm() { |
1160 |
- xdg_desktop_database_update |
1161 |
-} |