1 |
nirbheek 09/07/31 14:25:26 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mozilla-firefox-3.5.1-r1.ebuild |
5 |
Log: |
6 |
Bump from mozilla overlay (to match changes in xulrunner-1.9.1.1) |
7 |
(Portage version: 2.2_rc33/cvs/Linux i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.523 www-client/mozilla-firefox/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/mozilla-firefox/ChangeLog?rev=1.523&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/mozilla-firefox/ChangeLog?rev=1.523&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/mozilla-firefox/ChangeLog?r1=1.522&r2=1.523 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/www-client/mozilla-firefox/ChangeLog,v |
19 |
retrieving revision 1.522 |
20 |
retrieving revision 1.523 |
21 |
diff -u -r1.522 -r1.523 |
22 |
--- ChangeLog 22 Jul 2009 17:48:15 -0000 1.522 |
23 |
+++ ChangeLog 31 Jul 2009 14:25:26 -0000 1.523 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for www-client/mozilla-firefox |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/www-client/mozilla-firefox/ChangeLog,v 1.522 2009/07/22 17:48:15 armin76 Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/mozilla-firefox/ChangeLog,v 1.523 2009/07/31 14:25:26 nirbheek Exp $ |
29 |
+ |
30 |
+*mozilla-firefox-3.5.1-r1 (31 Jul 2009) |
31 |
+ |
32 |
+ 31 Jul 2009; Nirbheek Chauhan <nirbheek@g.o> |
33 |
+ +mozilla-firefox-3.5.1-r1.ebuild: |
34 |
+ Bump from mozilla overlay (to match changes in xulrunner-1.9.1.1) |
35 |
|
36 |
*mozilla-firefox-3.0.12 (22 Jul 2009) |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
1.1 www-client/mozilla-firefox/mozilla-firefox-3.5.1-r1.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/mozilla-firefox/mozilla-firefox-3.5.1-r1.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/mozilla-firefox/mozilla-firefox-3.5.1-r1.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: mozilla-firefox-3.5.1-r1.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2009 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-3.5.1-r1.ebuild,v 1.1 2009/07/31 14:25:26 nirbheek Exp $ |
51 |
EAPI="2" |
52 |
WANT_AUTOCONF="2.1" |
53 |
|
54 |
inherit flag-o-matic toolchain-funcs eutils mozconfig-3 makeedit multilib fdo-mime autotools mozextension |
55 |
|
56 |
LANGS="af ar as be bg bn-BD bn-IN ca cs cy da de el en en-GB en-US eo es-AR |
57 |
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 |
58 |
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 |
59 |
ru si sk sl sq sr sv-SE ta-LK ta te th tr uk vi zh-CN zh-TW" |
60 |
NOSHORTLANGS="en-GB es-AR es-CL es-MX pt-BR zh-CN zh-TW" |
61 |
|
62 |
XUL_PV="1.9.1.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-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="bindist iceweasel java mozdevelop restrict-javascript" # 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 |
iceweasel? ( mirror://gentoo/iceweasel-icons-3.0.tar.bz2 ) |
80 |
mirror://gentoo/${PATCH}.tar.bz2" |
81 |
|
82 |
for X in ${LANGS} ; do |
83 |
if [ "${X}" != "en" ] && [ "${X}" != "en-US" ]; then |
84 |
SRC_URI="${SRC_URI} |
85 |
linguas_${X/-/_}? ( ${REL_URI}/${MY_PV}/linux-i686/xpi/${X}.xpi -> ${P}-${X}.xpi )" |
86 |
fi |
87 |
IUSE="${IUSE} linguas_${X/-/_}" |
88 |
# english is handled internally |
89 |
if [ "${#X}" == 5 ] && ! has ${X} ${NOSHORTLANGS}; then |
90 |
if [ "${X}" != "en-US" ]; then |
91 |
SRC_URI="${SRC_URI} |
92 |
linguas_${X%%-*}? ( ${REL_URI}/${PV}/linux-i686/xpi/${X}.xpi -> ${P}-${X}.xpi )" |
93 |
fi |
94 |
IUSE="${IUSE} linguas_${X%%-*}" |
95 |
fi |
96 |
done |
97 |
|
98 |
# Not working. |
99 |
# qt-experimental? ( |
100 |
# x11-libs/qt-gui |
101 |
# x11-libs/qt-core ) |
102 |
# =net-libs/xulrunner-${XUL_PV}*[java=,qt-experimental=] |
103 |
|
104 |
RDEPEND=" |
105 |
>=sys-devel/binutils-2.16.1 |
106 |
>=dev-libs/nss-3.12.2 |
107 |
>=dev-libs/nspr-4.7.3 |
108 |
>=dev-db/sqlite-3.6.7 |
109 |
>=app-text/hunspell-1.2 |
110 |
|
111 |
>=net-libs/xulrunner-${XUL_PV}[java=] |
112 |
|
113 |
>=x11-libs/cairo-1.8.8[X] |
114 |
x11-libs/pango[X]" |
115 |
|
116 |
DEPEND="${RDEPEND} |
117 |
dev-util/pkgconfig" |
118 |
|
119 |
PDEPEND="restrict-javascript? ( >=www-plugins/noscript-1.8.7 )" |
120 |
|
121 |
S="${WORKDIR}/mozilla-1.9.1" |
122 |
|
123 |
# Needed by src_compile() and src_install(). |
124 |
# Would do in pkg_setup but that loses the export attribute, they |
125 |
# become pure shell variables. |
126 |
export BUILD_OFFICIAL=1 |
127 |
export MOZILLA_OFFICIAL=1 |
128 |
|
129 |
linguas() { |
130 |
local LANG SLANG |
131 |
for LANG in ${LINGUAS}; do |
132 |
if has ${LANG} en en_US; then |
133 |
has en ${linguas} || linguas="${linguas:+"${linguas} "}en" |
134 |
continue |
135 |
elif has ${LANG} ${LANGS//-/_}; then |
136 |
has ${LANG//_/-} ${linguas} || linguas="${linguas:+"${linguas} "}${LANG//_/-}" |
137 |
continue |
138 |
elif [[ " ${LANGS} " == *" ${LANG}-"* ]]; then |
139 |
for X in ${LANGS}; do |
140 |
if [[ "${X}" == "${LANG}-"* ]] && \ |
141 |
[[ " ${NOSHORTLANGS} " != *" ${X} "* ]]; then |
142 |
has ${X} ${linguas} || linguas="${linguas:+"${linguas} "}${X}" |
143 |
continue 2 |
144 |
fi |
145 |
done |
146 |
fi |
147 |
ewarn "Sorry, but ${PN} does not support the ${LANG} LINGUA" |
148 |
done |
149 |
} |
150 |
|
151 |
pkg_setup(){ |
152 |
if ! use bindist && ! use iceweasel; then |
153 |
elog "You are enabling official branding. You may not redistribute this build" |
154 |
elog "to any users on your network or the internet. Doing so puts yourself into" |
155 |
elog "a legal problem with Mozilla Foundation" |
156 |
elog "You can disable it by emerging ${PN} _with_ the bindist USE-flag" |
157 |
fi |
158 |
} |
159 |
|
160 |
src_unpack() { |
161 |
unpack ${A} |
162 |
|
163 |
if use iceweasel; then |
164 |
unpack iceweasel-icons-3.0.tar.bz2 |
165 |
|
166 |
cp -r iceweaselicons/browser "${WORKDIR}" |
167 |
fi |
168 |
|
169 |
linguas |
170 |
for X in ${linguas}; do |
171 |
# FIXME: Add support for unpacking xpis to portage |
172 |
[[ ${X} != "en" ]] && xpi_unpack "${P}-${X}.xpi" |
173 |
done |
174 |
if [[ ${linguas} != "" && ${linguas} != "en" ]]; then |
175 |
einfo "Selected language packs (first will be default): ${linguas}" |
176 |
fi |
177 |
} |
178 |
|
179 |
src_prepare() { |
180 |
# Apply our patches |
181 |
EPATCH_SUFFIX="patch" \ |
182 |
EPATCH_FORCE="yes" \ |
183 |
epatch "${WORKDIR}" |
184 |
|
185 |
if use iceweasel; then |
186 |
sed -i -e "s|Minefield|Iceweasel|" browser/locales/en-US/chrome/branding/brand.* \ |
187 |
browser/branding/nightly/configure.sh |
188 |
fi |
189 |
|
190 |
eautoreconf |
191 |
|
192 |
cd js/src |
193 |
eautoreconf |
194 |
|
195 |
# We need to re-patch this because autoreconf overwrites it |
196 |
# epatch "${WORKDIR}"/patch/000_flex-configure-LANG.patch |
197 |
} |
198 |
|
199 |
src_configure() { |
200 |
MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
201 |
MEXTENSIONS="default" |
202 |
|
203 |
#################################### |
204 |
# |
205 |
# mozconfig, CFLAGS and CXXFLAGS setup |
206 |
# |
207 |
#################################### |
208 |
|
209 |
mozconfig_init |
210 |
mozconfig_config |
211 |
|
212 |
# It doesn't compile on alpha without this LDFLAGS |
213 |
use alpha && append-ldflags "-Wl,--no-relax" |
214 |
|
215 |
mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}" |
216 |
mozconfig_annotate '' --enable-application=browser |
217 |
mozconfig_annotate '' --disable-mailnews |
218 |
mozconfig_annotate 'broken' --disable-crashreporter |
219 |
mozconfig_annotate '' --enable-image-encoder=all |
220 |
mozconfig_annotate '' --enable-canvas |
221 |
# Bug 60668: Galeon doesn't build without oji enabled, so enable it |
222 |
# regardless of java setting. |
223 |
mozconfig_annotate '' --enable-oji --enable-mathml |
224 |
mozconfig_annotate 'places' --enable-storage --enable-places |
225 |
mozconfig_annotate '' --enable-safe-browsing |
226 |
|
227 |
# System-wide install specs |
228 |
mozconfig_annotate '' --disable-installer |
229 |
mozconfig_annotate '' --disable-updater |
230 |
mozconfig_annotate '' --disable-strip |
231 |
mozconfig_annotate '' --disable-install-strip |
232 |
|
233 |
# Use system libraries |
234 |
mozconfig_annotate '' --enable-system-cairo |
235 |
mozconfig_annotate '' --enable-system-hunspell |
236 |
mozconfig_annotate '' --enable-system-sqlite |
237 |
mozconfig_annotate '' --with-system-nspr |
238 |
mozconfig_annotate '' --with-system-nss |
239 |
mozconfig_annotate '' --enable-system-lcms |
240 |
mozconfig_annotate '' --with-system-bz2 |
241 |
mozconfig_annotate '' --with-system-libxul |
242 |
mozconfig_annotate '' --with-libxul-sdk=/usr/$(get_libdir)/xulrunner-devel-${XUL_PV} |
243 |
|
244 |
# IUSE mozdevelop |
245 |
mozconfig_use_enable mozdevelop jsd |
246 |
mozconfig_use_enable mozdevelop xpctools |
247 |
#mozconfig_use_extension mozdevelop venkman |
248 |
|
249 |
# IUSE qt-experimental |
250 |
# if use qt-experimental; then |
251 |
# ewarn "You are enabling the EXPERIMENTAL qt toolkit" |
252 |
# ewarn "Usage is at your own risk" |
253 |
# ewarn "Known to be broken. DO NOT file bugs." |
254 |
# mozconfig_annotate '' --disable-system-cairo |
255 |
# mozconfig_annotate 'qt-experimental' --enable-default-toolkit=cairo-qt |
256 |
# else |
257 |
mozconfig_annotate 'gtk' --enable-default-toolkit=cairo-gtk2 |
258 |
# fi |
259 |
|
260 |
# Other ff-specific settings |
261 |
mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME} |
262 |
|
263 |
if ! use bindist && ! use iceweasel; then |
264 |
mozconfig_annotate '' --enable-official-branding |
265 |
fi |
266 |
|
267 |
# Finalize and report settings |
268 |
mozconfig_final |
269 |
|
270 |
if [[ $(gcc-major-version) -lt 4 ]]; then |
271 |
append-cxxflags -fno-stack-protector |
272 |
fi |
273 |
|
274 |
#################################### |
275 |
# |
276 |
# Configure and build |
277 |
# |
278 |
#################################### |
279 |
|
280 |
CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \ |
281 |
econf || die |
282 |
} |
283 |
|
284 |
src_compile() { |
285 |
# Should the build use multiprocessing? Not enabled by default, as it tends to break |
286 |
[ "${WANT_MP}" = "true" ] && jobs=${MAKEOPTS} || jobs="-j1" |
287 |
emake ${jobs} || die |
288 |
} |
289 |
|
290 |
src_install() { |
291 |
emake DESTDIR="${D}" install || die "emake install failed" |
292 |
rm "${D}"/usr/bin/firefox |
293 |
|
294 |
linguas |
295 |
for X in ${linguas}; do |
296 |
[[ ${X} != "en" ]] && xpi_install "${WORKDIR}"/"${P}-${X}" |
297 |
done |
298 |
|
299 |
# Install icon and .desktop for menu entry |
300 |
if use iceweasel; then |
301 |
newicon "${S}"/browser/base/branding/icon48.png iceweasel-icon.png |
302 |
newmenu "${FILESDIR}"/icon/iceweasel.desktop \ |
303 |
${PN}-${DESKTOP_PV}.desktop |
304 |
elif ! use bindist; then |
305 |
newicon "${S}"/other-licenses/branding/firefox/content/icon48.png firefox-icon.png |
306 |
newmenu "${FILESDIR}"/icon/mozilla-firefox-1.5.desktop \ |
307 |
${PN}-${DESKTOP_PV}.desktop |
308 |
else |
309 |
newicon "${S}"/browser/base/branding/icon48.png firefox-icon-unbranded.png |
310 |
newmenu "${FILESDIR}"/icon/mozilla-firefox-1.5-unbranded.desktop \ |
311 |
${PN}-${DESKTOP_PV}.desktop |
312 |
sed -e "s/Bon Echo/Minefield/" \ |
313 |
-i "${D}"/usr/share/applications/${PN}-${DESKTOP_PV}.desktop |
314 |
fi |
315 |
|
316 |
# Add StartupNotify=true bug 237317 |
317 |
if use startup-notification; then |
318 |
echo "StartupNotify=true" >> "${D}"/usr/share/applications/${PN}-${DESKTOP_PV}.desktop |
319 |
fi |
320 |
|
321 |
# Create /usr/bin/firefox |
322 |
cat <<EOF >"${D}"/usr/bin/firefox |
323 |
#!/bin/sh |
324 |
export LD_LIBRARY_PATH="${MOZILLA_FIVE_HOME}\${LD_LIBRARY_PATH+":\${LD_LIBRARY_PATH}"}" |
325 |
exec "${MOZILLA_FIVE_HOME}"/firefox "\$@" |
326 |
EOF |
327 |
|
328 |
fperms 0755 /usr/bin/firefox |
329 |
|
330 |
# Plugins dir |
331 |
ln -s "${D}"/usr/$(get_libdir)/{nsbrowser,mozilla-firefox}/plugins |
332 |
} |
333 |
|
334 |
pkg_postinst() { |
335 |
ewarn "All the packages built against ${PN} won't compile," |
336 |
ewarn "any package that fails to build warrants a bug report." |
337 |
elog |
338 |
|
339 |
# Update mimedb for the new .desktop file |
340 |
fdo-mime_desktop_database_update |
341 |
} |