Gentoo Archives: gentoo-commits

From: "Raul Porcel (armin76)" <armin76@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-client/mozilla-firefox: ChangeLog mozilla-firefox-2.0.0.9.ebuild
Date: Fri, 02 Nov 2007 11:59:08
Message-Id: E1InvB0-0006Hm-Ob@stork.gentoo.org
1 armin76 07/11/02 11:59:02
2
3 Modified: ChangeLog
4 Added: mozilla-firefox-2.0.0.9.ebuild
5 Log:
6 Version bump
7 (Portage version: 2.1.3.16)
8
9 Revision Changes Path
10 1.339 www-client/mozilla-firefox/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/mozilla-firefox/ChangeLog?rev=1.339&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/mozilla-firefox/ChangeLog?rev=1.339&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/mozilla-firefox/ChangeLog?r1=1.338&r2=1.339
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/www-client/mozilla-firefox/ChangeLog,v
19 retrieving revision 1.338
20 retrieving revision 1.339
21 diff -u -r1.338 -r1.339
22 --- ChangeLog 23 Oct 2007 20:18:55 -0000 1.338
23 +++ ChangeLog 2 Nov 2007 11:59:02 -0000 1.339
24 @@ -1,6 +1,12 @@
25 # ChangeLog for www-client/mozilla-firefox
26 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/www-client/mozilla-firefox/ChangeLog,v 1.338 2007/10/23 20:18:55 angelos Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/www-client/mozilla-firefox/ChangeLog,v 1.339 2007/11/02 11:59:02 armin76 Exp $
29 +
30 +*mozilla-firefox-2.0.0.9 (02 Nov 2007)
31 +
32 + 02 Nov 2007; Raúl Porcel <armin76@g.o>
33 + +mozilla-firefox-2.0.0.9.ebuild:
34 + Version bump
35
36 23 Oct 2007; Christoph Mende <angelos@g.o>
37 mozilla-firefox-2.0.0.8.ebuild:
38
39
40
41 1.1 www-client/mozilla-firefox/mozilla-firefox-2.0.0.9.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/mozilla-firefox/mozilla-firefox-2.0.0.9.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/mozilla-firefox/mozilla-firefox-2.0.0.9.ebuild?rev=1.1&content-type=text/plain
45
46 Index: mozilla-firefox-2.0.0.9.ebuild
47 ===================================================================
48 # Copyright 1999-2007 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/www-client/mozilla-firefox/mozilla-firefox-2.0.0.9.ebuild,v 1.1 2007/11/02 11:59:02 armin76 Exp $
51
52 WANT_AUTOCONF="2.1"
53
54 inherit flag-o-matic toolchain-funcs eutils mozconfig-2 mozilla-launcher makeedit multilib fdo-mime mozextension autotools
55
56 PATCH="${PN}-2.0.0.8-patches-0.2"
57 LANGS="af ar be bg ca cs da de el en-GB es-AR es-ES eu fi fr fy-NL ga-IE gu-IN he hu it ja ka ko ku lt mk mn nb-NO nl nn-NO pa-IN pl pt-BR pt-PT ro ru sk sl sv-SE tr zh-CN zh-TW"
58 NOSHORTLANGS="en-GB es-AR pt-BR zh-TW"
59
60 DESCRIPTION="Firefox Web Browser"
61 HOMEPAGE="http://www.mozilla.org/projects/firefox/"
62
63 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
64 SLOT="0"
65 LICENSE="MPL-1.1 GPL-2 LGPL-2.1"
66 IUSE="java mozdevelop bindist xforms restrict-javascript filepicker"
67
68 MOZ_URI="http://releases.mozilla.org/pub/mozilla.org/firefox/releases/${PV}"
69 SRC_URI="${MOZ_URI}/source/firefox-${PV}-source.tar.bz2
70 mirror://gentoo/${PATCH}.tar.bz2"
71
72 # These are in
73 #
74 # http://releases.mozilla.org/pub/mozilla.org/firefox/releases/${PV}/linux-i686/xpi/
75 #
76 # for i in $LANGS $SHORTLANGS; do wget $i.xpi -O ${P}-$i.xpi; done
77 for X in ${LANGS} ; do
78 SRC_URI="${SRC_URI}
79 linguas_${X/-/_}? ( http://dev.gentooexperimental.org/~armin76/dist/${P}-xpi/${P}-${X}.xpi )"
80 IUSE="${IUSE} linguas_${X/-/_}"
81 # english is handled internally
82 if [ "${#X}" == 5 ] && ! has ${X} ${NOSHORTLANGS}; then
83 SRC_URI="${SRC_URI}
84 linguas_${X%%-*}? ( http://dev.gentooexperimental.org/~armin76/dist/${P}-xpi/${P}-${X}.xpi )"
85 IUSE="${IUSE} linguas_${X%%-*}"
86 fi
87 done
88
89 RDEPEND="java? ( virtual/jre )
90 >=www-client/mozilla-launcher-1.39
91 >=sys-devel/binutils-2.16.1
92 >=dev-libs/nss-3.11.5
93 >=dev-libs/nspr-4.6.5"
94
95 DEPEND="${RDEPEND}
96 java? ( >=dev-java/java-config-0.2.0 )"
97
98 PDEPEND="restrict-javascript? ( x11-plugins/noscript )"
99
100 S="${WORKDIR}/mozilla"
101
102 # Needed by src_compile() and src_install().
103 # Would do in pkg_setup but that loses the export attribute, they
104 # become pure shell variables.
105 export MOZ_CO_PROJECT=browser
106 export BUILD_OFFICIAL=1
107 export MOZILLA_OFFICIAL=1
108
109 linguas() {
110 local LANG SLANG
111 for LANG in ${LINGUAS}; do
112 if has ${LANG} en en_US; then
113 has en ${linguas} || linguas="${linguas:+"${linguas} "}en"
114 continue
115 elif has ${LANG} ${LANGS//-/_}; then
116 has ${LANG//_/-} ${linguas} || linguas="${linguas:+"${linguas} "}${LANG//_/-}"
117 continue
118 elif [[ " ${LANGS} " == *" ${LANG}-"* ]]; then
119 for X in ${LANGS}; do
120 if [[ "${X}" == "${LANG}-"* ]] && \
121 [[ " ${NOSHORTLANGS} " != *" ${X} "* ]]; then
122 has ${X} ${linguas} || linguas="${linguas:+"${linguas} "}${X}"
123 continue 2
124 fi
125 done
126 fi
127 ewarn "Sorry, but mozilla-firefox does not support the ${LANG} LINGUA"
128 done
129 }
130
131 pkg_setup(){
132 if ! built_with_use x11-libs/cairo X; then
133 eerror "Cairo is not built with X useflag."
134 eerror "Please add 'X' to your USE flags, and re-emerge cairo."
135 die "Cairo needs X"
136 fi
137
138 if ! use bindist; then
139 elog "You are enabling official branding. You may not redistribute this build"
140 elog "to any users on your network or the internet. Doing so puts yourself into"
141 elog "a legal problem with Mozilla Foundation"
142 elog "You can disable it by emerging ${PN} _with_ the bindist USE-flag"
143
144 fi
145
146 use moznopango && warn_mozilla_launcher_stub
147 }
148
149 src_unpack() {
150 unpack firefox-${PV}-source.tar.bz2 ${PATCH}.tar.bz2
151
152 linguas
153 for X in ${linguas}; do
154 [[ ${X} != "en" ]] && xpi_unpack "${P}-${X}.xpi"
155 done
156 if [[ ${linguas} != "" ]]; then
157 einfo "Selected language packs (first will be default): ${linguas}"
158 fi
159
160 # Apply our patches
161 cd "${S}" || die "cd failed"
162 EPATCH_SUFFIX="patch" \
163 EPATCH_FORCE="yes" \
164 epatch "${WORKDIR}"/patch
165
166 if use filepicker; then
167 epatch "${FILESDIR}"/mozilla-filepicker.patch
168 fi
169
170 eautoreconf
171 }
172
173 src_compile() {
174 declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
175
176 mozconfig_init
177 mozconfig_config
178
179 mozconfig_annotate '' --enable-application=browser
180 mozconfig_annotate '' --enable-image-encoder=all
181 mozconfig_annotate '' --enable-canvas
182 mozconfig_annotate '' --with-system-nspr
183 mozconfig_annotate '' --with-system-nss
184
185 if use xforms; then
186 mozconfig_annotate '' --enable-extensions=default,xforms,schema-validation,typeaheadfind
187 else
188 mozconfig_annotate '' --enable-extensions=default,typeaheadfind
189 fi
190
191 if use ia64; then
192 echo "ac_cv_visibility_pragma=no" >> "${S}/.mozconfig"
193 fi
194
195 if ! use bindist; then
196 mozconfig_annotate '' --enable-official-branding
197 fi
198
199 # Bug 60668: Galeon doesn't build without oji enabled, so enable it
200 # regardless of java setting.
201 mozconfig_annotate '' --enable-oji --enable-mathml
202
203 # Other ff-specific settings
204 mozconfig_use_enable mozdevelop jsd
205 mozconfig_use_enable mozdevelop xpctools
206 mozconfig_use_extension mozdevelop venkman
207 mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME}
208
209 # Finalize and report settings
210 mozconfig_final
211
212 # -fstack-protector breaks us
213 if gcc-version ge 4 1; then
214 gcc-specs-ssp && append-flags -fno-stack-protector
215 else
216 gcc-specs-ssp && append-flags -fno-stack-protector-all
217 fi
218 filter-flags -fstack-protector -fstack-protector-all
219
220 ####################################
221 #
222 # Configure and build
223 #
224 ####################################
225
226 CPPFLAGS="${CPPFLAGS} -DARON_WAS_HERE" \
227 CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \
228 econf || die
229
230 # It would be great if we could pass these in via CPPFLAGS or CFLAGS prior
231 # to econf, but the quotes cause configure to fail.
232 sed -i -e \
233 's|-DARON_WAS_HERE|-DGENTOO_NSPLUGINS_DIR=\\\"/usr/'"$(get_libdir)"'/nsplugins\\\" -DGENTOO_NSBROWSER_PLUGINS_DIR=\\\"/usr/'"$(get_libdir)"'/nsbrowser/plugins\\\"|' \
234 "${S}"/config/autoconf.mk \
235 "${S}"/toolkit/content/buildconfig.html
236
237 # This removes extraneous CFLAGS from the Makefiles to reduce RAM
238 # requirements while compiling
239 edit_makefiles
240
241 # Should the build use multiprocessing? Not enabled by default, as it tends to break
242 [ "${WANT_MP}" = "true" ] && jobs=${MAKEOPTS} || jobs="-j1"
243 emake ${jobs} || die
244 }
245
246 pkg_preinst() {
247 declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
248
249 einfo "Removing old installs with some really ugly code. It potentially"
250 einfo "eliminates any problems during the install, however suggestions to"
251 einfo "replace this are highly welcome. Send comments and suggestions to"
252 einfo "mozilla@g.o."
253 rm -rf "${ROOT}"/"${MOZILLA_FIVE_HOME}"
254 }
255
256 src_install() {
257 declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
258
259 # Most of the installation happens here
260 dodir "${MOZILLA_FIVE_HOME}"
261 cp -RL "${S}"/dist/bin/* "${D}"/"${MOZILLA_FIVE_HOME}"/ || die "cp failed"
262
263 linguas
264 for X in ${linguas}; do
265 [[ ${X} != "en" ]] && xpi_install "${WORKDIR}"/"${P}-${X}"
266 done
267
268 local LANG=${linguas%% *}
269 if [[ -n ${LANG} && ${LANG} != "en" ]]; then
270 elog "Setting default locale to ${LANG}"
271 dosed -e "s:general.useragent.locale\", \"en-US\":general.useragent.locale\", \"${LANG}\":" \
272 "${MOZILLA_FIVE_HOME}"/defaults/pref/firefox.js \
273 "${MOZILLA_FIVE_HOME}"/defaults/pref/firefox-l10n.js || \
274 die "sed failed to change locale"
275 fi
276
277 # Create /usr/bin/firefox
278 install_mozilla_launcher_stub firefox "${MOZILLA_FIVE_HOME}"
279
280 # Install icon and .desktop for menu entry
281 if ! use bindist; then
282 doicon "${FILESDIR}"/icon/firefox-icon.png
283 newmenu "${FILESDIR}"/icon/mozilla-firefox-1.5.desktop \
284 mozilla-firefox-2.0.desktop
285 else
286 doicon "${FILESDIR}"/icon/firefox-icon-unbranded.png
287 newmenu "${FILESDIR}"/icon/mozilla-firefox-1.5-unbranded.desktop \
288 mozilla-firefox-2.0.desktop
289 fi
290
291 # Fix icons to look the same everywhere
292 insinto "${MOZILLA_FIVE_HOME}"/icons
293 doins "${S}"/dist/branding/mozicon16.xpm
294 doins "${S}"/dist/branding/mozicon50.xpm
295
296 # Install files necessary for applications to build against firefox
297 einfo "Installing includes and idl files..."
298 cp -LfR "${S}"/dist/include "${D}"/"${MOZILLA_FIVE_HOME}" || die "cp failed"
299 cp -LfR "${S}"/dist/idl "${D}"/"${MOZILLA_FIVE_HOME}" || die "cp failed"
300
301 # Dirty hack to get some applications using this header running
302 dosym "${MOZILLA_FIVE_HOME}"/include/necko/nsIURI.h \
303 "${MOZILLA_FIVE_HOME}"/include/nsIURI.h
304
305 # Install pkgconfig files
306 insinto /usr/"$(get_libdir)"/pkgconfig
307 doins "${S}"/build/unix/*.pc
308
309 insinto "${MOZILLA_FIVE_HOME}"/greprefs
310 newins "${FILESDIR}"/gentoo-default-prefs.js all-gentoo.js
311 insinto "${MOZILLA_FIVE_HOME}"/defaults/pref
312 newins "${FILESDIR}"/gentoo-default-prefs.js all-gentoo.js
313 }
314
315 pkg_postinst() {
316 declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
317
318 # This should be called in the postinst and postrm of all the
319 # mozilla, mozilla-bin, firefox, firefox-bin, thunderbird and
320 # thunderbird-bin ebuilds.
321 update_mozilla_launcher_symlinks
322
323 # Update mimedb for the new .desktop file
324 fdo-mime_desktop_database_update
325
326 elog "Please remember to rebuild any packages that you have built"
327 elog "against Firefox. Some packages might be broken by the upgrade; if this"
328 elog "is the case, please search at http://bugs.gentoo.org and open a new bug"
329 elog "if one does not exist. Before filing any bugs, please move or remove"
330 elog " ~/.mozilla and test with a clean profile directory."
331 }
332
333 pkg_postrm() {
334 declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
335
336 update_mozilla_launcher_symlinks
337 }
338
339
340
341 --
342 gentoo-commits@g.o mailing list