public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Ian Stakenvicius" <axs@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/mozilla:master commit in: www-client/seamonkey/
Date: Tue, 10 Oct 2017 01:21:05 +0000 (UTC)	[thread overview]
Message-ID: <1507598447.c9189e4f4948cd36c718d12cc9a3b8aab621facb.axs@gentoo> (raw)

commit:     c9189e4f4948cd36c718d12cc9a3b8aab621facb
Author:     Ian Stakenvicius <axs <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 10 01:15:56 2017 +0000
Commit:     Ian Stakenvicius <axs <AT> gentoo <DOT> org>
CommitDate: Tue Oct 10 01:20:47 2017 +0000
URL:        https://gitweb.gentoo.org/proj/mozilla.git/commit/?id=c9189e4f

seamonkey: bump to 2.49 built from comm-esr52.4.0

There is an upstream release candidate 2.49.1 (build2) that is checked out
from the same upstream codebase; this package uses the officially released
thunderbird tarball instead but leverages the localization files from the
release candidate.

This ebuild may go away in favour of a direct ebuild to upstream's 2.49.1
if upstream releases it in a timely fashion (at present the release is
waiting on build issues of non-linux platforms).

 www-client/seamonkey/Manifest                     |  19 +
 www-client/seamonkey/seamonkey-2.49.4.0_p0.ebuild | 445 ++++++++++++++++++++++
 2 files changed, 464 insertions(+)

diff --git a/www-client/seamonkey/Manifest b/www-client/seamonkey/Manifest
index 3d61320..de9e76f 100644
--- a/www-client/seamonkey/Manifest
+++ b/www-client/seamonkey/Manifest
@@ -23,4 +23,23 @@ DIST seamonkey-2.48-zh-CN.xpi 934871 SHA256 991629043056dd722202116ef026aeb86a86
 DIST seamonkey-2.48-zh-TW.xpi 991735 SHA256 bb41ee50948baca9e78ae1ba0174046bde21d7bb823c6b365e32d7a8c6a9c50f SHA512 d14be0b9da910e3c7014c4ac9e6fc8270eb43176623280c55eec9e63c5fd0ce9b83db781cdbcd1eae67281fd09ad6dc2218df479e66076878c6bda12c2f2eeb3 WHIRLPOOL cc9bda10829ad4149e28b82f59580bc5d2a8d91c00c0e153bdb130be60e57f155df72929029f92c61ef444b5cea48bb47e10aa48615af4686e2dfc8370565c09
 DIST seamonkey-2.48.source.tar.xz 220412744 SHA256 6f9a07c86ba6474b44e5083f9d1315d01778c097937f7da4c5701debffab2631 SHA512 b1992a1dbaeb045aea10ff02aa214ec0c1725e3ad0844d2dffd1c0d0c26754fbd98b5fb5df25a2a490ebcb7a47037c61599b0a2e9240338b4e769e529faa33cf WHIRLPOOL ab0a2ee21efb8d446283ae1df6b2af8fe318fe5dbb41563c140f13f59780c8f252028019d9c181e0b0369201808dfe306058ac6fb5d7207cfbc241ba098ab7a6
 DIST seamonkey-2.49-l10n-sources-20170727.tar.xz 13871252 SHA256 73ad2bb8f1a48d9250d5825c318672e380f534672a9ae42dd7e4ea0506aff0e6 SHA512 6d5938ad16db53629a2e46a81a67827fafd33a00ff71ff6aaeb3151c2c29ae0e59b2f5e35f7d54b1a23882b7b85467202f62653510405fa1dac2ea4180130721 WHIRLPOOL 4e6960b0d065b60142baab1af37b5baed5bc3cddef79b12c689fe735bc4dea969e09756c09da22520600835a42df9f04f45fc8dfac7b92cc04251d403392b54a
