1 |
armin76 08/04/17 10:32:54 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mozilla-firefox-2.0.0.14.ebuild |
5 |
Log: |
6 |
Version bump |
7 |
(Portage version: 2.1.4.4) |
8 |
|
9 |
Revision Changes Path |
10 |
1.388 www-client/mozilla-firefox/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/mozilla-firefox/ChangeLog?rev=1.388&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/mozilla-firefox/ChangeLog?rev=1.388&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/mozilla-firefox/ChangeLog?r1=1.387&r2=1.388 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/www-client/mozilla-firefox/ChangeLog,v |
19 |
retrieving revision 1.387 |
20 |
retrieving revision 1.388 |
21 |
diff -u -r1.387 -r1.388 |
22 |
--- ChangeLog 10 Apr 2008 22:46:42 -0000 1.387 |
23 |
+++ ChangeLog 17 Apr 2008 10:32:53 -0000 1.388 |
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.387 2008/04/10 22:46:42 armin76 Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/mozilla-firefox/ChangeLog,v 1.388 2008/04/17 10:32:53 armin76 Exp $ |
29 |
+ |
30 |
+*mozilla-firefox-2.0.0.14 (17 Apr 2008) |
31 |
+ |
32 |
+ 17 Apr 2008; Raúl Porcel <armin76@g.o> |
33 |
+ +mozilla-firefox-2.0.0.14.ebuild: |
34 |
+ Version bump |
35 |
|
36 |
10 Apr 2008; Raúl Porcel <armin76@g.o> |
37 |
mozilla-firefox-3.0_beta5.ebuild: |
38 |
|
39 |
|
40 |
|
41 |
1.1 www-client/mozilla-firefox/mozilla-firefox-2.0.0.14.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/mozilla-firefox/mozilla-firefox-2.0.0.14.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.14.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: mozilla-firefox-2.0.0.14.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.14.ebuild,v 1.1 2008/04/17 10:32:53 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.13-patches-0.1" |
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.8 |
94 |
>=dev-libs/nspr-4.6.8" |
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 |
sed -i -e "s|BonEcho|Iceweasel|" configure.in |
180 |
fi |
181 |
|
182 |
eautoreconf |
183 |
} |
184 |
|
185 |
src_compile() { |
186 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
187 |
|
188 |
mozconfig_init |
189 |
mozconfig_config |
190 |
|
191 |
mozconfig_annotate '' --enable-application=browser |
192 |
mozconfig_annotate '' --enable-image-encoder=all |
193 |
mozconfig_annotate '' --enable-canvas |
194 |
mozconfig_annotate '' --with-system-nspr |
195 |
mozconfig_annotate '' --with-system-nss |
196 |
|
197 |
if use xforms; then |
198 |
mozconfig_annotate '' --enable-extensions=default,xforms,schema-validation,typeaheadfind |
199 |
else |
200 |
mozconfig_annotate '' --enable-extensions=default,typeaheadfind |
201 |
fi |
202 |
|
203 |
if use ia64; then |
204 |
echo "ac_cv_visibility_pragma=no" >> "${S}/.mozconfig" |
205 |
fi |
206 |
|
207 |
if ! use bindist && ! use iceweasel; then |
208 |
mozconfig_annotate '' --enable-official-branding |
209 |
fi |
210 |
|
211 |
# Bug 60668: Galeon doesn't build without oji enabled, so enable it |
212 |
# regardless of java setting. |
213 |
mozconfig_annotate '' --enable-oji --enable-mathml |
214 |
|
215 |
# Other ff-specific settings |
216 |
mozconfig_use_enable mozdevelop jsd |
217 |
mozconfig_use_enable mozdevelop xpctools |
218 |
mozconfig_use_extension mozdevelop venkman |
219 |
mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME} |
220 |
|
221 |
# Finalize and report settings |
222 |
mozconfig_final |
223 |
|
224 |
# -fstack-protector breaks us |
225 |
if gcc-version ge 4 1; then |
226 |
gcc-specs-ssp && append-flags -fno-stack-protector |
227 |
else |
228 |
gcc-specs-ssp && append-flags -fno-stack-protector-all |
229 |
fi |
230 |
filter-flags -fstack-protector -fstack-protector-all |
231 |
|
232 |
#################################### |
233 |
# |
234 |
# Configure and build |
235 |
# |
236 |
#################################### |
237 |
|
238 |
CPPFLAGS="${CPPFLAGS} -DARON_WAS_HERE" \ |
239 |
CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \ |
240 |
econf || die |
241 |
|
242 |
# It would be great if we could pass these in via CPPFLAGS or CFLAGS prior |
243 |
# to econf, but the quotes cause configure to fail. |
244 |
sed -i -e \ |
245 |
's|-DARON_WAS_HERE|-DGENTOO_NSPLUGINS_DIR=\\\"/usr/'"$(get_libdir)"'/nsplugins\\\" -DGENTOO_NSBROWSER_PLUGINS_DIR=\\\"/usr/'"$(get_libdir)"'/nsbrowser/plugins\\\"|' \ |
246 |
"${S}"/config/autoconf.mk \ |
247 |
"${S}"/toolkit/content/buildconfig.html |
248 |
|
249 |
# This removes extraneous CFLAGS from the Makefiles to reduce RAM |
250 |
# requirements while compiling |
251 |
edit_makefiles |
252 |
|
253 |
# Should the build use multiprocessing? Not enabled by default, as it tends to break |
254 |
[ "${WANT_MP}" = "true" ] && jobs=${MAKEOPTS} || jobs="-j1" |
255 |
emake ${jobs} || die |
256 |
} |
257 |
|
258 |
pkg_preinst() { |
259 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
260 |
|
261 |
einfo "Removing old installs with some really ugly code. It potentially" |
262 |
einfo "eliminates any problems during the install, however suggestions to" |
263 |
einfo "replace this are highly welcome. Send comments and suggestions to" |
264 |
einfo "mozilla@g.o." |
265 |
rm -rf "${ROOT}"/"${MOZILLA_FIVE_HOME}" |
266 |
} |
267 |
|
268 |
src_install() { |
269 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
270 |
|
271 |
# Most of the installation happens here |
272 |
dodir "${MOZILLA_FIVE_HOME}" |
273 |
cp -RL "${S}"/dist/bin/* "${D}"/"${MOZILLA_FIVE_HOME}"/ || die "cp failed" |
274 |
|
275 |
linguas |
276 |
for X in ${linguas}; do |
277 |
[[ ${X} != "en" ]] && xpi_install "${WORKDIR}"/"${P}-${X}" |
278 |
done |
279 |
|
280 |
local LANG=${linguas%% *} |
281 |
if [[ -n ${LANG} && ${LANG} != "en" ]]; then |
282 |
elog "Setting default locale to ${LANG}" |
283 |
dosed -e "s:general.useragent.locale\", \"en-US\":general.useragent.locale\", \"${LANG}\":" \ |
284 |
"${MOZILLA_FIVE_HOME}"/defaults/pref/firefox.js \ |
285 |
"${MOZILLA_FIVE_HOME}"/defaults/pref/firefox-l10n.js || \ |
286 |
die "sed failed to change locale" |
287 |
fi |
288 |
|
289 |
# Create /usr/bin/firefox |
290 |
install_mozilla_launcher_stub firefox "${MOZILLA_FIVE_HOME}" |
291 |
|
292 |
# Install icon and .desktop for menu entry |
293 |
if use iceweasel; then |
294 |
newicon "${S}"/browser/base/branding/icon48.png iceweasel-icon.png |
295 |
newmenu "${FILESDIR}"/icon/iceweasel.desktop \ |
296 |
mozilla-firefox-2.0.desktop |
297 |
elif ! use bindist; then |
298 |
newicon "${S}"/other-licenses/branding/firefox/content/icon48.png firefox-icon.png |
299 |
newmenu "${FILESDIR}"/icon/mozilla-firefox-1.5.desktop \ |
300 |
mozilla-firefox-2.0.desktop |
301 |
else |
302 |
newicon "${S}"/browser/base/branding/icon48.png firefox-icon-unbranded.png |
303 |
newmenu "${FILESDIR}"/icon/mozilla-firefox-1.5-unbranded.desktop \ |
304 |
mozilla-firefox-2.0.desktop |
305 |
fi |
306 |
|
307 |
# Fix icons to look the same everywhere |
308 |
insinto "${MOZILLA_FIVE_HOME}"/icons |
309 |
doins "${S}"/dist/branding/mozicon16.xpm |
310 |
doins "${S}"/dist/branding/mozicon50.xpm |
311 |
|
312 |
# Install files necessary for applications to build against firefox |
313 |
einfo "Installing includes and idl files..." |
314 |
cp -LfR "${S}"/dist/include "${D}"/"${MOZILLA_FIVE_HOME}" || die "cp failed" |
315 |
cp -LfR "${S}"/dist/idl "${D}"/"${MOZILLA_FIVE_HOME}" || die "cp failed" |
316 |
|
317 |
# Dirty hack to get some applications using this header running |
318 |
dosym "${MOZILLA_FIVE_HOME}"/include/necko/nsIURI.h \ |
319 |
"${MOZILLA_FIVE_HOME}"/include/nsIURI.h |
320 |
|
321 |
# Install pkgconfig files |
322 |
insinto /usr/"$(get_libdir)"/pkgconfig |
323 |
doins "${S}"/build/unix/*.pc |
324 |
|
325 |
insinto "${MOZILLA_FIVE_HOME}"/greprefs |
326 |
newins "${FILESDIR}"/gentoo-default-prefs.js all-gentoo.js |
327 |
insinto "${MOZILLA_FIVE_HOME}"/defaults/pref |
328 |
newins "${FILESDIR}"/gentoo-default-prefs.js all-gentoo.js |
329 |
} |
330 |
|
331 |
pkg_postinst() { |
332 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
333 |
|
334 |
# This should be called in the postinst and postrm of all the |
335 |
# mozilla, mozilla-bin, firefox, firefox-bin, thunderbird and |
336 |
# thunderbird-bin ebuilds. |
337 |
update_mozilla_launcher_symlinks |
338 |
|
339 |
# Update mimedb for the new .desktop file |
340 |
fdo-mime_desktop_database_update |
341 |
|
342 |
elog "Please remember to rebuild any packages that you have built" |
343 |
elog "against Firefox. Some packages might be broken by the upgrade; if this" |
344 |
elog "is the case, please search at http://bugs.gentoo.org and open a new bug" |
345 |
elog "if one does not exist. Before filing any bugs, please move or remove" |
346 |
elog " ~/.mozilla and test with a clean profile directory." |
347 |
} |
348 |
|
349 |
pkg_postrm() { |
350 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
351 |
|
352 |
update_mozilla_launcher_symlinks |
353 |
} |
354 |
|
355 |
|
356 |
|
357 |
-- |
358 |
gentoo-commits@l.g.o mailing list |