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