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