Gentoo Archives: gentoo-commits

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