1 |
commit: eb05fb10df0ba783ccbd5a11c7a6be3b3dee2c61 |
2 |
Author: Ian Stakenvicius <axs <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Nov 27 01:50:14 2015 +0000 |
4 |
Commit: Ian Stakenvicius <axs <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Nov 27 19:20:48 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/mozilla.git/commit/?id=eb05fb10 |
7 |
|
8 |
clean old seamonkey ebuilds |
9 |
|
10 |
.../seamonkey/seamonkey-2.35_pre20150713-r1.ebuild | 372 -------------------- |
11 |
.../seamonkey/seamonkey-2.35_pre20150713.ebuild | 373 --------------------- |
12 |
www-client/seamonkey/seamonkey-2.38.ebuild | 352 ------------------- |
13 |
3 files changed, 1097 deletions(-) |
14 |
|
15 |
diff --git a/www-client/seamonkey/seamonkey-2.35_pre20150713-r1.ebuild b/www-client/seamonkey/seamonkey-2.35_pre20150713-r1.ebuild |
16 |
deleted file mode 100644 |
17 |
index d5aec37..0000000 |
18 |
--- a/www-client/seamonkey/seamonkey-2.35_pre20150713-r1.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,372 +0,0 @@ |
21 |
-# Copyright 1999-2015 Gentoo Foundation |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
-# $Id$ |
24 |
- |
25 |
-EAPI=5 |
26 |
-WANT_AUTOCONF="2.1" |
27 |
- |
28 |
-# This list can be updated with scripts/get_langs.sh from the mozilla overlay |
29 |
-MOZ_LANGS=(ca be cs de en en-GB en-US es-AR es-ES fi fr gl hu it ja lt nb-NO nl |
30 |
- pl pt-PT ru sk sv-SE tr uk zh-CN zh-TW) |
31 |
- |
32 |
-MOZ_PV="${PV/_pre*}" |
33 |
-MOZ_PV="${MOZ_PV/_alpha/a}" |
34 |
-MOZ_PV="${MOZ_PV/_beta/b}" |
35 |
-MOZ_PV="${MOZ_PV/_rc/rc}" |
36 |
-MOZ_P="${P}" |
37 |
-MY_MOZ_P="${PN}-${MOZ_PV}" |
38 |
- |
39 |
-if [[ ${PV} == *_pre* ]] ; then |
40 |
- MOZ_FTP_URI="http://dev.gentoo.org/~axs/distfiles/" |
41 |
- MOZ_LANGPACK_PREFIX="${MY_MOZ_P}." |
42 |
- MOZ_LANGPACK_SUFFIX=".gentoo.langpack.xpi" |
43 |
- MOZ_LANGPACK_UNOFFICIAL="gentoo-rolled" |
44 |
-# Poly-C's original settings |
45 |
-# MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/${PN}/candidates/${MOZ_PV}-candidates/build${PV##*_pre}" |
46 |
-# MOZ_LANGPACK_PREFIX="linux-i686/xpi/" |
47 |
- # And the langpack stuff stays at eclass defaults |
48 |
-else |
49 |
- MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/${PN}/releases/${MOZ_PV}" |
50 |
- MOZ_LANGPACK_PREFIX="langpack/${MY_MOZ_P}." |
51 |
- MOZ_LANGPACK_SUFFIX=".langpack.xpi" |
52 |
-fi |
53 |
- |
54 |
-MOZCONFIG_OPTIONAL_WIFI=1 |
55 |
-MOZCONFIG_OPTIONAL_JIT="enabled" |
56 |
-inherit check-reqs flag-o-matic toolchain-funcs eutils mozconfig-v6.38 multilib pax-utils fdo-mime autotools mozextension nsplugins mozlinguas |
57 |
- |
58 |
-PATCHFF="firefox-38.0-patches-0.3" |
59 |
-PATCH="${PN}-2.33-patches-01" |
60 |
-EMVER="1.8.2" |
61 |
- |
62 |
-DESCRIPTION="Seamonkey Web Browser" |
63 |
-HOMEPAGE="http://www.seamonkey-project.org" |
64 |
- |
65 |
-if [[ ${PV} == *_pre* ]] ; then |
66 |
- # pre-releases. No need for arch teams to change KEYWORDS here. |
67 |
- |
68 |
- KEYWORDS="" |
69 |
-else |
70 |
- # This is where arch teams should change the KEYWORDS. |
71 |
- |
72 |
- KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~x86" |
73 |
-fi |
74 |
- |
75 |
-SLOT="0" |
76 |
-LICENSE="MPL-2.0 GPL-2 LGPL-2.1" |
77 |
-IUSE="+chatzilla +crypt +gmp-autoupdate +ipc minimal pulseaudio +roaming selinux test" |
78 |
- |
79 |
-SRC_URI="${SRC_URI} |
80 |
- ${MOZ_FTP_URI}/source/${MY_MOZ_P}.source.tar.bz2 -> ${P}.source.tar.bz2 |
81 |
- http://dev.gentoo.org/~axs/mozilla/patchsets/${PATCHFF}.tar.xz |
82 |
- http://dev.gentoo.org/~polynomial-c/mozilla/patchsets/${PATCH}.tar.xz |
83 |
- http://dev.gentoo.org/~polynomial-c/mozilla/patchsets/${PATCHFF}.tar.xz |
84 |
- crypt? ( http://www.enigmail.net/download/source/enigmail-${EMVER}.tar.gz )" |
85 |
- |
86 |
-ASM_DEPEND=">=dev-lang/yasm-1.1" |
87 |
- |
88 |
-RDEPEND=">=dev-libs/nss-3.19.2 |
89 |
- >=dev-libs/nspr-4.10.8 |
90 |
- crypt? ( || ( |
91 |
- ( >=app-crypt/gnupg-2.0 |
92 |
- || ( |
93 |
- app-crypt/pinentry[gtk] |
94 |
- app-crypt/pinentry[qt4] |
95 |
- ) |
96 |
- ) |
97 |
- =app-crypt/gnupg-1.4* ) ) |
98 |
- system-sqlite? ( >=dev-db/sqlite-3.8.7.4:3[secure-delete,debug=] )" |
99 |
- |
100 |
-DEPEND="${RDEPEND} |
101 |
- !elibc_glibc? ( !elibc_uclibc? ( dev-libs/libexecinfo ) ) |
102 |
- crypt? ( dev-lang/perl ) |
103 |
- amd64? ( ${ASM_DEPEND} |
104 |
- virtual/opengl ) |
105 |
- x86? ( ${ASM_DEPEND} |
106 |
- virtual/opengl )" |
107 |
- |
108 |
-if [[ ${PV} == *beta* ]] ; then |
109 |
- S="${WORKDIR}/comm-beta" |
110 |
-else |
111 |
- S="${WORKDIR}/comm-release" |
112 |
-fi |
113 |
- |
114 |
-BUILD_OBJ_DIR="${S}/seamonk" |
115 |
- |
116 |
-pkg_setup() { |
117 |
- if [[ ${PV} == *_pre* ]] ; then |
118 |
- ewarn "You're using an unofficial release of ${PN}. Don't file any bug in" |
119 |
- ewarn "Gentoo's Bugtracker against this package in case it breaks for you." |
120 |
- ewarn "Those belong to upstream: https://bugzilla.mozilla.org" |
121 |
- fi |
122 |
- |
123 |
- moz_pkgsetup |
124 |
-} |
125 |
- |
126 |
-pkg_pretend() { |
127 |
- # Ensure we have enough disk space to compile |
128 |
- if use debug || use test ; then |
129 |
- CHECKREQS_DISK_BUILD="8G" |
130 |
- else |
131 |
- CHECKREQS_DISK_BUILD="4G" |
132 |
- fi |
133 |
- check-reqs_pkg_setup |
134 |
-} |
135 |
- |
136 |
-src_unpack() { |
137 |
- unpack ${A} |
138 |
- |
139 |
- # Unpack language packs |
140 |
- mozlinguas_src_unpack |
141 |
-} |
142 |
- |
143 |
-src_prepare() { |
144 |
- # Apply our patches |
145 |
- EPATCH_SUFFIX="patch" \ |
146 |
- EPATCH_FORCE="yes" \ |
147 |
- EPATCH_EXCLUDE="2001_ldap_respect_cflags.patch" \ |
148 |
- epatch "${WORKDIR}/seamonkey" |
149 |
- |
150 |
- epatch "${FILESDIR}"/${PN}-2.35-jemalloc-configure.patch |
151 |
- |
152 |
- # browser patches go here |
153 |
- pushd "${S}"/mozilla &>/dev/null || die |
154 |
- EPATCH_EXCLUDE="2000-firefox_gentoo_install_dirs.patch |
155 |
- 8002_jemalloc_configure_unbashify.patch" \ |
156 |
- EPATCH_SUFFIX="patch" \ |
157 |
- EPATCH_FORCE="yes" \ |
158 |
- epatch "${WORKDIR}/firefox" |
159 |
- popd &>/dev/null || die |
160 |
- # drop -Wl,--build-id from LDFLAGS, bug #465466 |
161 |
- |
162 |
- # Shell scripts sometimes contain DOS line endings; bug 391889 |
163 |
- grep -rlZ --include="*.sh" $'\r$' . | |
164 |
- while read -r -d $'\0' file ; do |
165 |
- einfo edos2unix "${file}" |
166 |
- edos2unix "${file}" |
167 |
- done |
168 |
- |
169 |
- # Allow user to apply any additional patches without modifing ebuild |
170 |
- epatch_user |
171 |
- |
172 |
- local ms="${S}/mozilla" |
173 |
- |
174 |
- # Enable gnomebreakpad |
175 |
- if use debug ; then |
176 |
- sed -i -e "s:GNOME_DISABLE_CRASH_DIALOG=1:GNOME_DISABLE_CRASH_DIALOG=0:g" \ |
177 |
- "${ms}"/build/unix/run-mozilla.sh || die "sed failed!" |
178 |
- fi |
179 |
- |
180 |
- # Ensure that are plugins dir is enabled as default |
181 |
- sed -i -e "s:/usr/lib/mozilla/plugins:/usr/lib/nsbrowser/plugins:" \ |
182 |
- "${ms}"/xpcom/io/nsAppFileLocationProvider.cpp || die "sed failed to replace plugin path for 32bit!" |
183 |
- sed -i -e "s:/usr/lib64/mozilla/plugins:/usr/lib64/nsbrowser/plugins:" \ |
184 |
- "${ms}"/xpcom/io/nsAppFileLocationProvider.cpp || die "sed failed to replace plugin path for 64bit!" |
185 |
- |
186 |
- # Don't exit with error when some libs are missing which we have in |
187 |
- # system. |
188 |
- sed '/^MOZ_PKG_FATAL_WARNINGS/s@= 1@= 0@' \ |
189 |
- -i "${S}"/suite/installer/Makefile.in || die |
190 |
- # Don't error out when there's no files to be removed: |
191 |
- sed 's@\(xargs rm\)$@\1 -f@' \ |
192 |
- -i "${ms}"/toolkit/mozapps/installer/packager.mk || die |
193 |
- |
194 |
- eautoreconf |
195 |
- cd "${S}"/mozilla || die |
196 |
- eautoconf |
197 |
- cd "${S}"/mozilla/js/src || die |
198 |
- eautoconf |
199 |
- cd "${S}"/mozilla/memory/jemalloc/src || die |
200 |
- WANT_AUTOCONF= eautoconf |
201 |
-} |
202 |
- |
203 |
-src_configure() { |
204 |
- MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
205 |
- MEXTENSIONS="default" |
206 |
- # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys) |
207 |
- # Note: These are for Gentoo Linux use ONLY. For your own distribution, please |
208 |
- # get your own set of keys. |
209 |
- _google_api_key=AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc |
210 |
- |
211 |
- #################################### |
212 |
- # |
213 |
- # mozconfig, CFLAGS and CXXFLAGS setup |
214 |
- # |
215 |
- #################################### |
216 |
- |
217 |
- mozconfig_init |
218 |
- mozconfig_config |
219 |
- |
220 |
- # It doesn't compile on alpha without this LDFLAGS |
221 |
- use alpha && append-ldflags "-Wl,--no-relax" |
222 |
- |
223 |
- if ! use chatzilla ; then |
224 |
- MEXTENSIONS+=",-irc" |
225 |
- fi |
226 |
- if ! use roaming ; then |
227 |
- MEXTENSIONS+=",-sroaming" |
228 |
- fi |
229 |
- |
230 |
- # Setup api key for location services |
231 |
- echo -n "${_google_api_key}" > "${S}"/google-api-key |
232 |
- mozconfig_annotate '' --with-google-api-keyfile="${S}/google-api-key" |
233 |
- |
234 |
- mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}" |
235 |
- mozconfig_annotate '' --enable-jsd |
236 |
- mozconfig_annotate '' --enable-canvas |
237 |
- |
238 |
- # Other sm-specific settings |
239 |
- mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME} |
240 |
- |
241 |
- mozconfig_annotate '' --enable-safe-browsing |
242 |
- |
243 |
- mozlinguas_mozconfig |
244 |
- |
245 |
- # Use an objdir to keep things organized. |
246 |
- echo "mk_add_options MOZ_OBJDIR=${BUILD_OBJ_DIR}" \ |
247 |
- >> "${S}"/.mozconfig |
248 |
- |
249 |
- # Finalize and report settings |
250 |
- mozconfig_final |
251 |
- |
252 |
- if use crypt ; then |
253 |
- pushd "${WORKDIR}"/enigmail &>/dev/null || die |
254 |
- econf |
255 |
- popd &>/dev/null || die |
256 |
- fi |
257 |
- |
258 |
- # Work around breakage in makeopts with --no-print-directory |
259 |
- MAKEOPTS="${MAKEOPTS/--no-print-directory/}" |
260 |
- |
261 |
- if [[ $(gcc-major-version) -lt 4 ]] ; then |
262 |
- append-cxxflags -fno-stack-protector |
263 |
- elif [[ $(gcc-major-version) -gt 4 || $(gcc-minor-version) -gt 3 ]] ; then |
264 |
- if use amd64 || use x86 ; then |
265 |
- append-flags -mno-avx |
266 |
- fi |
267 |
- fi |
268 |
- |
269 |
- emake V=1 -f client.mk configure |
270 |
-} |
271 |
- |
272 |
-src_compile() { |
273 |
- CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \ |
274 |
- MOZ_MAKE_FLAGS="${MAKEOPTS}" SHELL="${SHELL}" \ |
275 |
- emake V=1 -f client.mk |
276 |
- |
277 |
- mozlinguas_src_compile |
278 |
- |
279 |
- # Only build enigmail extension if conditions are met. |
280 |
- if use crypt ; then |
281 |
- einfo "Building enigmail" |
282 |
- pushd "${WORKDIR}"/enigmail &>/dev/null || die |
283 |
- emake -j1 |
284 |
- emake xpi |
285 |
- popd &>/dev/null || die |
286 |
- fi |
287 |
-} |
288 |
- |
289 |
-src_install() { |
290 |
- MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
291 |
- DICTPATH="\"${EPREFIX}/usr/share/myspell\"" |
292 |
- |
293 |
- local emid |
294 |
- cd "${BUILD_OBJ_DIR}" || die |
295 |
- |
296 |
- # Pax mark xpcshell for hardened support, only used for startupcache creation. |
297 |
- pax-mark m "${BUILD_OBJ_DIR}/dist/bin/xpcshell" |
298 |
- |
299 |
- # Copy our preference before omnijar is created. |
300 |
- sed "s|SEAMONKEY_PVR|${PVR}|" "${FILESDIR}"/all-gentoo-1.js > \ |
301 |
- "${BUILD_OBJ_DIR}/dist/bin/defaults/pref/all-gentoo.js" \ |
302 |
- || die |
303 |
- |
304 |
- # Set default path to search for dictionaries. |
305 |
- echo "pref(\"spellchecker.dictionary_path\", ${DICTPATH});" \ |
306 |
- >> "${BUILD_OBJ_DIR}/dist/bin/defaults/pref/all-gentoo.js" \ |
307 |
- || die |
308 |
- |
309 |
- echo 'pref("extensions.autoDisableScopes", 3);' >> \ |
310 |
- "${BUILD_OBJ_DIR}/dist/bin/defaults/pref/all-gentoo.js" \ |
311 |
- || die |
312 |
- |
313 |
- local plugin |
314 |
- if ! use gmp-autoupdate ; then |
315 |
- for plugin in gmp-gmpopenh264 ; do |
316 |
- echo "pref(\"media.${plugin}.autoupdate\", false);" >> \ |
317 |
- "${S}/${BUILD_OBJ_DIR}/dist/bin/browser/defaults/preferences/all-gentoo.js" \ |
318 |
- || dir |
319 |
- done |
320 |
- fi |
321 |
- |
322 |
- MOZ_MAKE_FLAGS="${MAKEOPTS}" \ |
323 |
- emake DESTDIR="${D}" install |
324 |
- cp "${FILESDIR}"/${PN}.desktop "${T}" || die |
325 |
- |
326 |
- if use crypt ; then |
327 |
- local em_dir="${WORKDIR}/enigmail/build" |
328 |
- pushd "${T}" &>/dev/null || die |
329 |
- unzip "${em_dir}"/enigmail*.xpi install.rdf || die |
330 |
- emid=$(sed -n '/<em:id>/!d; s/.*\({.*}\).*/\1/; p; q' install.rdf) |
331 |
- #' |
332 |
- dodir ${MOZILLA_FIVE_HOME}/extensions/${emid} |
333 |
- cd "${D}"${MOZILLA_FIVE_HOME}/extensions/${emid} || die |
334 |
- unzip "${em_dir}"/enigmail*.xpi || die |
335 |
- |
336 |
- popd &>/dev/null || die |
337 |
- fi |
338 |
- |
339 |
- sed 's|^\(MimeType=.*\)$|\1text/x-vcard;text/directory;application/mbox;message/rfc822;x-scheme-handler/mailto;|' \ |
340 |
- -i "${T}"/${PN}.desktop || die |
341 |
- sed 's|^\(Categories=.*\)$|\1Email;|' -i "${T}"/${PN}.desktop \ |
342 |
- || die |
343 |
- |
344 |
- # Install language packs |
345 |
- mozlinguas_src_install |
346 |
- |
347 |
- # Add StartupNotify=true bug 290401 |
348 |
- if use startup-notification ; then |
349 |
- echo "StartupNotify=true" >> "${T}"/${PN}.desktop || die |
350 |
- fi |
351 |
- |
352 |
- # Install icon and .desktop for menu entry |
353 |
- newicon "${S}"/suite/branding/nightly/content/icon64.png ${PN}.png |
354 |
- domenu "${T}"/${PN}.desktop |
355 |
- |
356 |
- # Required in order to use plugins and even run seamonkey on hardened. |
357 |
- pax-mark m "${ED}"${MOZILLA_FIVE_HOME}/{seamonkey,seamonkey-bin,plugin-container} |
358 |
- |
359 |
- if use minimal ; then |
360 |
- rm -rf "${ED}"/usr/include "${ED}${MOZILLA_FIVE_HOME}"/{idl,include,lib,sdk} |
361 |
- fi |
362 |
- |
363 |
- # Handle plugins dir through nsplugins.eclass |
364 |
- share_plugins_dir |
365 |
- |
366 |
- #doman "${BUILD_OBJ_DIR}/suite/app/${PN}.1" |
367 |
- |
368 |
- # revdep-rebuild entry |
369 |
- insinto /etc/revdep-rebuild |
370 |
- echo "SEARCH_DIRS_MASK=${MOZILLA_FIVE_HOME}*" >> ${T}/11${PN} |
371 |
- doins "${T}"/11${PN} |
372 |
-} |
373 |
- |
374 |
-pkg_preinst() { |
375 |
- MOZILLA_FIVE_HOME="${ROOT}/usr/$(get_libdir)/${PN}" |
376 |
- |
377 |
- if [ -d ${MOZILLA_FIVE_HOME}/plugins ] ; then |
378 |
- rm ${MOZILLA_FIVE_HOME}/plugins -rf |
379 |
- fi |
380 |
-} |
381 |
- |
382 |
-pkg_postinst() { |
383 |
- MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
384 |
- |
385 |
- # Update mimedb for the new .desktop file |
386 |
- fdo-mime_desktop_database_update |
387 |
- |
388 |
- if use chatzilla ; then |
389 |
- elog "chatzilla is now an extension which can be en-/disabled and configured via" |
390 |
- elog "the Add-on manager." |
391 |
- fi |
392 |
-} |
393 |
|
394 |
diff --git a/www-client/seamonkey/seamonkey-2.35_pre20150713.ebuild b/www-client/seamonkey/seamonkey-2.35_pre20150713.ebuild |
395 |
deleted file mode 100644 |
396 |
index 8ea0d2a..0000000 |
397 |
--- a/www-client/seamonkey/seamonkey-2.35_pre20150713.ebuild |
398 |
+++ /dev/null |
399 |
@@ -1,373 +0,0 @@ |
400 |
-# Copyright 1999-2015 Gentoo Foundation |
401 |
-# Distributed under the terms of the GNU General Public License v2 |
402 |
-# $Id$ |
403 |
- |
404 |
-EAPI=5 |
405 |
-WANT_AUTOCONF="2.1" |
406 |
- |
407 |
-# This list can be updated with scripts/get_langs.sh from the mozilla overlay |
408 |
-MOZ_LANGS=(be ca cs de en en-GB en-US es-AR es-ES fi fr gl hu it ja lt nb-NO nl |
409 |
- pl pt-PT ru sk sv-SE tr uk zh-CN zh-TW) |
410 |
- |
411 |
-MOZ_PV="${PV/_pre*}" |
412 |
-MOZ_PV="${MOZ_PV/_alpha/a}" |
413 |
-MOZ_PV="${MOZ_PV/_beta/b}" |
414 |
-MOZ_PV="${MOZ_PV/_rc/rc}" |
415 |
-MOZ_PV="${MOZ_PV/_rc*}" |
416 |
-MOZ_P="${P}" |
417 |
-MY_MOZ_P="${PN}-${MOZ_PV}" |
418 |
- |
419 |
-if [[ ${PV} == *_pre* ]] ; then |
420 |
-# This version generates langpacks from a tarball of l10n sources |
421 |
- MOZ_FTP_URI="http://dev.gentoo.org/~axs/distfiles/" |
422 |
- MOZ_GENERATE_LANGPACKS=1 |
423 |
- MOZ_L10N_SOURCEDIR="${WORKDIR}/l10n-sources" |
424 |
-# Poly-C's originals |
425 |
-# MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/${PN}/candidates/${MOZ_PV}-candidates/build${PV##*_pre}" |
426 |
-# MOZ_LANGPACK_PREFIX="linux-i686/xpi/" |
427 |
- # And the langpack stuff stays at eclass defaults |
428 |
-else |
429 |
- MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/${PN}/releases/${MOZ_PV}" |
430 |
- MOZ_LANGPACK_PREFIX="langpack/${MY_MOZ_P}." |
431 |
- MOZ_LANGPACK_SUFFIX=".langpack.xpi" |
432 |
-fi |
433 |
- |
434 |
-MOZCONFIG_OPTIONAL_WIFI=1 |
435 |
-MOZCONFIG_OPTIONAL_JIT="enabled" |
436 |
-inherit check-reqs flag-o-matic toolchain-funcs eutils mozconfig-v6.38 multilib pax-utils fdo-mime autotools mozextension nsplugins mozlinguas |
437 |
- |
438 |
-PATCHFF="firefox-38.0-patches-0.3" |
439 |
-PATCH="${PN}-2.33-patches-01" |
440 |
-EMVER="1.8.2" |
441 |
- |
442 |
-DESCRIPTION="Seamonkey Web Browser" |
443 |
-HOMEPAGE="http://www.seamonkey-project.org" |
444 |
- |
445 |
-if [[ ${PV} == *_pre* ]] ; then |
446 |
- # pre-releases. No need for arch teams to change KEYWORDS here. |
447 |
- |
448 |
- KEYWORDS="" |
449 |
-else |
450 |
- # This is where arch teams should change the KEYWORDS. |
451 |
- |
452 |
- KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~x86" |
453 |
-fi |
454 |
- |
455 |
-SLOT="0" |
456 |
-LICENSE="MPL-2.0 GPL-2 LGPL-2.1" |
457 |
-IUSE="+chatzilla +crypt +gmp-autoupdate +ipc minimal pulseaudio +roaming selinux test" |
458 |
- |
459 |
-SRC_URI="${SRC_URI} |
460 |
- ${MOZ_FTP_URI}/source/${MY_MOZ_P}.source.tar.bz2 -> ${P}.source.tar.bz2 |
461 |
- http://dev.gentoo.org/~axs/distfiles/${P}-l10n-sources.tar.xz |
462 |
- http://dev.gentoo.org/~axs/mozilla/patchsets/${PATCHFF}.tar.xz |
463 |
- http://dev.gentoo.org/~polynomial-c/mozilla/patchsets/${PATCH}.tar.xz |
464 |
- http://dev.gentoo.org/~polynomial-c/mozilla/patchsets/${PATCHFF}.tar.xz |
465 |
- crypt? ( http://www.enigmail.net/download/source/enigmail-${EMVER}.tar.gz )" |
466 |
- |
467 |
-ASM_DEPEND=">=dev-lang/yasm-1.1" |
468 |
- |
469 |
-RDEPEND=">=dev-libs/nss-3.19.2 |
470 |
- >=dev-libs/nspr-4.10.8 |
471 |
- crypt? ( || ( |
472 |
- ( >=app-crypt/gnupg-2.0 |
473 |
- || ( |
474 |
- app-crypt/pinentry[gtk] |
475 |
- app-crypt/pinentry[qt4] |
476 |
- ) |
477 |
- ) |
478 |
- =app-crypt/gnupg-1.4* ) ) |
479 |
- system-sqlite? ( >=dev-db/sqlite-3.8.7.4:3[secure-delete,debug=] )" |
480 |
- |
481 |
-DEPEND="${RDEPEND} |
482 |
- !elibc_glibc? ( !elibc_uclibc? ( dev-libs/libexecinfo ) ) |
483 |
- crypt? ( dev-lang/perl ) |
484 |
- amd64? ( ${ASM_DEPEND} |
485 |
- virtual/opengl ) |
486 |
- x86? ( ${ASM_DEPEND} |
487 |
- virtual/opengl )" |
488 |
- |
489 |
-if [[ ${PV} == *beta* ]] ; then |
490 |
- S="${WORKDIR}/comm-beta" |
491 |
-else |
492 |
- S="${WORKDIR}/comm-release" |
493 |
-fi |
494 |
- |
495 |
-BUILD_OBJ_DIR="${S}/seamonk" |
496 |
- |
497 |
-pkg_setup() { |
498 |
- if [[ ${PV} == *_pre* ]] ; then |
499 |
- ewarn "You're using an unofficial release of ${PN}. Don't file any bug in" |
500 |
- ewarn "Gentoo's Bugtracker against this package in case it breaks for you." |
501 |
- ewarn "Those belong to upstream: https://bugzilla.mozilla.org" |
502 |
- fi |
503 |
- |
504 |
- moz_pkgsetup |
505 |
-} |
506 |
- |
507 |
-pkg_pretend() { |
508 |
- # Ensure we have enough disk space to compile |
509 |
- if use debug || use test ; then |
510 |
- CHECKREQS_DISK_BUILD="8G" |
511 |
- else |
512 |
- CHECKREQS_DISK_BUILD="4G" |
513 |
- fi |
514 |
- check-reqs_pkg_setup |
515 |
-} |
516 |
- |
517 |
-src_unpack() { |
518 |
- unpack ${A} |
519 |
- |
520 |
- # Unpack language packs |
521 |
- mozlinguas_src_unpack |
522 |
-} |
523 |
- |
524 |
-src_prepare() { |
525 |
- # Apply our patches |
526 |
- EPATCH_SUFFIX="patch" \ |
527 |
- EPATCH_FORCE="yes" \ |
528 |
- epatch "${WORKDIR}/seamonkey" |
529 |
- |
530 |
- epatch "${FILESDIR}"/${PN}-2.35-jemalloc-configure.patch |
531 |
- |
532 |
- # browser patches go here |
533 |
- pushd "${S}"/mozilla &>/dev/null || die |
534 |
- EPATCH_EXCLUDE="2000-firefox_gentoo_install_dirs.patch |
535 |
- 8002_jemalloc_configure_unbashify.patch" \ |
536 |
- EPATCH_SUFFIX="patch" \ |
537 |
- EPATCH_FORCE="yes" \ |
538 |
- epatch "${WORKDIR}/firefox" |
539 |
- popd &>/dev/null || die |
540 |
- # drop -Wl,--build-id from LDFLAGS, bug #465466 |
541 |
- |
542 |
- # Shell scripts sometimes contain DOS line endings; bug 391889 |
543 |
- grep -rlZ --include="*.sh" $'\r$' . | |
544 |
- while read -r -d $'\0' file ; do |
545 |
- einfo edos2unix "${file}" |
546 |
- edos2unix "${file}" |
547 |
- done |
548 |
- |
549 |
- # Allow user to apply any additional patches without modifing ebuild |
550 |
- epatch_user |
551 |
- |
552 |
- local ms="${S}/mozilla" |
553 |
- |
554 |
- # Enable gnomebreakpad |
555 |
- if use debug ; then |
556 |
- sed -i -e "s:GNOME_DISABLE_CRASH_DIALOG=1:GNOME_DISABLE_CRASH_DIALOG=0:g" \ |
557 |
- "${ms}"/build/unix/run-mozilla.sh || die "sed failed!" |
558 |
- fi |
559 |
- |
560 |
- # Ensure that are plugins dir is enabled as default |
561 |
- sed -i -e "s:/usr/lib/mozilla/plugins:/usr/lib/nsbrowser/plugins:" \ |
562 |
- "${ms}"/xpcom/io/nsAppFileLocationProvider.cpp || die "sed failed to replace plugin path for 32bit!" |
563 |
- sed -i -e "s:/usr/lib64/mozilla/plugins:/usr/lib64/nsbrowser/plugins:" \ |
564 |
- "${ms}"/xpcom/io/nsAppFileLocationProvider.cpp || die "sed failed to replace plugin path for 64bit!" |
565 |
- |
566 |
- # Don't exit with error when some libs are missing which we have in |
567 |
- # system. |
568 |
- sed '/^MOZ_PKG_FATAL_WARNINGS/s@= 1@= 0@' \ |
569 |
- -i "${S}"/suite/installer/Makefile.in || die |
570 |
- # Don't error out when there's no files to be removed: |
571 |
- sed 's@\(xargs rm\)$@\1 -f@' \ |
572 |
- -i "${ms}"/toolkit/mozapps/installer/packager.mk || die |
573 |
- |
574 |
- eautoreconf |
575 |
- cd "${S}"/mozilla || die |
576 |
- eautoconf |
577 |
- cd "${S}"/mozilla/js/src || die |
578 |
- eautoconf |
579 |
- cd "${S}"/mozilla/memory/jemalloc/src || die |
580 |
- WANT_AUTOCONF= eautoconf |
581 |
-} |
582 |
- |
583 |
-src_configure() { |
584 |
- MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
585 |
- MEXTENSIONS="default" |
586 |
- # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys) |
587 |
- # Note: These are for Gentoo Linux use ONLY. For your own distribution, please |
588 |
- # get your own set of keys. |
589 |
- _google_api_key=AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc |
590 |
- |
591 |
- #################################### |
592 |
- # |
593 |
- # mozconfig, CFLAGS and CXXFLAGS setup |
594 |
- # |
595 |
- #################################### |
596 |
- |
597 |
- mozconfig_init |
598 |
- mozconfig_config |
599 |
- |
600 |
- # It doesn't compile on alpha without this LDFLAGS |
601 |
- use alpha && append-ldflags "-Wl,--no-relax" |
602 |
- |
603 |
- if ! use chatzilla ; then |
604 |
- MEXTENSIONS+=",-irc" |
605 |
- fi |
606 |
- if ! use roaming ; then |
607 |
- MEXTENSIONS+=",-sroaming" |
608 |
- fi |
609 |
- |
610 |
- # Setup api key for location services |
611 |
- echo -n "${_google_api_key}" > "${S}"/google-api-key |
612 |
- mozconfig_annotate '' --with-google-api-keyfile="${S}/google-api-key" |
613 |
- |
614 |
- mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}" |
615 |
- mozconfig_annotate '' --enable-jsd |
616 |
- mozconfig_annotate '' --enable-canvas |
617 |
- |
618 |
- # Other sm-specific settings |
619 |
- mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME} |
620 |
- |
621 |
- mozconfig_annotate '' --enable-safe-browsing |
622 |
- |
623 |
- mozlinguas_mozconfig |
624 |
- |
625 |
- # Use an objdir to keep things organized. |
626 |
- echo "mk_add_options MOZ_OBJDIR=${BUILD_OBJ_DIR}" \ |
627 |
- >> "${S}"/.mozconfig |
628 |
- |
629 |
- # Finalize and report settings |
630 |
- mozconfig_final |
631 |
- |
632 |
- if use crypt ; then |
633 |
- pushd "${WORKDIR}"/enigmail &>/dev/null || die |
634 |
- econf |
635 |
- popd &>/dev/null || die |
636 |
- fi |
637 |
- |
638 |
- # Work around breakage in makeopts with --no-print-directory |
639 |
- MAKEOPTS="${MAKEOPTS/--no-print-directory/}" |
640 |
- |
641 |
- if [[ $(gcc-major-version) -lt 4 ]] ; then |
642 |
- append-cxxflags -fno-stack-protector |
643 |
- elif [[ $(gcc-major-version) -gt 4 || $(gcc-minor-version) -gt 3 ]] ; then |
644 |
- if use amd64 || use x86 ; then |
645 |
- append-flags -mno-avx |
646 |
- fi |
647 |
- fi |
648 |
- |
649 |
- emake V=1 -f client.mk configure |
650 |
-} |
651 |
- |
652 |
-src_compile() { |
653 |
- CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \ |
654 |
- MOZ_MAKE_FLAGS="${MAKEOPTS}" SHELL="${SHELL}" \ |
655 |
- emake V=1 -f client.mk |
656 |
- |
657 |
- mozlinguas_src_compile |
658 |
- |
659 |
- # Only build enigmail extension if conditions are met. |
660 |
- if use crypt ; then |
661 |
- einfo "Building enigmail" |
662 |
- pushd "${WORKDIR}"/enigmail &>/dev/null || die |
663 |
- emake -j1 |
664 |
- emake xpi |
665 |
- popd &>/dev/null || die |
666 |
- fi |
667 |
-} |
668 |
- |
669 |
-src_install() { |
670 |
- MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
671 |
- DICTPATH="\"${EPREFIX}/usr/share/myspell\"" |
672 |
- |
673 |
- local emid |
674 |
- cd "${BUILD_OBJ_DIR}" || die |
675 |
- |
676 |
- # Pax mark xpcshell for hardened support, only used for startupcache creation. |
677 |
- pax-mark m "${BUILD_OBJ_DIR}/dist/bin/xpcshell" |
678 |
- |
679 |
- # Copy our preference before omnijar is created. |
680 |
- sed "s|SEAMONKEY_PVR|${PVR}|" "${FILESDIR}"/all-gentoo-1.js > \ |
681 |
- "${BUILD_OBJ_DIR}/dist/bin/defaults/pref/all-gentoo.js" \ |
682 |
- || die |
683 |
- |
684 |
- # Set default path to search for dictionaries. |
685 |
- echo "pref(\"spellchecker.dictionary_path\", ${DICTPATH});" \ |
686 |
- >> "${BUILD_OBJ_DIR}/dist/bin/defaults/pref/all-gentoo.js" \ |
687 |
- || die |
688 |
- |
689 |
- echo 'pref("extensions.autoDisableScopes", 3);' >> \ |
690 |
- "${BUILD_OBJ_DIR}/dist/bin/defaults/pref/all-gentoo.js" \ |
691 |
- || die |
692 |
- |
693 |
- local plugin |
694 |
- if ! use gmp-autoupdate ; then |
695 |
- for plugin in gmp-gmpopenh264 ; do |
696 |
- echo "pref(\"media.${plugin}.autoupdate\", false);" >> \ |
697 |
- "${S}/${BUILD_OBJ_DIR}/dist/bin/browser/defaults/preferences/all-gentoo.js" \ |
698 |
- || dir |
699 |
- done |
700 |
- fi |
701 |
- |
702 |
- MOZ_MAKE_FLAGS="${MAKEOPTS}" \ |
703 |
- emake DESTDIR="${D}" install |
704 |
- cp "${FILESDIR}"/${PN}.desktop "${T}" || die |
705 |
- |
706 |
- if use crypt ; then |
707 |
- local em_dir="${WORKDIR}/enigmail/build" |
708 |
- pushd "${T}" &>/dev/null || die |
709 |
- unzip "${em_dir}"/enigmail*.xpi install.rdf || die |
710 |
- emid=$(sed -n '/<em:id>/!d; s/.*\({.*}\).*/\1/; p; q' install.rdf) |
711 |
- #' |
712 |
- dodir ${MOZILLA_FIVE_HOME}/extensions/${emid} |
713 |
- cd "${D}"${MOZILLA_FIVE_HOME}/extensions/${emid} || die |
714 |
- unzip "${em_dir}"/enigmail*.xpi || die |
715 |
- |
716 |
- popd &>/dev/null || die |
717 |
- fi |
718 |
- |
719 |
- sed 's|^\(MimeType=.*\)$|\1text/x-vcard;text/directory;application/mbox;message/rfc822;x-scheme-handler/mailto;|' \ |
720 |
- -i "${T}"/${PN}.desktop || die |
721 |
- sed 's|^\(Categories=.*\)$|\1Email;|' -i "${T}"/${PN}.desktop \ |
722 |
- || die |
723 |
- |
724 |
- # Install language packs |
725 |
- mozlinguas_src_install |
726 |
- |
727 |
- # Add StartupNotify=true bug 290401 |
728 |
- if use startup-notification ; then |
729 |
- echo "StartupNotify=true" >> "${T}"/${PN}.desktop || die |
730 |
- fi |
731 |
- |
732 |
- # Install icon and .desktop for menu entry |
733 |
- newicon "${S}"/suite/branding/nightly/content/icon64.png ${PN}.png |
734 |
- domenu "${T}"/${PN}.desktop |
735 |
- |
736 |
- # Required in order to use plugins and even run seamonkey on hardened. |
737 |
- pax-mark m "${ED}"${MOZILLA_FIVE_HOME}/{seamonkey,seamonkey-bin,plugin-container} |
738 |
- |
739 |
- if use minimal ; then |
740 |
- rm -rf "${ED}"/usr/include "${ED}${MOZILLA_FIVE_HOME}"/{idl,include,lib,sdk} |
741 |
- fi |
742 |
- |
743 |
- # Handle plugins dir through nsplugins.eclass |
744 |
- share_plugins_dir |
745 |
- |
746 |
- #doman "${BUILD_OBJ_DIR}/suite/app/${PN}.1" |
747 |
- |
748 |
- # revdep-rebuild entry |
749 |
- insinto /etc/revdep-rebuild |
750 |
- echo "SEARCH_DIRS_MASK=${MOZILLA_FIVE_HOME}*" >> ${T}/11${PN} |
751 |
- doins "${T}"/11${PN} |
752 |
-} |
753 |
- |
754 |
-pkg_preinst() { |
755 |
- MOZILLA_FIVE_HOME="${ROOT}/usr/$(get_libdir)/${PN}" |
756 |
- |
757 |
- if [ -d ${MOZILLA_FIVE_HOME}/plugins ] ; then |
758 |
- rm ${MOZILLA_FIVE_HOME}/plugins -rf |
759 |
- fi |
760 |
-} |
761 |
- |
762 |
-pkg_postinst() { |
763 |
- MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
764 |
- |
765 |
- # Update mimedb for the new .desktop file |
766 |
- fdo-mime_desktop_database_update |
767 |
- |
768 |
- if use chatzilla ; then |
769 |
- elog "chatzilla is now an extension which can be en-/disabled and configured via" |
770 |
- elog "the Add-on manager." |
771 |
- fi |
772 |
-} |
773 |
|
774 |
diff --git a/www-client/seamonkey/seamonkey-2.38.ebuild b/www-client/seamonkey/seamonkey-2.38.ebuild |
775 |
deleted file mode 100644 |
776 |
index 069b43a..0000000 |
777 |
--- a/www-client/seamonkey/seamonkey-2.38.ebuild |
778 |
+++ /dev/null |
779 |
@@ -1,352 +0,0 @@ |
780 |
-# Copyright 1999-2015 Gentoo Foundation |
781 |
-# Distributed under the terms of the GNU General Public License v2 |
782 |
-# $Id: e5d1b01455053fbfd96c96c7a98246daa8d1a2e7 $ |
783 |
- |
784 |
-EAPI=5 |
785 |
-WANT_AUTOCONF="2.1" |
786 |
- |
787 |
-# This list can be updated with scripts/get_langs.sh from the mozilla overlay |
788 |
-MOZ_LANGS=(be ca cs de en en-GB en-US es-AR es-ES fi fr gl hu it ja lt nb-NO nl |
789 |
- pl pt-PT ru sk sv-SE tr uk zh-CN zh-TW) |
790 |
- |
791 |
-MOZ_PV="${PV/_pre*}" |
792 |
-MOZ_PV="${MOZ_PV/_alpha/a}" |
793 |
-MOZ_PV="${MOZ_PV/_beta/b}" |
794 |
-MOZ_PV="${MOZ_PV/_rc/rc}" |
795 |
-MOZ_P="${P}" |
796 |
-MY_MOZ_P="${PN}-${MOZ_PV}" |
797 |
- |
798 |
-if [[ ${PV} == *_pre* ]] ; then |
799 |
- MOZ_HTTP_URI="https://archive.mozilla.org/pub/${PN}/candidates/${MOZ_PV}-candidates/build${PV##*_pre}" |
800 |
- MOZ_LANGPACK_PREFIX="linux-i686/xpi/" |
801 |
- # And the langpack stuff stays at eclass defaults |
802 |
-else |
803 |
- MOZ_HTTP_URI="https://archive.mozilla.org/pub/${PN}/releases/${MOZ_PV}" |
804 |
- MOZ_LANGPACK_PREFIX="langpack/${MY_MOZ_P}." |
805 |
- MOZ_LANGPACK_SUFFIX=".langpack.xpi" |
806 |
-fi |
807 |
- |
808 |
-MOZCONFIG_OPTIONAL_WIFI=1 |
809 |
-MOZCONFIG_OPTIONAL_JIT="enabled" |
810 |
-inherit check-reqs flag-o-matic toolchain-funcs eutils mozconfig-v6.41 multilib pax-utils fdo-mime autotools mozextension nsplugins mozlinguas |
811 |
- |
812 |
-PATCHFF="firefox-40.0-patches-0.01" |
813 |
-PATCH="${PN}-2.33-patches-01" |
814 |
-EMVER="1.8.2" |
815 |
- |
816 |
-DESCRIPTION="Seamonkey Web Browser" |
817 |
-HOMEPAGE="http://www.seamonkey-project.org" |
818 |
- |
819 |
-[[ ${PV} != *_pre* ]] && \ |
820 |
-KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~x86" |
821 |
- |
822 |
-SLOT="0" |
823 |
-LICENSE="MPL-2.0 GPL-2 LGPL-2.1" |
824 |
-IUSE="+chatzilla +crypt +gmp-autoupdate +ipc minimal pulseaudio +roaming selinux test" |
825 |
- |
826 |
-SRC_URI="${SRC_URI} |
827 |
- ${MOZ_HTTP_URI}/source/${MY_MOZ_P}.source.tar.xz -> ${P}.source.tar.xz |
828 |
- https://dev.gentoo.org/~axs/mozilla/patchsets/${PATCHFF}.tar.xz |
829 |
- https://dev.gentoo.org/~polynomial-c/mozilla/patchsets/${PATCH}.tar.xz |
830 |
- crypt? ( https://www.enigmail.net/download/source/enigmail-${EMVER}.tar.gz )" |
831 |
- |
832 |
-ASM_DEPEND=">=dev-lang/yasm-1.1" |
833 |
- |
834 |
-RDEPEND=">=dev-libs/nss-3.19.2 |
835 |
- >=dev-libs/nspr-4.10.8 |
836 |
- crypt? ( || ( |
837 |
- ( >=app-crypt/gnupg-2.0 |
838 |
- || ( |
839 |
- app-crypt/pinentry[gtk] |
840 |
- app-crypt/pinentry[qt4] |
841 |
- ) |
842 |
- ) |
843 |
- =app-crypt/gnupg-1.4* ) )" |
844 |
- |
845 |
-DEPEND="${RDEPEND} |
846 |
- !elibc_glibc? ( !elibc_uclibc? ( dev-libs/libexecinfo ) ) |
847 |
- crypt? ( dev-lang/perl ) |
848 |
- amd64? ( ${ASM_DEPEND} |
849 |
- virtual/opengl ) |
850 |
- x86? ( ${ASM_DEPEND} |
851 |
- virtual/opengl )" |
852 |
- |
853 |
-if [[ ${PV} == *beta* ]] ; then |
854 |
- S="${WORKDIR}/comm-beta" |
855 |
-else |
856 |
- S="${WORKDIR}/comm-release" |
857 |
-fi |
858 |
- |
859 |
-BUILD_OBJ_DIR="${S}/seamonk" |
860 |
- |
861 |
-pkg_setup() { |
862 |
- if [[ ${PV} == *_pre* ]] ; then |
863 |
- ewarn "You're using an unofficial release of ${PN}. Don't file any bug in" |
864 |
- ewarn "Gentoo's Bugtracker against this package in case it breaks for you." |
865 |
- ewarn "Those belong to upstream: https://bugzilla.mozilla.org" |
866 |
- fi |
867 |
- |
868 |
- moz_pkgsetup |
869 |
-} |
870 |
- |
871 |
-pkg_pretend() { |
872 |
- # Ensure we have enough disk space to compile |
873 |
- if use debug || use test ; then |
874 |
- CHECKREQS_DISK_BUILD="8G" |
875 |
- else |
876 |
- CHECKREQS_DISK_BUILD="4G" |
877 |
- fi |
878 |
- check-reqs_pkg_setup |
879 |
-} |
880 |
- |
881 |
-src_unpack() { |
882 |
- unpack ${A} |
883 |
- |
884 |
- # Unpack language packs |
885 |
- mozlinguas_src_unpack |
886 |
-} |
887 |
- |
888 |
-src_prepare() { |
889 |
- # Apply our patches |
890 |
- EPATCH_EXCLUDE="2001_ldap_respect_cflags.patch" \ |
891 |
- EPATCH_SUFFIX="patch" \ |
892 |
- EPATCH_FORCE="yes" \ |
893 |
- epatch "${WORKDIR}/seamonkey" |
894 |
- |
895 |
- # browser patches go here |
896 |
- pushd "${S}"/mozilla &>/dev/null || die |
897 |
- EPATCH_EXCLUDE="2000-firefox_gentoo_install_dirs.patch" \ |
898 |
- EPATCH_SUFFIX="patch" \ |
899 |
- EPATCH_FORCE="yes" \ |
900 |
- epatch "${WORKDIR}/firefox" |
901 |
- epatch "${FILESDIR}"/firefox-38-hppa-js-syntax-error.patch #556196 |
902 |
- epatch "${FILESDIR}"/firefox-38-dont-hardcode-libc-soname.patch #557956 |
903 |
- popd &>/dev/null || die |
904 |
- |
905 |
- # Shell scripts sometimes contain DOS line endings; bug 391889 |
906 |
- grep -rlZ --include="*.sh" $'\r$' . | |
907 |
- while read -r -d $'\0' file ; do |
908 |
- einfo edos2unix "${file}" |
909 |
- edos2unix "${file}" |
910 |
- done |
911 |
- |
912 |
- # Allow user to apply any additional patches without modifing ebuild |
913 |
- epatch_user |
914 |
- |
915 |
- local ms="${S}/mozilla" |
916 |
- |
917 |
- # Enable gnomebreakpad |
918 |
- if use debug ; then |
919 |
- sed -i -e "s:GNOME_DISABLE_CRASH_DIALOG=1:GNOME_DISABLE_CRASH_DIALOG=0:g" \ |
920 |
- "${ms}"/build/unix/run-mozilla.sh || die "sed failed!" |
921 |
- fi |
922 |
- |
923 |
- # Ensure that are plugins dir is enabled as default |
924 |
- sed -i -e "s:/usr/lib/mozilla/plugins:/usr/lib/nsbrowser/plugins:" \ |
925 |
- "${ms}"/xpcom/io/nsAppFileLocationProvider.cpp || die "sed failed to replace plugin path for 32bit!" |
926 |
- sed -i -e "s:/usr/lib64/mozilla/plugins:/usr/lib64/nsbrowser/plugins:" \ |
927 |
- "${ms}"/xpcom/io/nsAppFileLocationProvider.cpp || die "sed failed to replace plugin path for 64bit!" |
928 |
- |
929 |
- # Don't exit with error when some libs are missing which we have in |
930 |
- # system. |
931 |
- sed '/^MOZ_PKG_FATAL_WARNINGS/s@= 1@= 0@' \ |
932 |
- -i "${S}"/suite/installer/Makefile.in || die |
933 |
- # Don't error out when there's no files to be removed: |
934 |
- sed 's@\(xargs rm\)$@\1 -f@' \ |
935 |
- -i "${ms}"/toolkit/mozapps/installer/packager.mk || die |
936 |
- |
937 |
- eautoreconf |
938 |
- cd "${S}"/mozilla || die |
939 |
- eautoconf |
940 |
- cd "${S}"/mozilla/js/src || die |
941 |
- eautoconf |
942 |
- cd "${S}"/mozilla/memory/jemalloc/src || die |
943 |
- WANT_AUTOCONF= eautoconf |
944 |
-} |
945 |
- |
946 |
-src_configure() { |
947 |
- MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
948 |
- MEXTENSIONS="default" |
949 |
- # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys) |
950 |
- # Note: These are for Gentoo Linux use ONLY. For your own distribution, please |
951 |
- # get your own set of keys. |
952 |
- _google_api_key=AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc |
953 |
- |
954 |
- #################################### |
955 |
- # |
956 |
- # mozconfig, CFLAGS and CXXFLAGS setup |
957 |
- # |
958 |
- #################################### |
959 |
- |
960 |
- mozconfig_init |
961 |
- mozconfig_config |
962 |
- |
963 |
- # It doesn't compile on alpha without this LDFLAGS |
964 |
- use alpha && append-ldflags "-Wl,--no-relax" |
965 |
- |
966 |
- if ! use chatzilla ; then |
967 |
- MEXTENSIONS+=",-irc" |
968 |
- fi |
969 |
- if ! use roaming ; then |
970 |
- MEXTENSIONS+=",-sroaming" |
971 |
- fi |
972 |
- |
973 |
- # Setup api key for location services |
974 |
- echo -n "${_google_api_key}" > "${S}"/google-api-key |
975 |
- mozconfig_annotate '' --with-google-api-keyfile="${S}/google-api-key" |
976 |
- |
977 |
- mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}" |
978 |
- mozconfig_annotate '' --enable-jsd |
979 |
- mozconfig_annotate '' --enable-canvas |
980 |
- |
981 |
- # Other sm-specific settings |
982 |
- mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME} |
983 |
- |
984 |
- mozconfig_annotate '' --enable-safe-browsing |
985 |
- |
986 |
- # Use an objdir to keep things organized. |
987 |
- echo "mk_add_options MOZ_OBJDIR=${BUILD_OBJ_DIR}" \ |
988 |
- >> "${S}"/.mozconfig |
989 |
- |
990 |
- # Finalize and report settings |
991 |
- mozconfig_final |
992 |
- |
993 |
- if use crypt ; then |
994 |
- pushd "${WORKDIR}"/enigmail &>/dev/null || die |
995 |
- econf |
996 |
- popd &>/dev/null || die |
997 |
- fi |
998 |
- |
999 |
- # Work around breakage in makeopts with --no-print-directory |
1000 |
- MAKEOPTS="${MAKEOPTS/--no-print-directory/}" |
1001 |
- |
1002 |
- if [[ $(gcc-major-version) -lt 4 ]] ; then |
1003 |
- append-cxxflags -fno-stack-protector |
1004 |
- elif [[ $(gcc-major-version) -gt 4 || $(gcc-minor-version) -gt 3 ]] ; then |
1005 |
- if use amd64 || use x86 ; then |
1006 |
- append-flags -mno-avx |
1007 |
- fi |
1008 |
- fi |
1009 |
- |
1010 |
- emake V=1 -f client.mk configure |
1011 |
-} |
1012 |
- |
1013 |
-src_compile() { |
1014 |
- CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \ |
1015 |
- MOZ_MAKE_FLAGS="${MAKEOPTS}" SHELL="${SHELL}" \ |
1016 |
- emake V=1 -f client.mk |
1017 |
- |
1018 |
- # Only build enigmail extension if conditions are met. |
1019 |
- if use crypt ; then |
1020 |
- einfo "Building enigmail" |
1021 |
- pushd "${WORKDIR}"/enigmail &>/dev/null || die |
1022 |
- emake -j1 |
1023 |
- emake xpi |
1024 |
- popd &>/dev/null || die |
1025 |
- fi |
1026 |
-} |
1027 |
- |
1028 |
-src_install() { |
1029 |
- MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
1030 |
- DICTPATH="\"${EPREFIX}/usr/share/myspell\"" |
1031 |
- |
1032 |
- local emid |
1033 |
- cd "${BUILD_OBJ_DIR}" || die |
1034 |
- |
1035 |
- # Pax mark xpcshell for hardened support, only used for startupcache creation. |
1036 |
- pax-mark m "${BUILD_OBJ_DIR}/dist/bin/xpcshell" |
1037 |
- |
1038 |
- # Copy our preference before omnijar is created. |
1039 |
- sed "s|SEAMONKEY_PVR|${PVR}|" "${FILESDIR}"/all-gentoo-1.js > \ |
1040 |
- "${BUILD_OBJ_DIR}/dist/bin/defaults/pref/all-gentoo.js" \ |
1041 |
- || die |
1042 |
- |
1043 |
- # Set default path to search for dictionaries. |
1044 |
- echo "pref(\"spellchecker.dictionary_path\", ${DICTPATH});" \ |
1045 |
- >> "${BUILD_OBJ_DIR}/dist/bin/defaults/pref/all-gentoo.js" \ |
1046 |
- || die |
1047 |
- |
1048 |
- echo 'pref("extensions.autoDisableScopes", 3);' >> \ |
1049 |
- "${BUILD_OBJ_DIR}/dist/bin/defaults/pref/all-gentoo.js" \ |
1050 |
- || die |
1051 |
- |
1052 |
- local plugin |
1053 |
- if ! use gmp-autoupdate ; then |
1054 |
- for plugin in gmp-gmpopenh264 ; do |
1055 |
- echo "pref(\"media.${plugin}.autoupdate\", false);" >> \ |
1056 |
- "${S}/${BUILD_OBJ_DIR}/dist/bin/browser/defaults/preferences/all-gentoo.js" \ |
1057 |
- || dir |
1058 |
- done |
1059 |
- fi |
1060 |
- |
1061 |
- MOZ_MAKE_FLAGS="${MAKEOPTS}" \ |
1062 |
- emake DESTDIR="${D}" install |
1063 |
- cp "${FILESDIR}"/${PN}.desktop "${T}" || die |
1064 |
- |
1065 |
- if use crypt ; then |
1066 |
- local em_dir="${WORKDIR}/enigmail/build" |
1067 |
- pushd "${T}" &>/dev/null || die |
1068 |
- unzip "${em_dir}"/enigmail*.xpi install.rdf || die |
1069 |
- emid=$(sed -n '/<em:id>/!d; s/.*\({.*}\).*/\1/; p; q' install.rdf) |
1070 |
- #' |
1071 |
- dodir ${MOZILLA_FIVE_HOME}/extensions/${emid} |
1072 |
- cd "${D}"${MOZILLA_FIVE_HOME}/extensions/${emid} || die |
1073 |
- unzip "${em_dir}"/enigmail*.xpi || die |
1074 |
- |
1075 |
- popd &>/dev/null || die |
1076 |
- fi |
1077 |
- |
1078 |
- sed 's|^\(MimeType=.*\)$|\1text/x-vcard;text/directory;application/mbox;message/rfc822;x-scheme-handler/mailto;|' \ |
1079 |
- -i "${T}"/${PN}.desktop || die |
1080 |
- sed 's|^\(Categories=.*\)$|\1Email;|' -i "${T}"/${PN}.desktop \ |
1081 |
- || die |
1082 |
- |
1083 |
- # Install language packs |
1084 |
- mozlinguas_src_install |
1085 |
- |
1086 |
- # Add StartupNotify=true bug 290401 |
1087 |
- if use startup-notification ; then |
1088 |
- echo "StartupNotify=true" >> "${T}"/${PN}.desktop || die |
1089 |
- fi |
1090 |
- |
1091 |
- # Install icon and .desktop for menu entry |
1092 |
- newicon "${S}"/suite/branding/nightly/content/icon64.png ${PN}.png |
1093 |
- domenu "${T}"/${PN}.desktop |
1094 |
- |
1095 |
- # Required in order to use plugins and even run seamonkey on hardened. |
1096 |
- pax-mark m "${ED}"${MOZILLA_FIVE_HOME}/{seamonkey,seamonkey-bin,plugin-container} |
1097 |
- |
1098 |
- if use minimal ; then |
1099 |
- rm -rf "${ED}"/usr/include "${ED}${MOZILLA_FIVE_HOME}"/{idl,include,lib,sdk} |
1100 |
- fi |
1101 |
- |
1102 |
- # Handle plugins dir through nsplugins.eclass |
1103 |
- share_plugins_dir |
1104 |
- |
1105 |
- #doman "${BUILD_OBJ_DIR}/suite/app/${PN}.1" |
1106 |
- |
1107 |
- # revdep-rebuild entry |
1108 |
- insinto /etc/revdep-rebuild |
1109 |
- echo "SEARCH_DIRS_MASK=${MOZILLA_FIVE_HOME}*" >> ${T}/11${PN} |
1110 |
- doins "${T}"/11${PN} |
1111 |
-} |
1112 |
- |
1113 |
-pkg_preinst() { |
1114 |
- MOZILLA_FIVE_HOME="${ROOT}/usr/$(get_libdir)/${PN}" |
1115 |
- |
1116 |
- if [ -d ${MOZILLA_FIVE_HOME}/plugins ] ; then |
1117 |
- rm ${MOZILLA_FIVE_HOME}/plugins -rf |
1118 |
- fi |
1119 |
-} |
1120 |
- |
1121 |
-pkg_postinst() { |
1122 |
- MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
1123 |
- |
1124 |
- # Update mimedb for the new .desktop file |
1125 |
- fdo-mime_desktop_database_update |
1126 |
- |
1127 |
- if use chatzilla ; then |
1128 |
- elog "chatzilla is now an extension which can be en-/disabled and configured via" |
1129 |
- elog "the Add-on manager." |
1130 |
- fi |
1131 |
-} |