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