Gentoo Archives: gentoo-commits

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