+DIST seamonkey-2.49.4.0-cs.xpi 941974 SHA256 3da0bd7a341a90d5d10348ea53be7ffa3935202919a6d0aea59e69593499e246 SHA512 c3b061e0b735c6949a0ce7f8be22c7818e6bd039de5284015b0ff63b8456f18bd51db9f3a3d1f9a5df2a6d0610043ea9e33f16ccd3ba64e20ac53e901196afd3 WHIRLPOOL f3dcd77632898e6f35de6101705fb5122f31cd26d76f292c8a705dbb24157915587ad9604c5dacb41282449da1a1580d09085438ce4a025bd93d85c0539d1f16
+DIST seamonkey-2.49.4.0-de.xpi 949902 SHA256 c5d997ed331867310dbe3468a6ea14ed327681015b62d61c021b433376ec2ebd SHA512 fb85fa867b5b9417190aa25cc678d68e3afed04bfe052896167aaf46042397da6e1bbeb70acc321f46bd0bed4f0856152d80a348b478a336d28825c4120af1c6 WHIRLPOOL b024b448231390d983dc4ce7d2f55808703bbeedc322bc88586184e4039a0e8d154753bbaec57eaaa7481e047fcc48ca66b7744e6354a4b17d80767124d0dc77
+DIST seamonkey-2.49.4.0-en-GB.xpi 911789 SHA256 6a168ce1d5e5a6d5e4036f74dada7eac91f0feef6d53165afde30c9f39de643e SHA512 973fc7f693abe9b87bd971f79e050bd4bd9a16e4e6f6a50d9298f2c71d45aa328c4279055382b7f9bf8c807dff9c1ab8855d97dbbe3eb4d71c40ee5e3a02f3b6 WHIRLPOOL b795f6a7b16ab128bfb45661d289b7bf25b58665b94e314931c6c8d98ba3d73bb5aefa3fde46c317222fbd86a39c7a1ee0a5824a53611da9895a5e7985c463a0
+DIST seamonkey-2.49.4.0-es-AR.xpi 952759 SHA256 d34c3ab2145d0829c814ce96b51c63c30c925e5c5a84810d411777be059d2cbd SHA512 ec198ed919079e16bf638be032cc7de165d0e9d05d0742a12828b5ad510884d4dd0da57c0cbae85b3fe0089a1be26f42c9887957ab6ecac8b8ef6cf0fbbcb345 WHIRLPOOL 98ffc6a013e161315c9b4e194ec548bbeac6b9bada302308a7b95a6101336939d67f30b85d15d215411f0f12392f5279c12bb982e1befcc0b34f5ce4f779c32b
+DIST seamonkey-2.49.4.0-es-ES.xpi 897737 SHA256 7fce4de8e1160996af38838093710d9e8a6c9f16f1a05e1b76c2778586fb643f SHA512 e9fb5834f3086ee1cf99404930149f06ee7f3f0d5796550c3368b915ed9f729dbd92032682c6273b687b6f3077a4ca3a78192e101f1276d90ebf2eb71f39f22e WHIRLPOOL 4b0c55033055d3cf6e2a4898cb0bcc2b71c932a4445ae8d4b40ba157860bd2b54cddcaf73b66ce0e44cf6485c20b0951b48ad98c088b4f604f09d5c3d7097445
+DIST seamonkey-2.49.4.0-fr.xpi 969290 SHA256 5d32cebf47cea1a6c1cf20da828c4d2f944aa8f2252231d341dd292001fbdf55 SHA512 188f4a8c79b10f95c807a08837290fbc3245c983e6797b8f8a0beea4f4ffad915abeb942920f9986910a0530218f4e35ba16de60b4f21d33116ae16756eb4e8c WHIRLPOOL 7abb0149100fdd88f8d305073e09bef9b78b577f0b2927d70c44d76ea1ea63c889fa04f7a0aa5e905a533600ff123f014afe3b9ad8e5fadae8b0548a38bcf94d
+DIST seamonkey-2.49.4.0-hu.xpi 955174 SHA256 5795275d5eba01fe8c48af7f4f661ef5f3e7263f55029c2364a53f9288064401 SHA512 e28beb23242a6535230df4fd1adb82e8957487179402cb82dedc2faa6464b411d22ddb2732e0490a916597301eebf2fda727bcadb34e029bd468bd066dbc3080 WHIRLPOOL 5418407ce6d58f71fd78fcb3b22a044f1443a22aca1ab018492f5461556ddd900a4502de285ed40d9347b68a433a3443208ec332b9075c797af01bbc3e464b87
+DIST seamonkey-2.49.4.0-it.xpi 793590 SHA256 9c8726b46dc3feaaf014ae142aac7d00c3d7eb4cc11157178c1fc265cd021807 SHA512 c750a85b74bb37d966f1bbecdafcd6ad9d4532eaf0f49f9148081f821c61aec332646eb7c43f0eef4b736362a8c2ab0a1205a38537129f6fe920dc8ae0f16ca9 WHIRLPOOL f9b1c9690bc8c947f24be12d558ab3756754adbc3f5470c0d525809acb99b785aa98939b6fa083f0bf20154068a1b722fbe1b8c63eb156552d27140793321615
+DIST seamonkey-2.49.4.0-ja.xpi 1033801 SHA256 2e7279bd818493bc3ba34352458aeb8d4b27499fa776683e97d0cf3da9f2cdb2 SHA512 454756af04d5d3301c3ffe321109e1c78aa69a3b9e4a29e1b1e7226b958062e451551d73c3df87785fd80e74a4e433fc2094e3702ceb1a547abb858551878056 WHIRLPOOL d5733b3910227b21ef0d01570b9f5c9172865c8d1b8b80be4f1112bdbb7795bbb7181bdd8ac122937c159e8be2d229fab91b5ade2e2b2bc8c2609bd7494a2bbe
+DIST seamonkey-2.49.4.0-lt.xpi 956024 SHA256 f80892e20e5aad5c97b6c748d36fae3d75174d0164b3796ac45aaa1a5e3432ba SHA512 14124e0b9b60f360f6f2b77b5bafe80569894754a3ffd27b6a3aab34136d7876d785b5e9178cb1d34ec46a7b858f26327658e1a3e43ac97abe272838dde78228 WHIRLPOOL 2e96cc3fe80400e535b38a888b98479c420ebad6c5e8688a03f3cbd841ebe3c532a003c15be26649af756b9ca82da2555150fc17eb779733253aeddb30da6ef8
+DIST seamonkey-2.49.4.0-nl.xpi 957391 SHA256 6641ac30d2cfc6be47aeb92ee796924697be5a54bb384c4196d035f794d90a36 SHA512 0f3e68df37e211b73773e1b84d39d4540d1d8865cc534bad841babc30c074bb9301cc472aa0e4e61e09bc26948270e1106e1546d27705380819d830ca158215d WHIRLPOOL 370246c0219ad8366d40b9d1b73cee4053c9ddc875bfe05017c0466b38d3ae690883b45506d6e18dc60ed532978694c87fcc7841b59857ad0502390fe9cbafbc
+DIST seamonkey-2.49.4.0-pl.xpi 913004 SHA256 704d1836d6d9b39224b6beb63320b636f45919bd54833996c34ad5bb7144edc7 SHA512 532b64032b6e4cb902cd9d99ef5505f3ac57964452196f3a9f49eff1bd965c5a8a8271960951482266f12214cce4cad876268f9f38a193f5d91c2644fef0aff8 WHIRLPOOL 908368f22ddd44c7ea46724f9b7666326fb39fef368dc22c7c1fc297298157a8065eb2c11c68881a025b04710e43e24f635d438c2924208c2ea500617e288492
+DIST seamonkey-2.49.4.0-pt-PT.xpi 939012 SHA256 7d04419a91c82e3e0c5c5e054e757bf1fea6ea9cac2080c8e4c6f2a9e2f803ec SHA512 f8cac43e61de1d4dfbc0febddcadfa10cc457e7552016c79ff954cddef900470e60912c607076976b15811944a07cd785fbd2ffd85a5af3ce545ec98c12bdc05 WHIRLPOOL 779f545eb8827fbf6f53920880fee8ad5e8892554a9da4eba678494d25ca807f495c9ea5daffcd66b3e84828aa618bc9116d90637c09a7dcece5b08bd4696134
+DIST seamonkey-2.49.4.0-ru.xpi 995907 SHA256 0b125d063e304a5cab261c4a749ec6140ecb61c3c3069f1b0bbb47962b9d4a97 SHA512 846f7f361a15ea1b04539ec789dffb459e1fbd85283c720883d6545da67a979e040c80b5cb6a0938f0ca9e059e837310cf3fb2d97671e37ff256ad2ac780291c WHIRLPOOL d188e955346fdc4313f4c571f7e11874ac4b5c4cfacfce6f586ea096d43ac5bf4b07f0c50b52d7bc69c958fe1af9bd26a297dfb4252613524868cd8b90404961
+DIST seamonkey-2.49.4.0-sk.xpi 967988 SHA256 944dabb4e4b177cf43a4304e6d89a8bbf1c5b9b67edf44b20240ff3e406a3196 SHA512 8fb02cb8f95c68ce40aabaf79c57bd7c655092dd5fb939d68a62a1bec707b903fbcf16299ff8dd094e161b5f4c732a813d63e33b3ff3ac09f9e1afcf740426d9 WHIRLPOOL 6178865bddc8be8acea4b9b4b06f561cc751c9396f98e602ed048a75f209e36578580bd3f249c25a0887753b679d68460749cbee819d3955f87e30d4814f44a2
+DIST seamonkey-2.49.4.0-sv-SE.xpi 940793 SHA256 1d047f07347acd38fd3c2a726f98697b43294969772f4540d171ade622ed2d7e SHA512 0ac1b0a8e599ef0ffe49d8a7b94dd25818601fb5603273ed995b9a4bb52c5e13a360c76b9278bf8a14b8dce5609f33be319c43fa13ee7b16eda897f6c2d39ddf WHIRLPOOL a126a71d8a1922b01343f6e06b70cc5ffcd648aa5e0695e97cb521ab85c85cd9d21fb8190a1587f848e889b8056c409ccd28cfec2f864ad58f4c0748e661a2b2
+DIST seamonkey-2.49.4.0-zh-CN.xpi 946349 SHA256 b815362ac40fd7928e4f76344e9472225e556751b0fe9babbf4a7462ed8d3264 SHA512 5d3a6accc9deb69b6d52bccca0b52e12b8727d0e6a99067dba52921a147c333b7b777d7dc4935510fb981c9cfae2c4cfc30f310fad9b06e5537ef1dbb89b5e28 WHIRLPOOL c7e33e1d4080b462a6c0a3932756b93070cc603416e77f2a0fe32a1fb3b72ed9e9615d26d03bdae227008cc77a197599242d317065993699e2cdedf6213cbb2a
+DIST seamonkey-2.49.4.0-zh-TW.xpi 1002365 SHA256 c08143641eb99e20df9beff3a0a9e1645c7e67d63eb18bc0314a612866cd7d43 SHA512 a5797304f4de6edf807238a551676fe9755d9ae0dc0141ea959c6edae8bc742ad11976a2b1cf4f2a324ad6b94c1a97c77e29b8100a679af7002156d1d0150376 WHIRLPOOL 0b9bd7a7b2a51443165392ec36e8eeea5de179cb4915f131600f8256ad294a9a3e4dd97ea8cfcfa5363d78ed654e9d9db81dca7d9bc78e65c142a2519c7ae464
 DIST thunderbird-52.3.0.source.tar.xz 228532004 SHA256 050acc320a9c50365a53e4faa6538a0ad7f9a302d5f2cfb6edf0c6fe1b573b18 SHA512 10e6495d207328aae325a797be1de5e535b5d967df929b0af9d7554d0473b5a7931c8f9cb1793e843b1913f441f790169dd4ac1ad9e0e53e66bc8e1c1dd60e66 WHIRLPOOL cd097157eb99a9b98aca63b259b77edcd1ceea5c150869fe485ab1219c1c84bcfbc7d70ecedca4b8733e8adf015ad0d5503db985b098207cd3b18497602c4223
