Gentoo Archives: gentoo-commits

From: Ian Stakenvicius <axs@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/mozilla:master commit in: www-client/seamonkey/
Date: Sat, 01 Oct 2016 14:48:58
Message-Id: 1475333323.3c2d7007f9e4897e51c1a982b3274dcdf9b5adc8.axs@gentoo
1 commit: 3c2d7007f9e4897e51c1a982b3274dcdf9b5adc8
2 Author: Ian Stakenvicius <axs <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 1 14:48:43 2016 +0000
4 Commit: Ian Stakenvicius <axs <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 1 14:48:43 2016 +0000
6 URL: https://gitweb.gentoo.org/proj/mozilla.git/commit/?id=3c2d7007
7
8 www-client/seamonkey-2.42: bump to build from thunderbird-45.4
9
10 www-client/seamonkey/Manifest | 1 +
11 www-client/seamonkey/seamonkey-2.42.4.0_p0.ebuild | 394 ++++++++++++++++++++++
12 2 files changed, 395 insertions(+)
13
14 diff --git a/www-client/seamonkey/Manifest b/www-client/seamonkey/Manifest
15 index 53ec62d..126a749 100644
16 --- a/www-client/seamonkey/Manifest
17 +++ b/www-client/seamonkey/Manifest
18 @@ -62,3 +62,4 @@ DIST seamonkey-2.40.source.tar.xz 193702432 SHA256 7ecccc039d03f38d197b123b59ea4
19 DIST seamonkey-2.42-patches-01.tar.xz 812 SHA256 289b36a4538e4f3ec3633c08084d018e52fd2edfbdd1748c341accd452d20ee0 SHA512 7c727324671c242940876acfce6a95ac1b47713c83be502c8a5dba26be3d5e7998a13ae93c8874d51c3250bd3916d4468cb51b3beb26e74ff7d9d6ffa4c63c95 WHIRLPOOL 4c90988ce1364e38848caf92fb3f565cab4d8ab990eb1eed2c11655eff81d3a77b02577cb43fd35102c04b03c18963989f61ef32c6e9c29bbed2d0e6f9cc78a5
20 DIST seamonkey-2.42.3.0-l10n-sources.tar.xz 16552028 SHA256 2d348468c041b29b5ba5defb968dd42ff31733d4c6311c18ff95a9a2b170d649 SHA512 17c75e754ffff1e0d5789a3e9f1435367d68802a754a1b2fe6d1349fc7202a123c50b33a0ae6ebd820ff9069c3f89501c4062851cad83257ceb3577a8726b731 WHIRLPOOL 6b86cd6495e33894a7a1ed7e93bd7d77f7f0070fa5f036acd58fc7aca85994132af6251b1c1b074a557893668a738b37859423bf370e44f7732223ec05dd6165
21 DIST thunderbird-45.3.0.source.tar.xz 201005896 SHA256 231f6a7a073344659e436a2b1ae58004c3a29e74375af2c8d0de13f3bc79fac7 SHA512 1226b35535d68b9c088ab8692f61120c99951e1ecbae4739ced711665a3237d248202831831f00536c724e2f6359db4601fa5c90f2793433eab4bd9dab0c1165 WHIRLPOOL 86c4145859ee39d4fcf48eacd5a0b61f6f9f70fee3c2e38fe5b225c06e17ea4b7c1c5ccfa2c9f4d0696e9d807a6b612990ccda7d35bd22a8687ef15a9c3747be
22 +DIST thunderbird-45.4.0.source.tar.xz 201094212 SHA256 36f66edbb9b0f1ff9d0de8f12eab6cccbfa23db79e01db307fb2186904a38e61 SHA512 9c601d9625b43103b64e111da3a88fccdc30d4a52aa8a66ee02120bc13f3c5600d24fa1cfd3817975a0e58be9078d192334dd3099aa462468d8ab0cd05a3bcd5 WHIRLPOOL 7370f6063a71eeec3f7df7ada6bfed5582414afa7287dd04905655470a99eaa1a2eabf4549807ac2cbea93e59df3542d3cee9aaf939aa7612532bd66402ee5e2
23
24 diff --git a/www-client/seamonkey/seamonkey-2.42.4.0_p0.ebuild b/www-client/seamonkey/seamonkey-2.42.4.0_p0.ebuild
25 new file mode 100644
26 index 0000000..9d3aaee
27 --- /dev/null
28 +++ b/www-client/seamonkey/seamonkey-2.42.4.0_p0.ebuild
29 @@ -0,0 +1,394 @@
30 +# Copyright 1999-2016 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +# $Id$
33 +
34 +EAPI=6
35 +WANT_AUTOCONF="2.1"
36 +
37 +# This list can be updated with scripts/get_langs.sh from the mozilla overlay
38 +# note - could not roll langpacks for: ca fi
39 +MOZ_LANGS=(be cs de en en-GB en-US es-AR es-ES fr gl hu it ja lt nb-NO nl
40 + pl pt-PT ru sk sv-SE tr uk zh-CN zh-TW)
41 +
42 +MOZ_PV="${PV/_pre*}"
43 +MOZ_PV="${MOZ_PV/_alpha/a}"
44 +MOZ_PV="${MOZ_PV/_beta/b}"
45 +MOZ_PV="${MOZ_PV/_rc/rc}"
46 +MOZ_PV="${MOZ_PV/_p0}"
47 +MOZ_P="${P}"
48 +MY_MOZ_P="${PN}-${MOZ_PV}"
49 +
50 +if [[ ${PV} == *_pre* ]] ; then
51 +# the following are for upstream build candidates
52 +# MOZ_HTTP_URI="https://archive.mozilla.org/pub/${PN}/candidates/${MOZ_PV}-candidates/build${PV##*_pre}"
53 +# MOZ_LANGPACK_PREFIX="linux-i686/xpi/"
54 + # And the langpack stuff stays at eclass defaults
55 +# the following is for self-rolled releases
56 + MOZ_HTTP_URI="https://dev.gentoo.org/~axs/distfiles"
57 + MOZ_LANGPACK_PREFIX="${MY_MOZ_P}."
58 + MOZ_LANGPACK_SUFFIX=".langpack.xpi"
59 + SRC_URI="${SRC_URI}
60 + ${MOZ_HTTP_URI}/${P}.source.tar.xz
61 + "
62 +elif [[ ${PV} == *_p0 ]]; then
63 + # gentoo-unofficial release using thunderbird distfiles to build seamonkey instead
64 + TB_MAJOR=45
65 + SMPV="${PV%.[0-9].*}"
66 + MOZ_P="${PN}-${SMPV}"
67 + MOZ_HTTP_URI="https://archive.mozilla.org/pub/thunderbird/releases/${MOZ_PV/${SMPV}/${TB_MAJOR}}"
68 + MOZ_GENERATE_LANGPACKS=1
69 + S="${WORKDIR}/thunderbird-${MOZ_PV/${SMPV}/${TB_MAJOR}}"
70 + SRC_URI="${SRC_URI}
71 + ${MOZ_HTTP_URI}/source/${MY_MOZ_P/${MOZ_P}/thunderbird-${TB_MAJOR}}.source.tar.xz
72 + https://dev.gentoo.org/~axs/distfiles/${PN}-2.42.3.0-l10n-sources.tar.xz
73 + https://dev.gentoo.org/~axs/distfiles/chatzilla-2.42.tar.xz
74 + https://dev.gentoo.org/~axs/distfiles/dom-inspector-2.0.16.tar.xz
75 + "
76 +else
77 + MOZ_HTTP_URI="https://archive.mozilla.org/pub/${PN}/releases/${MOZ_PV}"
78 + MOZ_LANGPACK_PREFIX="langpack/${MY_MOZ_P}."
79 + MOZ_LANGPACK_SUFFIX=".langpack.xpi"
80 + S="${WORKDIR}/${PN}-${MOZ_PV}"
81 + SRC_URI="${SRC_URI}
82 + ${MOZ_HTTP_URI}/source/${MY_MOZ_P}.source.tar.xz -> ${P}.source.tar.xz
83 + "
84 +fi
85 +
86 +MOZCONFIG_OPTIONAL_WIFI=1
87 +MOZCONFIG_OPTIONAL_JIT="enabled"
88 +inherit check-reqs flag-o-matic toolchain-funcs eutils mozconfig-v6.45 multilib pax-utils fdo-mime autotools mozextension nsplugins mozlinguas-v2
89 +
90 +PATCHFF="firefox-45.0-patches-04"
91 +PATCH="${PN}-2.42-patches-01"
92 +EMVER="1.9.1"
93 +
94 +DESCRIPTION="Seamonkey Web Browser"
95 +HOMEPAGE="http://www.seamonkey-project.org"
96 +KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~x86"
97 +
98 +SLOT="0"
99 +LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
100 +IUSE="+chatzilla +crypt +gmp-autoupdate +ipc minimal pulseaudio +roaming selinux test"
101 +
102 +SRC_URI="${SRC_URI}
103 + https://dev.gentoo.org/~anarchy/mozilla/patchsets/${PATCHFF}.tar.xz
104 + https://dev.gentoo.org/~axs/mozilla/patchsets/${PATCHFF}.tar.xz
105 + https://dev.gentoo.org/~axs/mozilla/patchsets/${PATCH}.tar.xz
106 + https://dev.gentoo.org/~polynomial-c/mozilla/patchsets/${PATCHFF}.tar.xz
107 + https://dev.gentoo.org/~polynomial-c/mozilla/patchsets/${PATCH}.tar.xz
108 + crypt? ( https://www.enigmail.net/download/source/enigmail-${EMVER}.tar.gz )"
109 +
110 +ASM_DEPEND=">=dev-lang/yasm-1.1"
111 +
112 +RDEPEND=">=dev-libs/nss-3.22.3
113 + >=dev-libs/nspr-4.12
114 + crypt? ( || (
115 + ( >=app-crypt/gnupg-2.0
116 + || (
117 + app-crypt/pinentry[gtk]
118 + app-crypt/pinentry[qt4]
119 + )
120 + )
121 + =app-crypt/gnupg-1.4* ) )"
122 +
123 +DEPEND="${RDEPEND}
124 + !elibc_glibc? ( !elibc_uclibc? ( dev-libs/libexecinfo ) )
125 + crypt? ( dev-lang/perl )
126 + amd64? ( ${ASM_DEPEND}
127 + virtual/opengl )
128 + x86? ( ${ASM_DEPEND}
129 + virtual/opengl )"
130 +
131 +BUILD_OBJ_DIR="${S}/seamonk"
132 +
133 +pkg_setup() {
134 + if [[ ${PV} == *_pre* ]] ; then
135 + ewarn "You're using an unofficial release of ${PN}. Don't file any bug in"
136 + ewarn "Gentoo's Bugtracker against this package in case it breaks for you."
137 + ewarn "Those belong to upstream: https://bugzilla.mozilla.org"
138 + fi
139 +
140 + moz_pkgsetup
141 +}
142 +
143 +pkg_pretend() {
144 + # Ensure we have enough disk space to compile
145 + if use debug || use test ; then
146 + CHECKREQS_DISK_BUILD="8G"
147 + else
148 + CHECKREQS_DISK_BUILD="4G"
149 + fi
150 + check-reqs_pkg_setup
151 +}
152 +
153 +src_unpack() {
154 + unpack ${A}
155 +
156 + # Unpack language packs
157 + mozlinguas_src_unpack
158 +
159 + # move the irc and inspector code into the correct locations
160 + mv "${WORKDIR}"/irc "${S}"/mozilla/extensions/irc || die
161 + mv "${WORKDIR}"/inspector "${S}"/mozilla/extensions/inspector || die
162 +}
163 +
164 +src_prepare() {
165 + # Apply our patches
166 + eapply "${WORKDIR}"/seamonkey \
167 + "${FILESDIR}"/${PN}-2.42.3.0-fix-chatzillaless-locale-building.patch
168 +
169 + # browser patches go here
170 + pushd "${S}"/mozilla &>/dev/null || die
171 + rm -f "${WORKDIR}"/firefox/2000-firefox_gentoo_install_dirs.patch
172 + eapply "${WORKDIR}"/firefox
173 + popd &>/dev/null || die
174 +
175 + # Shell scripts sometimes contain DOS line endings; bug 391889
176 + grep -rlZ --include="*.sh" $'\r$' . |
177 + while read -r -d $'\0' file ; do
178 + einfo edos2unix "${file}"
179 + edos2unix "${file}"
180 + done
181 +
182 + # Allow user to apply any additional patches without modifing ebuild
183 + eapply_user
184 +
185 + local ms="${S}/mozilla"
186 +
187 + # Enable gnomebreakpad
188 + if use debug ; then
189 + sed -i -e "s:GNOME_DISABLE_CRASH_DIALOG=1:GNOME_DISABLE_CRASH_DIALOG=0:g" \
190 + "${ms}"/build/unix/run-mozilla.sh || die "sed failed!"
191 + fi
192 +
193 + # Ensure that are plugins dir is enabled as default
194 + sed -i -e "s:/usr/lib/mozilla/plugins:/usr/lib/nsbrowser/plugins:" \
195 + "${ms}"/xpcom/io/nsAppFileLocationProvider.cpp || die "sed failed to replace plugin path for 32bit!"
196 + sed -i -e "s:/usr/lib64/mozilla/plugins:/usr/lib64/nsbrowser/plugins:" \
197 + "${ms}"/xpcom/io/nsAppFileLocationProvider.cpp || die "sed failed to replace plugin path for 64bit!"
198 +
199 + # Don't exit with error when some libs are missing which we have in
200 + # system.
201 + sed '/^MOZ_PKG_FATAL_WARNINGS/s@= 1@= 0@' \
202 + -i "${S}"/suite/installer/Makefile.in || die
203 + # Don't error out when there's no files to be removed:
204 + sed 's@\(xargs rm\)$@\1 -f@' \
205 + -i "${ms}"/toolkit/mozapps/installer/packager.mk || die
206 +
207 + eautoreconf
208 + cd "${S}"/mozilla || die
209 + eautoconf
210 + cd "${S}"/mozilla/js/src || die
211 + eautoconf
212 + cd "${S}"/mozilla/memory/jemalloc/src || die
213 + WANT_AUTOCONF= eautoconf
214 +}
215 +
216 +src_configure() {
217 + MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
218 + MEXTENSIONS="default"
219 + # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys)
220 + # Note: These are for Gentoo Linux use ONLY. For your own distribution, please
221 + # get your own set of keys.
222 + _google_api_key=AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc
223 +
224 + ####################################
225 + #
226 + # mozconfig, CFLAGS and CXXFLAGS setup
227 + #
228 + ####################################
229 +
230 + mozconfig_init
231 + mozconfig_config
232 +
233 + # It doesn't compile on alpha without this LDFLAGS
234 + use alpha && append-ldflags "-Wl,--no-relax"
235 +
236 + if ! use chatzilla ; then
237 + MEXTENSIONS+=",-irc"
238 + fi
239 + if ! use roaming ; then
240 + MEXTENSIONS+=",-sroaming"
241 + fi
242 +
243 + # Setup api key for location services
244 + echo -n "${_google_api_key}" > "${S}"/google-api-key
245 + mozconfig_annotate '' --with-google-api-keyfile="${S}/google-api-key"
246 +
247 + mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}"
248 + mozconfig_annotate '' --enable-jsd
249 + mozconfig_annotate '' --enable-canvas
250 +
251 + # Other sm-specific settings
252 + mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME}
253 +
254 + mozconfig_annotate '' --enable-safe-browsing
255 +
256 + mozlinguas_mozconfig
257 +
258 + # Use an objdir to keep things organized.
259 + echo "mk_add_options MOZ_OBJDIR=${BUILD_OBJ_DIR}" \
260 + >> "${S}"/.mozconfig
261 +
262 + # Finalize and report settings
263 + mozconfig_final
264 +
265 + if use crypt ; then
266 + pushd "${WORKDIR}"/enigmail &>/dev/null || die
267 + econf
268 + popd &>/dev/null || die
269 + fi
270 +
271 + # Work around breakage in makeopts with --no-print-directory
272 + MAKEOPTS="${MAKEOPTS/--no-print-directory/}"
273 +
274 + if [[ $(gcc-major-version) -lt 4 ]] ; then
275 + append-cxxflags -fno-stack-protector
276 + elif [[ $(gcc-major-version) -gt 4 || $(gcc-minor-version) -gt 3 ]] ; then
277 + if use amd64 || use x86 ; then
278 + append-flags -mno-avx
279 + fi
280 + fi
281 +
282 + emake V=1 -f client.mk configure
283 +}
284 +
285 +src_compile() {
286 + CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \
287 + MOZ_MAKE_FLAGS="${MAKEOPTS}" SHELL="${SHELL}" \
288 + emake V=1 -f client.mk
289 +
290 + mozlinguas_src_compile
291 +
292 + # Only build enigmail extension if conditions are met.
293 + if use crypt ; then
294 + einfo "Building enigmail"
295 + pushd "${WORKDIR}"/enigmail &>/dev/null || die
296 + emake -j1
297 + emake xpi
298 + popd &>/dev/null || die
299 + fi
300 +}
301 +
302 +src_install() {
303 + MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
304 + DICTPATH="\"${EPREFIX}/usr/share/myspell\""
305 +
306 + local emid
307 + cd "${BUILD_OBJ_DIR}" || die
308 +
309 + # Pax mark xpcshell for hardened support, only used for startupcache creation.
310 + pax-mark m "${BUILD_OBJ_DIR}/dist/bin/xpcshell"
311 +
312 + # Copy our preference before omnijar is created.
313 + sed "s|SEAMONKEY_PVR|${PVR}|" "${FILESDIR}"/all-gentoo-1.js > \
314 + "${BUILD_OBJ_DIR}/dist/bin/defaults/pref/all-gentoo.js" \
315 + || die
316 +
317 + # Set default path to search for dictionaries.
318 + echo "pref(\"spellchecker.dictionary_path\", ${DICTPATH});" \
319 + >> "${BUILD_OBJ_DIR}/dist/bin/defaults/pref/all-gentoo.js" \
320 + || die
321 +
322 + echo 'pref("extensions.autoDisableScopes", 3);' >> \
323 + "${BUILD_OBJ_DIR}/dist/bin/defaults/pref/all-gentoo.js" \
324 + || die
325 +
326 + local plugin
327 + if ! use gmp-autoupdate ; then
328 + for plugin in gmp-gmpopenh264 ; do
329 + echo "pref(\"media.${plugin}.autoupdate\", false);" >> \
330 + "${S}/${BUILD_OBJ_DIR}/dist/bin/browser/defaults/preferences/all-gentoo.js" \
331 + || dir
332 + done
333 + fi
334 +
335 + MOZ_MAKE_FLAGS="${MAKEOPTS}" \
336 + emake DESTDIR="${D}" install
337 + cp "${FILESDIR}"/${PN}.desktop "${T}" || die
338 +
339 + if use crypt ; then
340 + local em_dir="${WORKDIR}/enigmail/build"
341 + pushd "${T}" &>/dev/null || die
342 + unzip "${em_dir}"/enigmail*.xpi install.rdf || die
343 + emid=$(sed -n '/<em:id>/!d; s/.*\({.*}\).*/\1/; p; q' install.rdf)
344 + #'
345 + dodir ${MOZILLA_FIVE_HOME}/extensions/${emid}
346 + cd "${D}"${MOZILLA_FIVE_HOME}/extensions/${emid} || die
347 + unzip "${em_dir}"/enigmail*.xpi || die
348 +
349 + popd &>/dev/null || die
350 + fi
351 +
352 + sed 's|^\(MimeType=.*\)$|\1text/x-vcard;text/directory;application/mbox;message/rfc822;x-scheme-handler/mailto;|' \
353 + -i "${T}"/${PN}.desktop || die
354 + sed 's|^\(Categories=.*\)$|\1Email;|' -i "${T}"/${PN}.desktop \
355 + || die
356 +
357 + # Install language packs
358 + mozlinguas_src_install
359 +
360 + # Add StartupNotify=true bug 290401
361 + if use startup-notification ; then
362 + echo "StartupNotify=true" >> "${T}"/${PN}.desktop || die
363 + fi
364 +
365 + # Install icon and .desktop for menu entry
366 + newicon "${S}"/suite/branding/nightly/content/icon64.png ${PN}.png
367 + domenu "${T}"/${PN}.desktop
368 +
369 + # Required in order to use plugins and even run seamonkey on hardened.
370 + pax-mark m "${ED}"${MOZILLA_FIVE_HOME}/{seamonkey,seamonkey-bin,plugin-container}
371 +
372 + if use minimal ; then
373 + rm -rf "${ED}"/usr/include "${ED}${MOZILLA_FIVE_HOME}"/{idl,include,lib,sdk}
374 + fi
375 +
376 + if use chatzilla ; then
377 + local emid='{59c81df5-4b7a-477b-912d-4e0fdf64e5f2}'
378 +
379 + # remove the en_US-only xpi file so a version with all requested locales can be installed
380 + if [[ -e "${ED}"${MOZILLA_FIVE_HOME}/distribution/extensions/${emid}.xpi ]]; then
381 + rm -f "${ED}"${MOZILLA_FIVE_HOME}/distribution/extensions/${emid}.xpi || die
382 + fi
383 +
384 + # merge the extra locales into the main extension
385 + mozlinguas_xpistage_langpacks "${BUILD_OBJ_DIR}"/dist/xpi-stage/chatzilla
386 +
387 + # install the merged extension
388 + mkdir -p "${T}/${emid}" || die
389 + cp -RLp -t "${T}/${emid}" "${BUILD_OBJ_DIR}"/dist/xpi-stage/chatzilla/* || die
390 + insinto ${MOZILLA_FIVE_HOME}/distribution/extensions
391 + doins -r "${T}/${emid}"
392 + fi
393 +
394 + # Handle plugins dir through nsplugins.eclass
395 + share_plugins_dir
396 +
397 + #doman "${BUILD_OBJ_DIR}/suite/app/${PN}.1"
398 +
399 + # revdep-rebuild entry
400 + insinto /etc/revdep-rebuild
401 + echo "SEARCH_DIRS_MASK=${MOZILLA_FIVE_HOME}*" >> ${T}/11${PN}
402 + doins "${T}"/11${PN}
403 +}
404 +
405 +pkg_preinst() {
406 + MOZILLA_FIVE_HOME="${ROOT}/usr/$(get_libdir)/${PN}"
407 +
408 + if [ -d ${MOZILLA_FIVE_HOME}/plugins ] ; then
409 + rm ${MOZILLA_FIVE_HOME}/plugins -rf
410 + fi
411 +}
412 +
413 +pkg_postinst() {
414 + MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
415 +
416 + # Update mimedb for the new .desktop file
417 + fdo-mime_desktop_database_update
418 +
419 + if use chatzilla ; then
420 + elog "chatzilla is now an extension which can be en-/disabled and configured via"
421 + elog "the Add-on manager."
422 + fi
423 +}