Gentoo Archives: gentoo-commits

From: Nirbheek Chauhan <nirbheek@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/mozilla:master commit in: www-client/firefox/
Date: Wed, 04 Jan 2012 20:32:42
Message-Id: 5333c667441e22d774d589184ad579c88a97b761.nirbheek@gentoo
1 commit: 5333c667441e22d774d589184ad579c88a97b761
2 Author: Nirbheek Chauhan <nirbheek <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 4 20:31:15 2012 +0000
4 Commit: Nirbheek Chauhan <nirbheek <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 4 20:31:15 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/mozilla.git;a=commit;h=5333c667
7
8 Revert "sync with tree"
9
10 This reverts commit b0de246d2f63aa869fef71227bcfd782afc1b4f4.
11
12 The syncing was accidentally done in the wrong direction.
13
14 ---
15 www-client/firefox/Manifest | 2 +-
16 www-client/firefox/firefox-9.0.ebuild | 105 +++++++++-----------------------
17 2 files changed, 31 insertions(+), 76 deletions(-)
18
19 diff --git a/www-client/firefox/Manifest b/www-client/firefox/Manifest
20 index 9f045aa..ccee73e 100644
21 --- a/www-client/firefox/Manifest
22 +++ b/www-client/firefox/Manifest
23 @@ -84,4 +84,4 @@ DIST firefox-9.0-zh-CN.xpi 246728 RMD160 96aef0ad9287f41589f59246eba1d2445d18a0c
24 DIST firefox-9.0-zh-TW.xpi 247498 RMD160 163fa9dde9caa2e209eff47a1bdfee6cfd807aaf SHA1 f6c14facb1556002fcfb414533c171c2b9e08582 SHA256 6b50bd60567a46fd7af62160271ab9e0d5a40666c6a812fb9adcd7bce474a936
25 DIST firefox-9.0-zu.xpi 238395 RMD160 67afb3fd7bd9006830747a75b5175facf8615f86 SHA1 1b7c947e15d5fb2f75503e1cad9940283edc87d5 SHA256 aedf4ab70c7cf603210e4ece1c21faf0c031f7b488dddc074c3f00e9d9a2feb5
26 DIST firefox-9.0.source.tar.bz2 74197197 RMD160 4631b103aa80ae2ae22b61453f4e02c89962f1c1 SHA1 f79324ec6205e4c23d51d8ab2e790de1b2541657 SHA256 9e876498da6c2eb2a49b57b461d5b969b11810f6af9eaa858d8e4cb514a9bd05
27 -EBUILD firefox-9.0.ebuild 11344 RMD160 5d399eba2f2567bcdd240018ccbadb965cc96c13 SHA1 1bc2179f9f65204136ca797b3dc59b9e53b443f9 SHA256 4ebfd1706839a535a5d398f01d22c79d9f78a725850fe7367c5064a69d69329e
28 +EBUILD firefox-9.0.ebuild 9841 RMD160 19e3eb83c56845bb7973bb821b018b8d091b6259 SHA1 9556856bbe4e4307430df4ef37ff1c2843a2eafb SHA256 5816d6fe2877afee020e48a22b2fa26803fd2db0fb442b3780445748aeb98949
29
30 diff --git a/www-client/firefox/firefox-9.0.ebuild b/www-client/firefox/firefox-9.0.ebuild
31 index 1f676cd..f379e30 100644
32 --- a/www-client/firefox/firefox-9.0.ebuild
33 +++ b/www-client/firefox/firefox-9.0.ebuild
34 @@ -1,31 +1,44 @@
35 # Copyright 1999-2011 Gentoo Foundation
36 # Distributed under the terms of the GNU General Public License v2
37 -# $Header: /var/cvsroot/gentoo-x86/www-client/firefox/firefox-9.0.ebuild,v 1.3 2011/12/26 11:13:31 armin76 Exp $
38 +# $Header: /var/cvsroot/gentoo-x86/www-client/firefox/firefox-6.0.ebuild,v 1.2 2011/08/23 19:35:58 polynomial-c Exp $
39
40 EAPI="3"
41 VIRTUALX_REQUIRED="pgo"
42 WANT_AUTOCONF="2.1"
43
44 -inherit check-reqs flag-o-matic toolchain-funcs eutils gnome2-utils mozconfig-3 multilib pax-utils fdo-mime autotools mozextension versionator python virtualx nsplugins
45 +# This list can be updated with scripts/get_langs.sh from the mozilla overlay
46 +LANGS=(af ak ar ast be bg bn-BD bn-IN br bs ca cs cy da de el en en-GB en-US
47 +en-ZA eo es-AR es-CL es-ES es-MX et eu fa fi fr fy-NL ga-IE gd gl gu-IN he
48 +hi-IN hr hu hy-AM id is it ja kk kn ko ku lg lt lv mai mk ml mr nb-NO nl
49 +nn-NO nso or pa-IN pl pt-BR pt-PT rm ro ru si sk sl son sq sr sv-SE ta ta-LK
50 +te th tr uk vi zh-CN zh-TW zu)
51
52 -MAJ_FF_PV="$(get_version_component_range 1-2)" # 3.5, 3.6, 4.0, etc.
53 -FF_PV="${PV/_alpha/a}" # Handle alpha for SRC_URI
54 -FF_PV="${FF_PV/_beta/b}" # Handle beta for SRC_URI
55 -FF_PV="${FF_PV/_rc/rc}" # Handle rc for SRC_URI
56 +# Convert the ebuild version to the upstream mozilla version, used by mozlinguas
57 +MOZ_PV="${PV/_alpha/a}" # Handle alpha for SRC_URI
58 +MOZ_PV="${MOZ_PV/_beta/b}" # Handle beta for SRC_URI
59 +MOZ_PV="${MOZ_PV/_rc/rc}" # Handle rc for SRC_URI
60 +
61 +# Changeset for alpha snapshot
62 CHANGESET="e56ecd8b3a68"
63 +# Patch version
64 PATCH="${PN}-9.0-patches-0.5"
65 +# Upstream ftp release URI that's used by mozlinguas.eclass
66 +# We don't use the http mirror because it deletes old tarballs.
67 +FTP_URI="ftp://ftp.mozilla.org/pub/${PN}/releases/"
68 +
69 +inherit check-reqs flag-o-matic toolchain-funcs eutils gnome2-utils mozconfig-3 multilib pax-utils fdo-mime autotools python virtualx nsplugins mozlinguas
70
71 DESCRIPTION="Firefox Web Browser"
72 HOMEPAGE="http://www.mozilla.com/firefox"
73
74 -KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~x86 ~amd64-linux ~x86-linux"
75 +KEYWORDS="~amd64 ~arm ~ppc ~x86 ~amd64-linux ~x86-linux"
76 SLOT="0"
77 LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
78 IUSE="bindist +crashreporter +ipc pgo system-sqlite +webm"
79
80 -FTP_URI="ftp://ftp.mozilla.org/pub/firefox/releases/"
81 # More URIs appended below...
82 -SRC_URI="http://dev.gentoo.org/~anarchy/mozilla/patchsets/${PATCH}.tar.xz"
83 +SRC_URI="${SRC_URI}
84 + http://dev.gentoo.org/~anarchy/mozilla/patchsets/${PATCH}.tar.xz"
85
86 ASM_DEPEND=">=dev-lang/yasm-1.1"
87
88 @@ -54,74 +67,20 @@ DEPEND="${RDEPEND}
89 # No source releases for alpha|beta
90 if [[ ${PV} =~ alpha ]]; then
91 SRC_URI="${SRC_URI}
92 - http://dev.gentoo.org/~anarchy/mozilla/firefox/firefox-${FF_PV}_${CHANGESET}.source.tar.bz2"
93 + http://dev.gentoo.org/~anarchy/mozilla/firefox/firefox-${MOZ_PV}_${CHANGESET}.source.tar.bz2"
94 S="${WORKDIR}/mozilla-central"
95 elif [[ ${PV} =~ beta ]]; then
96 SRC_URI="${SRC_URI}
97 - ${FTP_URI}/${FF_PV}/source/firefox-${FF_PV}.source.tar.bz2"
98 + ${FTP_URI}/${MOZ_PV}/source/firefox-${MOZ_PV}.source.tar.bz2"
99 S="${WORKDIR}/mozilla-beta"
100 else
101 SRC_URI="${SRC_URI}
102 - ${FTP_URI}/${FF_PV}/source/firefox-${FF_PV}.source.tar.bz2"
103 + ${FTP_URI}/${MOZ_PV}/source/firefox-${MOZ_PV}.source.tar.bz2"
104 S="${WORKDIR}/mozilla-release"
105 fi
106
107 -# No language packs for alphas
108 -if ! [[ ${PV} =~ alpha|beta ]]; then
109 - # This list can be updated with scripts/get_langs.sh from mozilla overlay
110 - LANGS=(af ak ar ast be bg bn-BD bn-IN br bs ca cs cy da de el en en-GB en-US
111 - en-ZA eo es-AR es-CL es-ES es-MX et eu fa fi fr fy-NL ga-IE gd gl gu-IN he
112 - hi-IN hr hu hy-AM id is it ja kk kn ko ku lg lt lv mai mk ml mr nb-NO nl
113 - nn-NO nso or pa-IN pl pt-BR pt-PT rm ro ru si sk sl son sq sr sv-SE ta ta-LK
114 - te th tr uk vi zh-CN zh-TW zu)
115 -
116 - for X in "${LANGS[@]}" ; do
117 - # en and en_US are handled internally
118 - if [[ ${X} != en ]] && [[ ${X} != en-US ]]; then
119 - SRC_URI="${SRC_URI}
120 - linguas_${X/-/_}? ( ${FTP_URI}/${FF_PV}/linux-i686/xpi/${X}.xpi -> ${P}-${X}.xpi )"
121 - fi
122 - IUSE="${IUSE} linguas_${X/-/_}"
123 - # Install all the specific locale xpis if there's no generic locale xpi
124 - # Example: there's no pt.xpi, so install all pt-*.xpi
125 - if ! has ${X%%-*} "${LANGS[@]}"; then
126 - SRC_URI="${SRC_URI}
127 - linguas_${X%%-*}? ( ${FTP_URI}/${FF_PV}/linux-i686/xpi/${X}.xpi -> ${P}-${X}.xpi )"
128 - IUSE="${IUSE} linguas_${X%%-*}"
129 - fi
130 - done
131 -fi
132 -
133 QA_PRESTRIPPED="usr/$(get_libdir)/${PN}/firefox"
134
135 -# TODO: Move all the linguas crap to an eclass
136 -linguas() {
137 - # Generate the list of language packs called "linguas"
138 - # This list is used to install the xpi language packs
139 - local LINGUA
140 - for LINGUA in ${LINGUAS}; do
141 - if has ${LINGUA} en en_US; then
142 - # For mozilla products, en and en_US are handled internally
143 - continue
144 - # If this language is supported by ${P},
145 - elif has ${LINGUA} "${LANGS[@]//-/_}"; then
146 - # Add the language to linguas, if it isn't already there
147 - has ${LINGUA//_/-} "${linguas[@]}" || linguas+=(${LINGUA//_/-})
148 - continue
149 - # For each short LINGUA that isn't in LANGS,
150 - # add *all* long LANGS to the linguas list
151 - elif ! has ${LINGUA%%-*} "${LANGS[@]}"; then
152 - for LANG in "${LANGS[@]}"; do
153 - if [[ ${LANG} == ${LINGUA}-* ]]; then
154 - has ${LANG} "${linguas[@]}" || linguas+=(${LANG})
155 - continue 2
156 - fi
157 - done
158 - fi
159 - ewarn "Sorry, but ${P} does not support the ${LINGUA} locale"
160 - done
161 -}
162 -
163 pkg_setup() {
164 moz_pkgsetup
165
166 @@ -133,6 +92,7 @@ pkg_setup() {
167 SESSION_MANAGER \
168 XDG_SESSION_COOKIE \
169 XAUTHORITY
170 + gnome2_environment_reset
171
172 if ! use bindist; then
173 einfo
174 @@ -160,11 +120,8 @@ pkg_setup() {
175 src_unpack() {
176 unpack ${A}
177
178 - linguas
179 - for X in "${linguas[@]}"; do
180 - # FIXME: Add support for unpacking xpis to portage
181 - xpi_unpack "${P}-${X}.xpi"
182 - done
183 + # Unpack language packs
184 + mozlinguas_src_unpack
185 }
186
187 src_prepare() {
188 @@ -296,10 +253,8 @@ src_install() {
189 MOZ_MAKE_FLAGS="${MAKEOPTS}" \
190 emake DESTDIR="${D}" install || die "emake install failed"
191
192 - linguas
193 - for X in "${linguas[@]}"; do
194 - xpi_install "${WORKDIR}/${P}-${X}"
195 - done
196 + # Install language packs
197 + mozlinguas_src_install
198
199 local size sizes icon_path icon name
200 if use bindist; then