+DIST thunderbird-52.4.0.source.tar.xz 228561704 SHA256 7f57b5b4d4ec42b04afcff8327abc2d3c6185c0bcc1ad138825d021a2d3f578c SHA512 6ac39cecca9e53b51754d7a8bd7cae228d197eb234b03a2386c16fd665f4f7a67f10bbdf981c20b3f7a21a5ef67e2771154a3dd9f249c6a884c48a9e59bcfc78 WHIRLPOOL 54a51c417bdb7cd8fa89643741ebd1d15e589bbf1aed5a87dbe366657287f33496014e82caa220d55477dcca6c99784811b7effb1e1d4ee60b89c4485709b93f

diff --git a/www-client/seamonkey/seamonkey-2.49.4.0_p0.ebuild b/www-client/seamonkey/seamonkey-2.49.4.0_p0.ebuild
new file mode 100644
index 0000000..94e7b86
--- /dev/null
+++ b/www-client/seamonkey/seamonkey-2.49.4.0_p0.ebuild
@@ -0,0 +1,445 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+WANT_AUTOCONF="2.1"
+
+# This list can be updated with scripts/get_langs.sh from the mozilla overlay
+# note - could not roll langpacks for: ca fi
+#MOZ_LANGS=(ca cs de en-GB es-AR es-ES fi fr gl hu it ja lt nb-NO nl pl pt-PT
+#	    ru sk sv-SE tr uk zh-CN zh-TW)
+MOZ_LANGS=(cs de en-GB es-AR es-ES fr hu it ja lt nl pl pt-PT
+	    ru sk sv-SE zh-CN zh-TW)
+
+MOZ_PV="${PV/_pre*}"
+MOZ_PV="${MOZ_PV/_alpha/a}"
+MOZ_PV="${MOZ_PV/_beta/b}"
+MOZ_PV="${MOZ_PV/_rc/rc}"
+MOZ_PV="${MOZ_PV/_p[0-9]}"
+MOZ_P="${P}"
+MY_MOZ_P="${PN}-${MOZ_PV}"
+
+if [[ ${PV} == *_pre* ]] ; then
+# the following are for upstream build candidates
+	MOZ_HTTP_URI="https://archive.mozilla.org/pub/${PN}/candidates/${MOZ_PV}-candidates/build${PV##*_pre}"
+	MOZ_LANGPACK_PREFIX="linux-i686/xpi/"
+	SRC_URI+=" ${MOZ_HTTP_URI}/source/${MY_MOZ_P}.source.tar.xz -> ${P}.source.tar.xz"
+	S="${WORKDIR}/${MY_MOZ_P}"
+	# And the langpack stuff stays at eclass defaults
+# the following is for self-rolled releases
+	#MOZ_HTTP_URI="https://dev.gentoo.org/~axs/distfiles"
+	#MOZ_LANGPACK_PREFIX="${MY_MOZ_P}."
+	#MOZ_LANGPACK_SUFFIX=".langpack.xpi"
+	#SRC_URI="${SRC_URI}
+	#${MOZ_HTTP_URI}/${P}.source.tar.xz
+	#"
+elif [[ ${PV} == *_p[0-9] ]]; then
+	# gentoo-unofficial release using thunderbird distfiles to build seamonkey instead
+	TB_MAJOR=52
+	SMPV="${PV%.[0-9].*}"
+	MOZ_P="${PN}-${MOZ_PV}"
+	MOZ_HTTP_URI="https://archive.mozilla.org/pub/thunderbird/releases/${MOZ_PV/${SMPV}/${TB_MAJOR}}"
+	#MOZ_GENERATE_LANGPACKS=1
+	#https://dev.gentoo.org/~axs/distfiles/${PN}-${SMPV}-l10n-sources-20170727.tar.xz
+	MOZ_LANGPACK_PREFIX="../../../seamonkey/candidates/2.49.1-candidates/build2/linux-i686/xpi/"
+	MOZ_LANGPACK_SUFFIX=".xpi"
+	S="${WORKDIR}/thunderbird-${MOZ_PV/${SMPV}/${TB_MAJOR}}"
+	CHATZILLA_VER="SEA2_48_RELBRANCH"
+	INSPECTOR_VER="DOMI_2_0_17"
+	SRC_URI="${SRC_URI}
+	${MOZ_HTTP_URI}/source/thunderbird-${MOZ_PV/${SMPV}/${TB_MAJOR}}.source.tar.xz
+	https://hg.mozilla.org/chatzilla/archive/${CHATZILLA_VER}.tar.bz2 -> chatzilla-${CHATZILLA_VER}.tar.bz2
+	https://hg.mozilla.org/dom-inspector/archive/${INSPECTOR_VER}.tar.bz2 -> dom-inspector-${INSPECTOR_VER}.tar.bz2
+	"
+else
+	MOZ_HTTP_URI="https://archive.mozilla.org/pub/${PN}/releases/${MOZ_PV}"
+	MOZ_LANGPACK_PREFIX="langpack/${MY_MOZ_P}."
+	MOZ_LANGPACK_SUFFIX=".langpack.xpi"
+	S="${WORKDIR}/${PN}-${MOZ_PV}"
+	SRC_URI="${SRC_URI}
+	${MOZ_HTTP_URI}/source/${MY_MOZ_P}.source.tar.xz -> ${P}.source.tar.xz
+	"
+fi
+
+MOZCONFIG_OPTIONAL_GTK3=1
+MOZCONFIG_OPTIONAL_WIFI=1
+inherit check-reqs flag-o-matic toolchain-funcs eutils mozconfig-v6.53 pax-utils xdg-utils autotools mozextension nsplugins mozlinguas-v2
+
+PATCHFF="firefox-52.2-patches-03"
+PATCH="${PN}-2.46-patches-01"
+
+DESCRIPTION="Seamonkey Web Browser"
+HOMEPAGE="http://www.seamonkey-project.org"
+KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~x86"
+
+SLOT="0"
+LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
+IUSE="+calendar +chatzilla +crypt +gmp-autoupdate +ipc jack minimal pulseaudio +roaming selinux test"
+
+SRC_URI+="
+	https://dev.gentoo.org/~anarchy/mozilla/patchsets/${PATCHFF}.tar.xz
+	https://dev.gentoo.org/~axs/mozilla/patchsets/${PATCHFF}.tar.xz
+	https://dev.gentoo.org/~polynomial-c/mozilla/patchsets/${PATCHFF}.tar.xz
+	https://dev.gentoo.org/~axs/mozilla/patchsets/${PATCH}.tar.xz
+	https://dev.gentoo.org/~polynomial-c/mozilla/patchsets/${PATCH}.tar.xz
+"
+
+ASM_DEPEND=">=dev-lang/yasm-1.1"
+
+RDEPEND="
+	>=dev-libs/nss-3.28.1
+	>=dev-libs/nspr-4.13
+	crypt? ( || (
+		( >=app-crypt/gnupg-2.0
+			|| (
+				app-crypt/pinentry[gtk]
+				app-crypt/pinentry[qt5]
+				app-crypt/pinentry[qt4]
+			)
+		)
+		=app-crypt/gnupg-1.4* )
+		x11-plugins/enigmail
+	)
+	jack? ( virtual/jack )
+"
+
+DEPEND="
+	${RDEPEND}
+	!elibc_glibc? ( !elibc_uclibc? ( !elibc_musl? ( dev-libs/libexecinfo ) ) )
+	crypt? ( dev-lang/perl )
+	amd64? ( ${ASM_DEPEND}
+		virtual/opengl )
+	x86? ( ${ASM_DEPEND}
+		virtual/opengl )
+"
+
+BUILD_OBJ_DIR="${S}/seamonk"
+
+# allow GMP_PLUGIN_LIST to be set in an eclass or
+# overridden in the enviromnent (advanced hackers only)
+if [[ -z $GMP_PLUGIN_LIST ]] ; then
+	GMP_PLUGIN_LIST=( gmp-gmpopenh264 gmp-widevinecdm )
+fi
+
+pkg_setup() {
+	if [[ ${PV} == *_pre* ]] ; then
+		ewarn "You're using an unofficial release of ${PN}. Don't file any bug in"
+		ewarn "Gentoo's Bugtracker against this package in case it breaks for you."
+		ewarn "Those belong to upstream: https://bugzilla.mozilla.org"
+	fi
+
+	moz_pkgsetup
+}
+
+pkg_pretend() {
+	# Ensure we have enough disk space to compile
+	if use debug || use test ; then
+		CHECKREQS_DISK_BUILD="8G"
+	else
+		CHECKREQS_DISK_BUILD="4G"
+	fi
+	check-reqs_pkg_setup
+}
+
+src_unpack() {
+	unpack ${A}
+
+	# Unpack language packs
+	mozlinguas_src_unpack
+
+	if [[ -n $TB_MAJOR ]]; then
+		# move the irc and inspector code into the correct locations
+		# when we are building from a thunderbird tarball
+		mv "${WORKDIR}"/chatzilla-${CHATZILLA_VER} \
+			"${S}"/mozilla/extensions/irc || die
+		mv "${WORKDIR}"/dom-inspector-${INSPECTOR_VER} \
+			"${S}"/mozilla/extensions/inspector || die
+	fi
+}
+
+src_prepare() {
+	# Apply our patches
+	eapply "${WORKDIR}"/seamonkey
+
+	# browser patches go here
+	pushd "${S}"/mozilla &>/dev/null || die
+	rm -f "${WORKDIR}"/firefox/1000_gentoo_install_dir.patch
+	eapply "${WORKDIR}"/firefox
+	popd &>/dev/null || die
+
+	if grep -q '^sdkdir.*$(MOZ_APP_NAME)-devel' mozilla/config/baseconfig.mk ; then
+		sed '/^sdkdir/s@-devel@@' \
+			-i mozilla/config/baseconfig.mk || die
+	else
+		einfo "baseconfig.mk hackery no longer needed."
+	fi
+
+	# Shell scripts sometimes contain DOS line endings; bug 391889
+	grep -rlZ --include="*.sh" $'\r$' . |
+	while read -r -d $'\0' file ; do
+		einfo edos2unix "${file}"
+		edos2unix "${file}"
+	done
+
+	# force a version update that matches the minor and patch version of thunderbird
+	if [[ -n ${TB_MAJOR} ]]; then
+		echo ${MOZ_PV} >"${S}"/suite/config/version.txt
+	fi
+
+	# Allow user to apply any additional patches without modifing ebuild
+	eapply_user
+
+	local ms="${S}/mozilla"
+
+	# Enable gnomebreakpad
+	if use debug ; then
+		sed -i -e "s:GNOME_DISABLE_CRASH_DIALOG=1:GNOME_DISABLE_CRASH_DIALOG=0:g" \
+			"${ms}"/build/unix/run-mozilla.sh || die "sed failed!"
+	fi
+
+	# Ensure that are plugins dir is enabled as default
+	sed -i -e "s:/usr/lib/mozilla/plugins:/usr/lib/nsbrowser/plugins:" \
+		"${ms}"/xpcom/io/nsAppFileLocationProvider.cpp || die "sed failed to replace plugin path for 32bit!"
+	sed -i -e "s:/usr/lib64/mozilla/plugins:/usr/lib64/nsbrowser/plugins:" \
+		"${ms}"/xpcom/io/nsAppFileLocationProvider.cpp || die "sed failed to replace plugin path for 64bit!"
+
+	# Don't exit with error when some libs are missing which we have in
+	# system.
+	sed '/^MOZ_PKG_FATAL_WARNINGS/s@= 1@= 0@' \
+		-i "${S}"/suite/installer/Makefile.in || die
+	# Don't error out when there's no files to be removed:
+	sed 's@\(xargs rm\)$@\1 -f@' \
+		-i "${ms}"/toolkit/mozapps/installer/packager.mk || die
+
+	# Don't build libs-% locale files for chatzilla if we are not building chatzilla
+	# (this is hard-coded in the build system at present rather than being based on configuration)
+	use chatzilla || sed '/extensions\/irc\/locales libs-/s@^@#@' \
+		-i "${S}"/suite/locales/Makefile.in || die
+
+	eautoreconf old-configure.in
+	cd "${S}"/mozilla || die
+	eautoconf old-configure.in
+	cd "${S}"/mozilla/js/src || die
+	eautoconf old-configure.in
+	cd "${S}"/mozilla/memory/jemalloc/src || die
+	WANT_AUTOCONF= eautoconf
+}
+
+src_configure() {
+	MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
+	MEXTENSIONS="default"
+	# Google API keys (see http://www.chromium.org/developers/how-tos/api-keys)
+	# Note: These are for Gentoo Linux use ONLY. For your own distribution, please
+	# get your own set of keys.
+	_google_api_key=AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc
+
+	####################################
+	#
+	# mozconfig, CFLAGS and CXXFLAGS setup
+	#
+	####################################
+
+	mozconfig_init
+	mozconfig_config
+
+	# enable JACK, bug 600002
+	mozconfig_use_enable jack
+
+	# It doesn't compile on alpha without this LDFLAGS
+	use alpha && append-ldflags "-Wl,--no-relax"
+
+	if ! use chatzilla ; then
+		MEXTENSIONS+=",-irc"
+	fi
+	if ! use roaming ; then
+		MEXTENSIONS+=",-sroaming"
+	fi
+
+	# Setup api key for location services
+	echo -n "${_google_api_key}" > "${S}"/google-api-key
+	mozconfig_annotate '' --with-google-api-keyfile="${S}/google-api-key"
+
+	mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}"
+
+	# Other sm-specific settings
+	mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME}
+	mozconfig_annotate '' --enable-safe-browsing
+	mozconfig_use_enable calendar
+
+	mozlinguas_mozconfig
+
+	# Use an objdir to keep things organized.
+	echo "mk_add_options MOZ_OBJDIR=${BUILD_OBJ_DIR}" >> "${S}"/.mozconfig
+	echo "mk_add_options XARGS=/usr/bin/xargs" >> "${S}"/.mozconfig
+
+	# Finalize and report settings
+	mozconfig_final
+
+	# Work around breakage in makeopts with --no-print-directory
+	MAKEOPTS="${MAKEOPTS/--no-print-directory/}"
+
+	if [[ $(gcc-major-version) -lt 4 ]] ; then
+		append-cxxflags -fno-stack-protector
+	elif [[ $(gcc-major-version) -gt 4 || $(gcc-minor-version) -gt 3 ]] ; then
+		if use amd64 || use x86 ; then
+			append-flags -mno-avx
+		fi
+	fi
+
+	# workaround for funky/broken upstream configure...
+	SHELL="${SHELL:-${EPREFIX%/}/bin/bash}" \
+	emake V=1 -f client.mk configure
+}
+
+src_compile() {
+	MOZ_MAKE_FLAGS="${MAKEOPTS}" SHELL="${SHELL}" \
+	emake V=1 -f client.mk
+
+	mozlinguas_src_compile
+}
+
+src_install() {
+	MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
+	DICTPATH="\"${EPREFIX}/usr/share/myspell\""
+
+	local emid
+	cd "${BUILD_OBJ_DIR}" || die
+
+	# Pax mark xpcshell for hardened support, only used for startupcache creation.
+	pax-mark m "${BUILD_OBJ_DIR}/dist/bin/xpcshell"
+
+	# Copy our preference before omnijar is created.
+	sed "s|SEAMONKEY_PVR|${PVR}|" "${FILESDIR}"/all-gentoo-1.js > \
+		"${BUILD_OBJ_DIR}/dist/bin/defaults/pref/all-gentoo.js" \
+		|| die
+
+	# Set default path to search for dictionaries.
+	echo "pref(\"spellchecker.dictionary_path\", ${DICTPATH});" \
+		>> "${BUILD_OBJ_DIR}/dist/bin/defaults/pref/all-gentoo.js" \
+		|| die
+
+	echo 'pref("extensions.autoDisableScopes", 3);' >> \
+		"${BUILD_OBJ_DIR}/dist/bin/defaults/pref/all-gentoo.js" \
+		|| die
+
+	local plugin
+	if ! use gmp-autoupdate ; then
+		for plugin in "${GMP_PLUGIN_LIST[@]}" ; do
+			echo "pref(\"media.${plugin}.autoupdate\", false);" >> \
+				"${S}/${BUILD_OBJ_DIR}/dist/bin/browser/defaults/preferences/all-gentoo.js" \
+				|| dir
+		done
+	fi
+
+	MOZ_MAKE_FLAGS="${MAKEOPTS}" SHELL="${SHELL:-${EPREFIX%/}/bin/bash}" \
+	emake DESTDIR="${D}" install
+	cp "${FILESDIR}"/${PN}.desktop "${T}" || die
+
+	sed 's|^\(MimeType=.*\)$|\1text/x-vcard;text/directory;application/mbox;message/rfc822;x-scheme-handler/mailto;|' \
+		-i "${T}"/${PN}.desktop || die
+	sed 's|^\(Categories=.*\)$|\1Email;|' -i "${T}"/${PN}.desktop \
+		|| die
+
+	# Install language packs
+	mozlinguas_src_install
+
+	# Add StartupNotify=true bug 290401
+	if use startup-notification ; then
+		echo "StartupNotify=true" >> "${T}"/${PN}.desktop || die
+	fi
+
+	# Install icon and .desktop for menu entry
+	newicon "${S}"/suite/branding/nightly/content/icon64.png ${PN}.png
+	domenu "${T}"/${PN}.desktop
+
+	# Required in order to use plugins and even run seamonkey on hardened.
+	pax-mark m "${ED}"${MOZILLA_FIVE_HOME}/{seamonkey,seamonkey-bin,plugin-container}
+
+	if use minimal ; then
+		rm -rf "${ED}"/usr/include "${ED}${MOZILLA_FIVE_HOME}"/{idl,include,lib,sdk}
+	fi
+
+	if use crypt ; then
+		emid=$(sed -n '/<em:id>/!d; s/.*\({.*}\).*/\1/; p; q' "${EROOT%/}"/usr/share/enigmail/install.rdf)
+		if [[ -n ${emid} ]]; then
+			dosym "${EPREFIX%/}"/usr/share/enigmail ${MOZILLA_FIVE_HOME}/extensions/${emid}
+		else
+			eerror "${EPREFIX%/}/usr/share/enigmail/install.rdf: No such file or directory"
+			die "<EM:ID> tag for x11-plugins/enigmail could not be found!"
+		fi
+	fi
+
+	if use chatzilla ; then
+		local emid='{59c81df5-4b7a-477b-912d-4e0fdf64e5f2}'
+
+		# remove the en_US-only xpi file so a version with all requested locales can be installed
+		if [[ -e "${ED}"${MOZILLA_FIVE_HOME}/distribution/extensions/${emid}.xpi ]]; then
+			rm -f "${ED}"${MOZILLA_FIVE_HOME}/distribution/extensions/${emid}.xpi || die
+		fi
+
+		# merge the extra locales into the main extension
+		mozlinguas_xpistage_langpacks "${BUILD_OBJ_DIR}"/dist/xpi-stage/chatzilla
+
+		# install the merged extension
+		mkdir -p "${T}/${emid}" || die
+		cp -RLp -t "${T}/${emid}" "${BUILD_OBJ_DIR}"/dist/xpi-stage/chatzilla/* || die
+		insinto ${MOZILLA_FIVE_HOME}/distribution/extensions
+		doins -r "${T}/${emid}"
+	fi
+
+	# Handle plugins dir through nsplugins.eclass
+	share_plugins_dir
+
+	# revdep-rebuild entry
+	insinto /etc/revdep-rebuild
+	echo "SEARCH_DIRS_MASK=${MOZILLA_FIVE_HOME}*" >> ${T}/11${PN}
+	doins "${T}"/11${PN}
+}
+
+pkg_preinst() {
+	MOZILLA_FIVE_HOME="${ROOT}/usr/$(get_libdir)/${PN}"
+
+	if [ -d ${MOZILLA_FIVE_HOME}/plugins ] ; then
+		rm ${MOZILLA_FIVE_HOME}/plugins -rf
+	fi
+
+	# Because PM's dont seem to properly merge a symlink replacing a directory
+	if use crypt ; then
+		local emid=$(sed -n '/<em:id>/!d; s/.*\({.*}\).*/\1/; p; q' "${EROOT%/}"/usr/share/enigmail/install.rdf)
+		local emidpath="${EROOT%/}"${MOZILLA_FIVE_HOME}/extensions/${emid}
+		if [[ -z ${emid} ]]; then
+			eerror "${EROOT%/}/usr/share/enigmail/install.rdf: No such file or directory"
+			die "Could not find enigmail on disk during pkg_preinst()"
+		fi
+		if [[ ! -h "${emidpath}" ]] && [[ -d "${emidpath}" ]]; then
+			if ! rm -R --interactive=never "${emidpath}" ; then
+				eerror "Could not remove enigmail directory from previous installation,"
+				eerror "You must remove this by hand and rename the symbolic link yourself:"
+				eerror
+				eerror "\t cd ${EPREFIX%/}${MOZILLA_FIVE_HOME}/extensions"
+				eerror "\t rm -Rf ${emid}"
+				eerror "\t mv ${emid}.backup* ${emid}"
+			fi
+		fi
+	fi
+}
+
+pkg_postinst() {
+	MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
+
+	# Update mimedb for the new .desktop file
+	xdg_desktop_database_update
+	#gnome2_icon_cache_update
+
+	if ! use gmp-autoupdate ; then
+		elog "USE='-gmp-autoupdate' has disabled the following plugins from updating or"
+		elog "installing into new profiles:"
+		local plugin
+		for plugin in "${GMP_PLUGIN_LIST[@]}"; do elog "\t ${plugin}" ; done
+	fi
+
+	if use chatzilla ; then
+		elog "chatzilla is now an extension which can be en-/disabled and configured via"
+		elog "the Add-on manager."
+	fi
+}


             reply	other threads:[~2017-10-10  1:21 UTC|newest]

