1 |
anarchy 10/01/08 03:05:10 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mozilla-firefox-3.5.7.ebuild |
5 |
Log: |
6 |
stability issue fix for dns |
7 |
(Portage version: 2.1.7.16/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.590 www-client/mozilla-firefox/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/mozilla-firefox/ChangeLog?rev=1.590&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/mozilla-firefox/ChangeLog?rev=1.590&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/mozilla-firefox/ChangeLog?r1=1.589&r2=1.590 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/www-client/mozilla-firefox/ChangeLog,v |
19 |
retrieving revision 1.589 |
20 |
retrieving revision 1.590 |
21 |
diff -u -r1.589 -r1.590 |
22 |
--- ChangeLog 2 Jan 2010 23:36:09 -0000 1.589 |
23 |
+++ ChangeLog 8 Jan 2010 03:05:10 -0000 1.590 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for www-client/mozilla-firefox |
26 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/www-client/mozilla-firefox/ChangeLog,v 1.589 2010/01/02 23:36:09 anarchy Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/mozilla-firefox/ChangeLog,v 1.590 2010/01/08 03:05:10 anarchy Exp $ |
29 |
+ |
30 |
+*mozilla-firefox-3.5.7 (08 Jan 2010) |
31 |
+ |
32 |
+ 08 Jan 2010; <anarchy@g.o> +mozilla-firefox-3.5.7.ebuild: |
33 |
+ stability bump for dns issues |
34 |
|
35 |
02 Jan 2010; Jory A. Pratt <anarchy@g.o> |
36 |
-mozilla-firefox-3.0.11.ebuild, -mozilla-firefox-3.0.14.ebuild, |
37 |
|
38 |
|
39 |
|
40 |
1.1 www-client/mozilla-firefox/mozilla-firefox-3.5.7.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/mozilla-firefox/mozilla-firefox-3.5.7.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/mozilla-firefox/mozilla-firefox-3.5.7.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: mozilla-firefox-3.5.7.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2010 Gentoo Foundation |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
# $Header: /var/cvsroot/gentoo-x86/www-client/mozilla-firefox/mozilla-firefox-3.5.7.ebuild,v 1.1 2010/01/08 03:05:10 anarchy Exp $ |
50 |
EAPI="2" |
51 |
WANT_AUTOCONF="2.1" |
52 |
|
53 |
inherit flag-o-matic toolchain-funcs eutils mozconfig-3 makeedit multilib pax-utils fdo-mime autotools mozextension |
54 |
|
55 |
LANGS="af ar as be bg bn-BD bn-IN ca cs cy da de el en en-GB en-US eo es-AR |
56 |
es-CL es-ES es-MX et eu fa fi fr fy-NL ga-IE gl gu-IN he hi-IN hr hu id is it ja |
57 |
ka kk kn ko ku lt lv mk ml mn mr nb-NO nl nn-NO oc or pa-IN pl pt-BR pt-PT rm ro |
58 |
ru si sk sl sq sr sv-SE ta-LK ta te th tr uk vi zh-CN zh-TW" |
59 |
NOSHORTLANGS="en-GB es-AR es-CL es-MX pt-BR zh-CN zh-TW" |
60 |
|
61 |
XUL_PV="1.9.1.7" |
62 |
MAJ_XUL_PV="1.9.1" |
63 |
MAJ_PV="${PV/_*/}" # Without the _rc and _beta stuff |
64 |
DESKTOP_PV="3.5" |
65 |
MY_PV="${PV/_beta/b}" # Handle betas for SRC_URI |
66 |
MY_PV="${PV/_/}" # Handle rcs for SRC_URI |
67 |
PATCH="${PN}-3.5.5-patches-0.1" |
68 |
|
69 |
DESCRIPTION="Firefox Web Browser" |
70 |
HOMEPAGE="http://www.mozilla.com/firefox" |
71 |
|
72 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
73 |
SLOT="0" |
74 |
LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )" |
75 |
IUSE="+alsa bindist java mozdevelop sqlite iceweasel" # qt-experimental |
76 |
|
77 |
REL_URI="http://releases.mozilla.org/pub/mozilla.org/firefox/releases" |
78 |
SRC_URI="${REL_URI}/${MY_PV}/source/firefox-${MY_PV}.source.tar.bz2 |
79 |
http://dev.gentoo.org/~anarchy/dist/${PATCH}.tar.bz2" |
80 |
|
81 |
for X in ${LANGS} ; do |
82 |
if [ "${X}" != "en" ] && [ "${X}" != "en-US" ]; then |
83 |
SRC_URI="${SRC_URI} |
84 |
linguas_${X/-/_}? ( ${REL_URI}/${MY_PV}/linux-i686/xpi/${X}.xpi -> ${P}-${X}.xpi )" |
85 |
fi |
86 |
IUSE="${IUSE} linguas_${X/-/_}" |
87 |
# english is handled internally |
88 |
if [ "${#X}" == 5 ] && ! has ${X} ${NOSHORTLANGS}; then |
89 |
if [ "${X}" != "en-US" ]; then |
90 |
SRC_URI="${SRC_URI} |
91 |
linguas_${X%%-*}? ( ${REL_URI}/${PV}/linux-i686/xpi/${X}.xpi -> ${P}-${X}.xpi )" |
92 |
fi |
93 |
IUSE="${IUSE} linguas_${X%%-*}" |
94 |
fi |
95 |
done |
96 |
|
97 |
# Not working. |
98 |
# qt-experimental? ( |
99 |
# x11-libs/qt-gui |
100 |
# x11-libs/qt-core ) |
101 |
# =net-libs/xulrunner-${XUL_PV}*[java=,qt-experimental=] |
102 |
|
103 |
RDEPEND=" |
104 |
>=sys-devel/binutils-2.16.1 |
105 |
>=dev-libs/nss-3.12.2 |
106 |
>=dev-libs/nspr-4.7.3 |
107 |
>=app-text/hunspell-1.2 |
108 |
sqlite? ( >=dev-db/sqlite-3.6.20-r1[fts3] ) |
109 |
alsa? ( media-libs/alsa-lib ) |
110 |
~net-libs/xulrunner-${XUL_PV}[java=,sqlite=] |
111 |
>=x11-libs/cairo-1.8.8[X] |
112 |
x11-libs/pango[X]" |
113 |
|
114 |
DEPEND="${RDEPEND} |
115 |
dev-util/pkgconfig" |
116 |
|
117 |
S="${WORKDIR}/mozilla-1.9.1" |
118 |
|
119 |
QA_PRESTRIPPED="usr/$(get_libdir)/${PN}/firefox" |
120 |
|
121 |
linguas() { |
122 |
local LANG SLANG |
123 |
for LANG in ${LINGUAS}; do |
124 |
if has ${LANG} en en_US; then |
125 |
has en ${linguas} || linguas="${linguas:+"${linguas} "}en" |
126 |
continue |
127 |
elif has ${LANG} ${LANGS//-/_}; then |
128 |
has ${LANG//_/-} ${linguas} || linguas="${linguas:+"${linguas} "}${LANG//_/-}" |
129 |
continue |
130 |
elif [[ " ${LANGS} " == *" ${LANG}-"* ]]; then |
131 |
for X in ${LANGS}; do |
132 |
if [[ "${X}" == "${LANG}-"* ]] && \ |
133 |
[[ " ${NOSHORTLANGS} " != *" ${X} "* ]]; then |
134 |
has ${X} ${linguas} || linguas="${linguas:+"${linguas} "}${X}" |
135 |
continue 2 |
136 |
fi |
137 |
done |
138 |
fi |
139 |
ewarn "Sorry, but ${PN} does not support the ${LANG} LINGUA" |
140 |
done |
141 |
} |
142 |
|
143 |
pkg_setup() { |
144 |
if ! use bindist ; then |
145 |
elog "You are enabling official branding. You may not redistribute this build" |
146 |
elog "to any users on your network or the internet. Doing so puts yourself into" |
147 |
elog "a legal problem with Mozilla Foundation" |
148 |
elog "You can disable it by emerging ${PN} _with_ the bindist USE-flag" |
149 |
fi |
150 |
|
151 |
if use iceweasel ; then |
152 |
elog "You have enabled iceweasel useflag which does nothing in current ebuild." |
153 |
elog "Please 'emerge -C mozilla-firefox; emerge icecat' if you wish to have same support" |
154 |
elog "as you currently had with iceweasel useflag." |
155 |
eerror "Please 'emerge -C mozilla-firefox; emerge icecat' to have a same support" |
156 |
fi |
157 |
} |
158 |
|
159 |
src_unpack() { |
160 |
unpack ${A} |
161 |
|
162 |
linguas |
163 |
for X in ${linguas}; do |
164 |
# FIXME: Add support for unpacking xpis to portage |
165 |
[[ ${X} != "en" ]] && xpi_unpack "${P}-${X}.xpi" |
166 |
done |
167 |
if [[ ${linguas} != "" && ${linguas} != "en" ]]; then |
168 |
einfo "Selected language packs (first will be default): ${linguas}" |
169 |
fi |
170 |
} |
171 |
|
172 |
src_prepare() { |
173 |
# Apply our patches |
174 |
EPATCH_EXCLUDE="136-fix_ftbfs_with_cairo_fb.patch" \ |
175 |
EPATCH_SUFFIX="patch" \ |
176 |
EPATCH_FORCE="yes" \ |
177 |
epatch "${WORKDIR}" |
178 |
|
179 |
eautoreconf |
180 |
|
181 |
cd js/src |
182 |
eautoreconf |
183 |
|
184 |
# We need to re-patch this because autoreconf overwrites it |
185 |
cd "${S}" |
186 |
epatch "${FILESDIR}/000_flex-configure-LANG.patch" |
187 |
} |
188 |
|
189 |
src_configure() { |
190 |
MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
191 |
MEXTENSIONS="default" |
192 |
|
193 |
#################################### |
194 |
# |
195 |
# mozconfig, CFLAGS and CXXFLAGS setup |
196 |
# |
197 |
#################################### |
198 |
|
199 |
mozconfig_init |
200 |
mozconfig_config |
201 |
|
202 |
# It doesn't compile on alpha without this LDFLAGS |
203 |
use alpha && append-ldflags "-Wl,--no-relax" |
204 |
|
205 |
mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}" |
206 |
mozconfig_annotate '' --enable-application=browser |
207 |
mozconfig_annotate 'gtk' --enable-default-toolkit=cairo-gtk2 |
208 |
mozconfig_annotate '' --disable-mailnews |
209 |
mozconfig_annotate 'broken' --disable-crashreporter |
210 |
mozconfig_annotate '' --enable-image-encoder=all |
211 |
mozconfig_annotate '' --enable-canvas |
212 |
# Bug 60668: Galeon doesn't build without oji enabled, so enable it |
213 |
# regardless of java setting. |
214 |
mozconfig_annotate '' --enable-oji --enable-mathml |
215 |
mozconfig_annotate 'places' --enable-storage --enable-places |
216 |
mozconfig_annotate '' --enable-safe-browsing |
217 |
|
218 |
# System-wide install specs |
219 |
mozconfig_annotate '' --disable-installer |
220 |
mozconfig_annotate '' --disable-updater |
221 |
mozconfig_annotate '' --disable-strip |
222 |
mozconfig_annotate '' --disable-install-strip |
223 |
|
224 |
# Use system libraries |
225 |
mozconfig_annotate '' --enable-system-cairo |
226 |
mozconfig_annotate '' --enable-system-hunspell |
227 |
mozconfig_annotate '' --with-system-nspr |
228 |
mozconfig_annotate '' --with-system-nss |
229 |
mozconfig_annotate '' --enable-system-lcms |
230 |
mozconfig_annotate '' --with-system-bz2 |
231 |
mozconfig_annotate '' --with-system-libxul |
232 |
mozconfig_annotate '' --with-libxul-sdk=/usr/$(get_libdir)/xulrunner-devel-${MAJ_XUL_PV} |
233 |
|
234 |
# Enable/Disable based on useflag |
235 |
mozconfig_use_enable sqlite system-sqlite |
236 |
mozconfig_use_enable mozdevelop jsd |
237 |
mozconfig_use_enable mozdevelop xpctools |
238 |
mozconfig_use_enable alsa ogg |
239 |
mozconfig_use_enable alsa wave |
240 |
|
241 |
if ! use bindist ; then |
242 |
mozconfig_annotate '' --enable-official-branding |
243 |
fi |
244 |
|
245 |
# Finalize and report settings |
246 |
mozconfig_final |
247 |
|
248 |
if [[ $(gcc-major-version) -lt 4 ]]; then |
249 |
append-cxxflags -fno-stack-protector |
250 |
fi |
251 |
|
252 |
#################################### |
253 |
# |
254 |
# Configure and build |
255 |
# |
256 |
#################################### |
257 |
|
258 |
CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" econf |
259 |
} |
260 |
|
261 |
src_compile() { |
262 |
# Should the build use multiprocessing? Not enabled by default, as it tends to break |
263 |
[ "${WANT_MP}" = "true" ] && jobs=${MAKEOPTS} || jobs="-j1" |
264 |
emake ${jobs} || die |
265 |
} |
266 |
|
267 |
src_install() { |
268 |
MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
269 |
|
270 |
emake DESTDIR="${D}" install || die "emake install failed" |
271 |
|
272 |
linguas |
273 |
for X in ${linguas}; do |
274 |
[[ ${X} != "en" ]] && xpi_install "${WORKDIR}"/"${P}-${X}" |
275 |
done |
276 |
|
277 |
# Install icon and .desktop for menu entry |
278 |
if ! use bindist ; then |
279 |
newicon "${S}"/other-licenses/branding/firefox/content/icon48.png firefox-icon.png |
280 |
newmenu "${FILESDIR}"/icon/mozilla-firefox-1.5.desktop \ |
281 |
${PN}-${DESKTOP_PV}.desktop |
282 |
else |
283 |
newicon "${S}"/browser/base/branding/icon48.png firefox-icon-unbranded.png |
284 |
newmenu "${FILESDIR}"/icon/mozilla-firefox-1.5-unbranded.desktop \ |
285 |
${PN}-${DESKTOP_PV}.desktop |
286 |
sed -i -e "s:Bon Echo:Shiretoko:" \ |
287 |
"${D}"/usr/share/applications/${PN}-${DESKTOP_PV}.desktop || die "sed failed!" |
288 |
fi |
289 |
|
290 |
# Add StartupNotify=true bug 237317 |
291 |
if use startup-notification ; then |
292 |
echo "StartupNotify=true" >> "${D}"/usr/share/applications/${PN}-${DESKTOP_PV}.desktop |
293 |
fi |
294 |
|
295 |
pax-mark m "${D}"/${MOZILLA_FIVE_HOME}/firefox |
296 |
|
297 |
# Enable very specific settings not inherited from xulrunner |
298 |
cp "${FILESDIR}"/firefox-default-prefs.js \ |
299 |
"${D}/${MOZILLA_FIVE_HOME}/defaults/preferences/all-gentoo.js" || \ |
300 |
die "failed to cp xulrunner-default-prefs.js" |
301 |
|
302 |
# Plugins dir |
303 |
dosym ../nsbrowser/plugins "${MOZILLA_FIVE_HOME}"/plugins \ |
304 |
|| die "failed to symlink" |
305 |
|
306 |
# very ugly hack to make firefox not sigbus on sparc |
307 |
if use sparc ; then |
308 |
sed -i \ |
309 |
-e 's/Firefox/FirefoxGentoo/g' \ |
310 |
"${D}/${MOZILLA_FIVE_HOME}/application.ini" \ |
311 |
|| die "sparc sed failed" |
312 |
fi |
313 |
} |
314 |
|
315 |
pkg_postinst() { |
316 |
ewarn "All the packages built against ${PN} won't compile," |
317 |
ewarn "any package that fails to build warrants a bug report." |
318 |
elog |
319 |
|
320 |
# Update mimedb for the new .desktop file |
321 |
fdo-mime_desktop_database_update |
322 |
} |