1 |
armin76 08/09/27 10:20:31 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mozilla-firefox-3.0.3.ebuild |
5 |
Removed: mozilla-firefox-3.0.2.ebuild |
6 |
mozilla-firefox-3.0.1.ebuild |
7 |
mozilla-firefox-2.0.0.11.ebuild |
8 |
Log: |
9 |
Version bump, add ~arm remove old |
10 |
(Portage version: 2.1.4.4) |
11 |
|
12 |
Revision Changes Path |
13 |
1.444 www-client/mozilla-firefox/ChangeLog |
14 |
|
15 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/mozilla-firefox/ChangeLog?rev=1.444&view=markup |
16 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/mozilla-firefox/ChangeLog?rev=1.444&content-type=text/plain |
17 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/mozilla-firefox/ChangeLog?r1=1.443&r2=1.444 |
18 |
|
19 |
Index: ChangeLog |
20 |
=================================================================== |
21 |
RCS file: /var/cvsroot/gentoo-x86/www-client/mozilla-firefox/ChangeLog,v |
22 |
retrieving revision 1.443 |
23 |
retrieving revision 1.444 |
24 |
diff -u -r1.443 -r1.444 |
25 |
--- ChangeLog 26 Sep 2008 15:08:13 -0000 1.443 |
26 |
+++ ChangeLog 27 Sep 2008 10:20:30 -0000 1.444 |
27 |
@@ -1,6 +1,13 @@ |
28 |
# ChangeLog for www-client/mozilla-firefox |
29 |
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
30 |
-# $Header: /var/cvsroot/gentoo-x86/www-client/mozilla-firefox/ChangeLog,v 1.443 2008/09/26 15:08:13 jer Exp $ |
31 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/mozilla-firefox/ChangeLog,v 1.444 2008/09/27 10:20:30 armin76 Exp $ |
32 |
+ |
33 |
+*mozilla-firefox-3.0.3 (27 Sep 2008) |
34 |
+ |
35 |
+ 27 Sep 2008; Raúl Porcel <armin76@g.o> |
36 |
+ -mozilla-firefox-2.0.0.11.ebuild, -mozilla-firefox-3.0.1.ebuild, |
37 |
+ -mozilla-firefox-3.0.2.ebuild, +mozilla-firefox-3.0.3.ebuild: |
38 |
+ Version bump, add ~arm remove old |
39 |
|
40 |
26 Sep 2008; Jeroen Roovers <jer@g.o> |
41 |
mozilla-firefox-2.0.0.17.ebuild: |
42 |
|
43 |
|
44 |
|
45 |
1.1 www-client/mozilla-firefox/mozilla-firefox-3.0.3.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/mozilla-firefox/mozilla-firefox-3.0.3.ebuild?rev=1.1&view=markup |
48 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/mozilla-firefox/mozilla-firefox-3.0.3.ebuild?rev=1.1&content-type=text/plain |
49 |
|
50 |
Index: mozilla-firefox-3.0.3.ebuild |
51 |
=================================================================== |
52 |
# Copyright 1999-2008 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
# $Header: /var/cvsroot/gentoo-x86/www-client/mozilla-firefox/mozilla-firefox-3.0.3.ebuild,v 1.1 2008/09/27 10:20:30 armin76 Exp $ |
55 |
EAPI="1" |
56 |
WANT_AUTOCONF="2.1" |
57 |
|
58 |
inherit flag-o-matic toolchain-funcs eutils mozconfig-3 makeedit multilib fdo-mime autotools mozextension |
59 |
PATCH="${PN}-3.0.1-patches-0.3" |
60 |
|
61 |
LANGS="af ar be bn-IN ca cs da de el en-GB en-US es-AR es-ES eu fi fr fy-NL ga-IE gl gu-IN he hi-IN hu id is it ja ka kn ko ku lt mk mn mr nb-NO nl nn-NO pa-IN pl pt-BR pt-PT ro ru si sk sl sq sr sv-SE th tr uk zh-CN zh-TW" |
62 |
NOSHORTLANGS="en-GB es-AR pt-BR zh-CN" |
63 |
|
64 |
MY_PV=${PV/3/} |
65 |
|
66 |
DESCRIPTION="Firefox Web Browser" |
67 |
HOMEPAGE="http://www.mozilla.com/firefox" |
68 |
|
69 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 -sparc ~x86" |
70 |
SLOT="0" |
71 |
LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )" |
72 |
IUSE="java mozdevelop bindist restrict-javascript iceweasel +xulrunner" |
73 |
|
74 |
SRC_URI="mirror://gentoo/${P}.tar.bz2 |
75 |
http://dev.gentoo.org/~armin76/dist/${P}.tar.bz2 |
76 |
mirror://gentoo/${PATCH}.tar.bz2 |
77 |
http://dev.gentoo.org/~armin76/dist/${PATCH}.tar.bz2 |
78 |
iceweasel? ( mirror://gentoo/iceweasel-icons-3.0.tar.bz2 ) |
79 |
!xulrunner? ( mirror://gentoo/xulrunner-1.9${MY_PV}.tar.bz2 )" |
80 |
|
81 |
# These are in |
82 |
# |
83 |
# http://releases.mozilla.org/pub/mozilla.org/firefox/releases/${PV}/linux-i686/xpi/ |
84 |
# |
85 |
# for i in $LANGS $SHORTLANGS; do wget $i.xpi -O ${P}-$i.xpi; done |
86 |
for X in ${LANGS} ; do |
87 |
if [ "${X}" != "en" ] && [ "${X}" != "en-US" ]; then |
88 |
SRC_URI="${SRC_URI} |
89 |
linguas_${X/-/_}? ( http://dev.gentoo.org/~armin76/dist/${P}-xpi/${P}-${X}.xpi )" |
90 |
fi |
91 |
IUSE="${IUSE} linguas_${X/-/_}" |
92 |
# english is handled internally |
93 |
if [ "${#X}" == 5 ] && ! has ${X} ${NOSHORTLANGS}; then |
94 |
if [ "${X}" != "en-US" ]; then |
95 |
SRC_URI="${SRC_URI} |
96 |
linguas_${X%%-*}? ( http://dev.gentoo.org/~armin76/dist/${P}-xpi/${P}-${X}.xpi )" |
97 |
fi |
98 |
IUSE="${IUSE} linguas_${X%%-*}" |
99 |
fi |
100 |
done |
101 |
|
102 |
RDEPEND="java? ( virtual/jre ) |
103 |
>=sys-devel/binutils-2.16.1 |
104 |
>=dev-libs/nss-3.12 |
105 |
>=dev-libs/nspr-4.7.1 |
106 |
>=media-libs/lcms-1.17 |
107 |
>=app-text/hunspell-1.1.9 |
108 |
xulrunner? ( >=net-libs/xulrunner-1.9${MY_PV} )" |
109 |
|
110 |
DEPEND="${RDEPEND} |
111 |
dev-util/pkgconfig |
112 |
java? ( >=dev-java/java-config-0.2.0 )" |
113 |
|
114 |
PDEPEND="restrict-javascript? ( x11-plugins/noscript )" |
115 |
|
116 |
S="${WORKDIR}/mozilla" |
117 |
|
118 |
# Needed by src_compile() and src_install(). |
119 |
# Would do in pkg_setup but that loses the export attribute, they |
120 |
# become pure shell variables. |
121 |
export MOZ_CO_PROJECT=browser |
122 |
export BUILD_OFFICIAL=1 |
123 |
export MOZILLA_OFFICIAL=1 |
124 |
|
125 |
linguas() { |
126 |
local LANG SLANG |
127 |
for LANG in ${LINGUAS}; do |
128 |
if has ${LANG} en en_US; then |
129 |
has en ${linguas} || linguas="${linguas:+"${linguas} "}en" |
130 |
continue |
131 |
elif has ${LANG} ${LANGS//-/_}; then |
132 |
has ${LANG//_/-} ${linguas} || linguas="${linguas:+"${linguas} "}${LANG//_/-}" |
133 |
continue |
134 |
elif [[ " ${LANGS} " == *" ${LANG}-"* ]]; then |
135 |
for X in ${LANGS}; do |
136 |
if [[ "${X}" == "${LANG}-"* ]] && \ |
137 |
[[ " ${NOSHORTLANGS} " != *" ${X} "* ]]; then |
138 |
has ${X} ${linguas} || linguas="${linguas:+"${linguas} "}${X}" |
139 |
continue 2 |
140 |
fi |
141 |
done |
142 |
fi |
143 |
ewarn "Sorry, but mozilla-firefox does not support the ${LANG} LINGUA" |
144 |
done |
145 |
} |
146 |
|
147 |
pkg_setup(){ |
148 |
if ! built_with_use x11-libs/cairo X; then |
149 |
eerror "Cairo is not built with X useflag." |
150 |
eerror "Please add 'X' to your USE flags, and re-emerge cairo." |
151 |
die "Cairo needs X" |
152 |
fi |
153 |
|
154 |
if ! built_with_use --missing true x11-libs/pango X; then |
155 |
eerror "Pango is not built with X useflag." |
156 |
eerror "Please add 'X' to your USE flags, and re-emerge pango." |
157 |
die "Pango needs X" |
158 |
fi |
159 |
|
160 |
if ! use bindist && ! use iceweasel; then |
161 |
elog "You are enabling official branding. You may not redistribute this build" |
162 |
elog "to any users on your network or the internet. Doing so puts yourself into" |
163 |
elog "a legal problem with Mozilla Foundation" |
164 |
elog "You can disable it by emerging ${PN} _with_ the bindist USE-flag" |
165 |
|
166 |
fi |
167 |
} |
168 |
|
169 |
src_unpack() { |
170 |
! use xulrunner && unpack xulrunner-1.9${MY_PV}.tar.bz2 |
171 |
unpack ${P}.tar.bz2 ${PATCH}.tar.bz2 |
172 |
|
173 |
if use iceweasel; then |
174 |
unpack iceweasel-icons-3.0.tar.bz2 |
175 |
|
176 |
cp -r iceweaselicons/browser mozilla/ |
177 |
fi |
178 |
|
179 |
linguas |
180 |
for X in ${linguas}; do |
181 |
[[ ${X} != "en" ]] && xpi_unpack "${P}-${X}.xpi" |
182 |
done |
183 |
if [[ ${linguas} != "" && ${linguas} != "en" ]]; then |
184 |
einfo "Selected language packs (first will be default): ${linguas}" |
185 |
fi |
186 |
|
187 |
# Remove the patches we don't need |
188 |
use xulrunner && rm "${WORKDIR}"/patch/*noxul* || rm "${WORKDIR}"/patch/*xulonly* |
189 |
|
190 |
# Apply our patches |
191 |
cd "${S}" || die "cd failed" |
192 |
EPATCH_SUFFIX="patch" \ |
193 |
EPATCH_FORCE="yes" \ |
194 |
epatch "${WORKDIR}"/patch |
195 |
|
196 |
if use iceweasel; then |
197 |
sed -i -e "s|Minefield|Iceweasel|" browser/locales/en-US/chrome/branding/brand.* \ |
198 |
browser/branding/nightly/configure.sh |
199 |
fi |
200 |
|
201 |
eautoreconf |
202 |
|
203 |
# We need to re-patch this because autoreconf overwrites it |
204 |
epatch "${WORKDIR}"/patch/000_flex-configure-LANG.patch |
205 |
} |
206 |
|
207 |
src_compile() { |
208 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
209 |
MEXTENSIONS="default,typeaheadfind" |
210 |
|
211 |
#################################### |
212 |
# |
213 |
# mozconfig, CFLAGS and CXXFLAGS setup |
214 |
# |
215 |
#################################### |
216 |
|
217 |
mozconfig_init |
218 |
mozconfig_config |
219 |
|
220 |
mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}" |
221 |
mozconfig_annotate '' --disable-mailnews |
222 |
mozconfig_annotate 'broken' --disable-mochitest |
223 |
mozconfig_annotate 'broken' --disable-crashreporter |
224 |
mozconfig_annotate '' --enable-system-hunspell |
225 |
#mozconfig_annotate '' --enable-system-sqlite |
226 |
mozconfig_annotate '' --enable-image-encoder=all |
227 |
mozconfig_annotate '' --enable-canvas |
228 |
mozconfig_annotate '' --with-system-nspr |
229 |
mozconfig_annotate '' --with-system-nss |
230 |
mozconfig_annotate '' --enable-system-lcms |
231 |
mozconfig_annotate '' --enable-oji --enable-mathml |
232 |
mozconfig_annotate 'places' --enable-storage --enable-places --enable-places_bookmarks |
233 |
|
234 |
# Other ff-specific settings |
235 |
#mozconfig_use_enable mozdevelop jsd |
236 |
#mozconfig_use_enable mozdevelop xpctools |
237 |
mozconfig_use_extension mozdevelop venkman |
238 |
mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME} |
239 |
if use xulrunner; then |
240 |
# Add xulrunner variable |
241 |
mozconfig_annotate '' --with-libxul-sdk=/usr/$(get_libdir)/xulrunner-1.9 |
242 |
fi |
243 |
|
244 |
if ! use bindist && ! use iceweasel; then |
245 |
mozconfig_annotate '' --enable-official-branding |
246 |
fi |
247 |
|
248 |
# Finalize and report settings |
249 |
mozconfig_final |
250 |
|
251 |
# -fstack-protector breaks us |
252 |
if gcc-version ge 4 1; then |
253 |
gcc-specs-ssp && append-flags -fno-stack-protector |
254 |
else |
255 |
gcc-specs-ssp && append-flags -fno-stack-protector-all |
256 |
fi |
257 |
filter-flags -fstack-protector -fstack-protector-all |
258 |
|
259 |
#################################### |
260 |
# |
261 |
# Configure and build |
262 |
# |
263 |
#################################### |
264 |
|
265 |
CPPFLAGS="${CPPFLAGS} -DARON_WAS_HERE" \ |
266 |
CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \ |
267 |
econf || die |
268 |
|
269 |
# It would be great if we could pass these in via CPPFLAGS or CFLAGS prior |
270 |
# to econf, but the quotes cause configure to fail. |
271 |
sed -i -e \ |
272 |
's|-DARON_WAS_HERE|-DGENTOO_NSPLUGINS_DIR=\\\"/usr/'"$(get_libdir)"'/nsplugins\\\" -DGENTOO_NSBROWSER_PLUGINS_DIR=\\\"/usr/'"$(get_libdir)"'/nsbrowser/plugins\\\"|' \ |
273 |
"${S}"/config/autoconf.mk \ |
274 |
"${S}"/toolkit/content/buildconfig.html |
275 |
|
276 |
# Should the build use multiprocessing? Not enabled by default, as it tends to break |
277 |
[ "${WANT_MP}" = "true" ] && jobs=${MAKEOPTS} || jobs="-j1" |
278 |
emake ${jobs} || die |
279 |
} |
280 |
|
281 |
pkg_preinst() { |
282 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
283 |
|
284 |
einfo "Removing old installs with some really ugly code. It potentially" |
285 |
einfo "eliminates any problems during the install, however suggestions to" |
286 |
einfo "replace this are highly welcome. Send comments and suggestions to" |
287 |
einfo "mozilla@g.o." |
288 |
rm -rf "${ROOT}"${MOZILLA_FIVE_HOME} |
289 |
} |
290 |
|
291 |
src_install() { |
292 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
293 |
|
294 |
emake DESTDIR="${D}" install || die "emake install failed" |
295 |
rm "${D}"/usr/bin/firefox |
296 |
|
297 |
linguas |
298 |
for X in ${linguas}; do |
299 |
[[ ${X} != "en" ]] && xpi_install "${WORKDIR}"/"${P}-${X}" |
300 |
done |
301 |
|
302 |
use xulrunner && prefs=preferences || prefs=pref |
303 |
cp "${FILESDIR}"/gentoo-default-prefs.js "${D}"${MOZILLA_FIVE_HOME}/defaults/${prefs}/all-gentoo.js |
304 |
|
305 |
local LANG=${linguas%% *} |
306 |
if [[ -n ${LANG} && ${LANG} != "en" ]]; then |
307 |
elog "Setting default locale to ${LANG}" |
308 |
dosed -e "s:general.useragent.locale\", \"en-US\":general.useragent.locale\", \"${LANG}\":" \ |
309 |
${MOZILLA_FIVE_HOME}/defaults/${prefs}/firefox.js \ |
310 |
${MOZILLA_FIVE_HOME}/defaults/${prefs}/firefox-l10n.js || \ |
311 |
die "sed failed to change locale" |
312 |
fi |
313 |
|
314 |
# Install icon and .desktop for menu entry |
315 |
if use iceweasel; then |
316 |
newicon "${S}"/browser/base/branding/icon48.png iceweasel-icon.png |
317 |
newmenu "${FILESDIR}"/icon/iceweasel.desktop \ |
318 |
mozilla-firefox-3.0.desktop |
319 |
elif ! use bindist; then |
320 |
newicon "${S}"/other-licenses/branding/firefox/content/icon48.png firefox-icon.png |
321 |
newmenu "${FILESDIR}"/icon/mozilla-firefox-1.5.desktop \ |
322 |
mozilla-firefox-3.0.desktop |
323 |
else |
324 |
newicon "${S}"/browser/base/branding/icon48.png firefox-icon-unbranded.png |
325 |
newmenu "${FILESDIR}"/icon/mozilla-firefox-1.5-unbranded.desktop \ |
326 |
mozilla-firefox-3.0.desktop |
327 |
sed -i -e "s/Bon Echo/Minefield/" "${D}"/usr/share/applications/mozilla-firefox-3.0.desktop |
328 |
fi |
329 |
|
330 |
if use xulrunner; then |
331 |
# Create /usr/bin/firefox |
332 |
cat <<EOF >"${D}"/usr/bin/firefox |
333 |
#!/bin/sh |
334 |
export LD_LIBRARY_PATH="${MOZILLA_FIVE_HOME}" |
335 |
exec "${MOZILLA_FIVE_HOME}"/firefox "\$@" |
336 |
EOF |
337 |
fperms 0755 /usr/bin/firefox |
338 |
|
339 |
dosym /usr/$(get_libdir)/xulrunner-1.9/defaults/autoconfig \ |
340 |
${MOZILLA_FIVE_HOME}/defaults/autoconfig |
341 |
else |
342 |
# Create /usr/bin/firefox |
343 |
make_wrapper firefox "${MOZILLA_FIVE_HOME}/firefox" |
344 |
|
345 |
# Add vendor |
346 |
echo "pref(\"general.useragent.vendor\",\"Gentoo\");" \ |
347 |
>> "${D}"${MOZILLA_FIVE_HOME}/defaults/pref/vendor.js |
348 |
fi |
349 |
|
350 |
} |
351 |
|
352 |
pkg_postinst() { |
353 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
354 |
|
355 |
ewarn "All the packages built against ${PN} won't compile," |
356 |
ewarn "if after installing firefox 3.0 you get some blockers," |
357 |
ewarn "please add 'xulrunner' to your USE-flags." |
358 |
|
359 |
# Update mimedb for the new .desktop file |
360 |
fdo-mime_desktop_database_update |
361 |
} |