Thread overview: 141+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-10  1:21 Ian Stakenvicius [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-05-23  8:35 [gentoo-commits] proj/mozilla:master commit in: www-client/seamonkey/ Lars Wendler
2018-05-22  8:31 Lars Wendler
2018-04-19  6:05 Lars Wendler
2018-04-19  6:05 Lars Wendler
2018-03-07 13:00 Lars Wendler
2017-11-25  8:46 Lars Wendler
2017-11-23 19:47 Ian Stakenvicius
2017-08-24 13:18 Lars Wendler
2017-08-16 20:36 Ian Stakenvicius
2017-07-28 14:26 Ian Stakenvicius
2017-07-25 19:38 Ian Stakenvicius
2017-07-25  1:58 Ian Stakenvicius
2017-07-21 13:23 Lars Wendler
2017-06-05 14:36 Jory Pratt
2017-03-29 13:38 Lars Wendler
2017-02-06  2:43 Lars Wendler
2016-10-11 14:13 Ian Stakenvicius
2016-10-01 14:48 Ian Stakenvicius
2016-09-01 20:38 Ian Stakenvicius
2016-08-04 20:47 Ian Stakenvicius
2016-07-19 18:49 Ian Stakenvicius
2016-07-19 18:49 Ian Stakenvicius
2016-07-12 20:41 Ian Stakenvicius
2016-07-09  0:57 Ian Stakenvicius
2016-05-07 20:38 Ian Stakenvicius
2016-03-04 22:38 Lars Wendler
2016-01-26  5:38 Lars Wendler
2015-11-27 19:25 Ian Stakenvicius
2015-11-10  8:33 Lars Wendler
2015-09-28  8:18 Lars Wendler
2015-09-03 10:03 Lars Wendler
2015-09-03  7:18 Lars Wendler
2015-09-03  6:26 Lars Wendler
2015-09-02 14:29 Lars Wendler
2015-03-24  7:54 Lars Wendler
2014-12-04 14:21 Lars Wendler
2014-11-06 14:33 Lars Wendler
2014-11-06  8:17 Lars Wendler
2014-10-31 19:13 Ian Stakenvicius
2014-04-29 12:47 Lars Wendler
2014-04-11  7:00 Lars Wendler
2014-04-02 18:26 Ian Stakenvicius
2014-03-20 15:19 Lars Wendler
2014-03-19 10:08 Lars Wendler
2014-02-20 18:36 Lars Wendler
2014-02-19  8:38 Lars Wendler
2014-02-06 13:01 Lars Wendler
2014-02-05  7:44 Lars Wendler
2014-02-04  9:55 Lars Wendler
2014-01-01 20:15 Lars Wendler
2014-01-01 20:14 Lars Wendler
2013-12-17 12:16 Lars Wendler
2013-12-12  7:14 Lars Wendler
2013-11-18 18:50 Lars Wendler
2013-11-02 15:22 Lars Wendler
2013-10-31 10:21 Lars Wendler
2013-10-30 12:01 Lars Wendler
2013-09-25 22:29 Lars Wendler
2013-09-25 14:17 Lars Wendler
2013-09-18  7:01 Lars Wendler
2013-08-07  7:48 Lars Wendler
2013-08-07  7:22 Lars Wendler
2013-07-31 13:38 Lars Wendler
2013-07-26 11:10 Lars Wendler
2013-07-17  9:24 Lars Wendler
2013-05-21  6:23 Lars Wendler
2013-05-02 11:12 Lars Wendler
2013-04-22 15:57 Lars Wendler
2013-04-22 15:53 Lars Wendler
2013-04-22 11:39 Lars Wendler
2013-04-17 10:09 Lars Wendler
2013-04-08  6:50 Lars Wendler
2013-04-03  7:00 Lars Wendler
2013-04-03  6:55 Lars Wendler
2013-03-29  0:39 Jory Pratt
2013-03-13 21:49 Lars Wendler
2013-03-01  7:46 Lars Wendler
2013-02-21 12:02 Lars Wendler
2013-02-18 16:21 Lars Wendler
2013-02-07  5:51 Lars Wendler
2013-01-16 23:02 Lars Wendler
2013-01-10  9:35 Lars Wendler
2013-01-09 15:37 Lars Wendler
2012-12-07  6:40 Lars Wendler
2012-12-05 22:52 Lars Wendler
2012-12-05 22:46 Lars Wendler
2012-09-09 16:26 Lars Wendler
2012-08-28  8:44 Lars Wendler
2012-08-21  7:38 Lars Wendler
2012-08-13 13:55 Lars Wendler
2012-07-30 12:27 Lars Wendler
2012-07-18 22:30 Jory Pratt
2012-07-17 11:57 Lars Wendler
2012-07-11  7:08 Lars Wendler
2012-07-11  7:06 Lars Wendler
2012-07-02 15:02 Lars Wendler
2012-07-01 12:13 Lars Wendler
2012-06-27 11:56 Lars Wendler
2012-06-16 21:07 Lars Wendler
2012-06-16 20:07 Lars Wendler
2012-06-15 13:14 Jory Pratt
2012-06-15  8:38 Lars Wendler
2012-06-15  7:51 Lars Wendler
2012-06-10  2:31 Lars Wendler
2012-06-08 10:36 Lars Wendler
2012-06-08 10:35 Lars Wendler
2012-06-06  7:43 Lars Wendler
2012-06-05  9:31 Lars Wendler
2012-06-05  6:49 Lars Wendler
2012-05-08 13:22 Lars Wendler
2012-02-14 12:19 Lars Wendler
2012-01-28 21:48 Lars Wendler
2011-12-15  7:52 Lars Wendler
2011-12-14 18:19 Lars Wendler
2011-12-04  1:16 Lars Wendler
2011-11-21 15:54 Lars Wendler
2011-11-10 13:44 Lars Wendler
2011-11-07 14:22 Lars Wendler
2011-10-16 15:55 Lars Wendler
2011-10-08  6:29 Lars Wendler
2011-10-02 20:35 Lars Wendler
2011-10-02 19:09 Lars Wendler
2011-10-02 17:36 Lars Wendler
2011-07-05 16:55 Lars Wendler
2011-07-03 19:15 Lars Wendler
2011-06-29  6:36 Lars Wendler
2011-06-28 18:23 Lars Wendler
2011-06-23 10:15 Lars Wendler
2011-06-17 13:44 Lars Wendler
2011-06-16 22:17 Lars Wendler
2011-06-16 21:06 Lars Wendler
2011-05-13  9:44 Lars Wendler
2011-04-24  8:33 Lars Wendler
2011-04-15 16:41 Lars Wendler
2011-04-08  5:58 Lars Wendler
2011-03-29 19:26 Lars Wendler
2011-03-14 21:08 Lars Wendler
2011-03-14 21:08 Lars Wendler
2011-02-13 22:12 Lars Wendler
2011-02-13 11:52 Lars Wendler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1507598447.c9189e4f4948cd36c718d12cc9a3b8aab621facb.axs@gentoo \
    --to=axs@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox