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.3-r1.ebuild mozilla-firefox-3.5.2-r3.ebuild
Date: Sun, 25 Oct 2009 16:27:49
Message-Id: E1N25wY-0007u2-Od@stork.gentoo.org
1 anarchy 09/10/25 16:27:46
2
3 Modified: ChangeLog
4 Added: mozilla-firefox-3.5.3-r1.ebuild
5 Removed: mozilla-firefox-3.5.2-r3.ebuild
6 Log:
7 remove iceweasel support, only build system sqlite when sqlite useflag is enabled.
8 (Portage version: 2.1.7.1/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.556 www-client/mozilla-firefox/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/mozilla-firefox/ChangeLog?rev=1.556&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/mozilla-firefox/ChangeLog?rev=1.556&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/mozilla-firefox/ChangeLog?r1=1.555&r2=1.556
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/www-client/mozilla-firefox/ChangeLog,v
20 retrieving revision 1.555
21 retrieving revision 1.556
22 diff -u -r1.555 -r1.556
23 --- ChangeLog 19 Oct 2009 11:03:52 -0000 1.555
24 +++ ChangeLog 25 Oct 2009 16:27:46 -0000 1.556
25 @@ -1,6 +1,17 @@
26 # ChangeLog for www-client/mozilla-firefox
27 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/www-client/mozilla-firefox/ChangeLog,v 1.555 2009/10/19 11:03:52 ssuominen Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/www-client/mozilla-firefox/ChangeLog,v 1.556 2009/10/25 16:27:46 anarchy Exp $
30 +
31 + 25 Oct 2009; Jory A. Pratt <anarchy@g.o>
32 + -mozilla-firefox-3.5.2-r3.ebuild, +mozilla-firefox-3.5.3-r1.ebuild:
33 + remove old firefox-3.5 ebuild with security issues
34 +
35 +*mozilla-firefox-3.5.3-r1 (25 Oct 2009)
36 +
37 + 25 Oct 2009; Jory A. Pratt <anarchy@g.o>
38 + +mozilla-firefox-3.5.3-r1.ebuild:
39 + remove iceweasel support in favor of icecat, do not build sqlite system
40 + support if disabled in xulrunner
41
42 19 Oct 2009; Samuli Suominen <ssuominen@g.o>
43 mozilla-firefox-3.5.2-r3.ebuild:
44
45
46
47 1.1 www-client/mozilla-firefox/mozilla-firefox-3.5.3-r1.ebuild
48
49 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/mozilla-firefox/mozilla-firefox-3.5.3-r1.ebuild?rev=1.1&view=markup
50 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/mozilla-firefox/mozilla-firefox-3.5.3-r1.ebuild?rev=1.1&content-type=text/plain
51
52 Index: mozilla-firefox-3.5.3-r1.ebuild
53 ===================================================================
54 # Copyright 1999-2009 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 # $Header: /var/cvsroot/gentoo-x86/www-client/mozilla-firefox/mozilla-firefox-3.5.3-r1.ebuild,v 1.1 2009/10/25 16:27:46 anarchy Exp $
57 EAPI="2"
58 WANT_AUTOCONF="2.1"
59
60 inherit flag-o-matic toolchain-funcs eutils mozconfig-3 makeedit multilib pax-utils fdo-mime autotools mozextension
61
62 LANGS="af ar as be bg bn-BD bn-IN ca cs cy da de el en en-GB en-US eo es-AR
63 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
64 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
65 ru si sk sl sq sr sv-SE ta-LK ta te th tr uk vi zh-CN zh-TW"
66 NOSHORTLANGS="en-GB es-AR es-CL es-MX pt-BR zh-CN zh-TW"
67
68 XUL_PV="1.9.1.3"
69 MAJ_XUL_PV="1.9.1"
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="${PN}-3.5.2-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 java mozdevelop restrict-javascript -sqlite iceweasel" # 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 http://dev.gentoo.org/~anarchy/dist/${PATCH}.tar.bz2"
87
88 for X in ${LANGS} ; do
89 if [ "${X}" != "en" ] && [ "${X}" != "en-US" ]; then
90 SRC_URI="${SRC_URI}
91 linguas_${X/-/_}? ( ${REL_URI}/${MY_PV}/linux-i686/xpi/${X}.xpi -> ${P}-${X}.xpi )"
92 fi
93 IUSE="${IUSE} linguas_${X/-/_}"
94 # english is handled internally
95 if [ "${#X}" == 5 ] && ! has ${X} ${NOSHORTLANGS}; then
96 if [ "${X}" != "en-US" ]; then
97 SRC_URI="${SRC_URI}
98 linguas_${X%%-*}? ( ${REL_URI}/${PV}/linux-i686/xpi/${X}.xpi -> ${P}-${X}.xpi )"
99 fi
100 IUSE="${IUSE} linguas_${X%%-*}"
101 fi
102 done
103
104 # Not working.
105 # qt-experimental? (
106 # x11-libs/qt-gui
107 # x11-libs/qt-core )
108 # =net-libs/xulrunner-${XUL_PV}*[java=,qt-experimental=]
109
110 RDEPEND="
111 >=sys-devel/binutils-2.16.1
112 >=dev-libs/nss-3.12.2
113 >=dev-libs/nspr-4.7.3
114 >=app-text/hunspell-1.2
115 sqlite? ( >=dev-db/sqlite-3.6.10 )
116 alsa? ( media-libs/alsa-lib )
117 >=net-libs/xulrunner-${XUL_PV}[java=,sqlite=]
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.9.6.6 )"
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 ; 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 if use iceweasel ; then
165 elog "You have enabled iceweasel useflag which does nothing in current ebuild."
166 elog "Please 'emerge -C mozilla-firefox; emerge icecat' if you wish to have same support"
167 elog "as you currently had with iceweasel useflag."
168 eerror "Please 'emerge -C mozilla-firefox; emerge icecat' to have a same support"
169 fi
170 }
171
172 src_unpack() {
173 unpack ${A}
174
175 linguas
176 for X in ${linguas}; do
177 # FIXME: Add support for unpacking xpis to portage
178 [[ ${X} != "en" ]] && xpi_unpack "${P}-${X}.xpi"
179 done
180 if [[ ${linguas} != "" && ${linguas} != "en" ]]; then
181 einfo "Selected language packs (first will be default): ${linguas}"
182 fi
183 }
184
185 src_prepare() {
186 # Apply our patches
187 EPATCH_SUFFIX="patch" \
188 EPATCH_FORCE="yes" \
189 epatch "${WORKDIR}"
190
191 eautoreconf
192
193 cd js/src
194 eautoreconf
195
196 # We need to re-patch this because autoreconf overwrites it
197 epatch "${FILESDIR}/000_flex-configure-LANG.patch"
198 }
199
200 src_configure() {
201 MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
202 MEXTENSIONS="default"
203
204 ####################################
205 #
206 # mozconfig, CFLAGS and CXXFLAGS setup
207 #
208 ####################################
209
210 mozconfig_init
211 mozconfig_config
212
213 # It doesn't compile on alpha without this LDFLAGS
214 use alpha && append-ldflags "-Wl,--no-relax"
215
216 mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}"
217 mozconfig_annotate '' --enable-application=browser
218 mozconfig_annotate 'gtk' --enable-default-toolkit=cairo-gtk2
219 mozconfig_annotate '' --disable-mailnews
220 mozconfig_annotate 'broken' --disable-crashreporter
221 mozconfig_annotate '' --enable-image-encoder=all
222 mozconfig_annotate '' --enable-canvas
223 # Bug 60668: Galeon doesn't build without oji enabled, so enable it
224 # regardless of java setting.
225 mozconfig_annotate '' --enable-oji --enable-mathml
226 mozconfig_annotate 'places' --enable-storage --enable-places
227 mozconfig_annotate '' --enable-safe-browsing
228
229 # System-wide install specs
230 mozconfig_annotate '' --disable-installer
231 mozconfig_annotate '' --disable-updater
232 mozconfig_annotate '' --disable-strip
233 mozconfig_annotate '' --disable-install-strip
234
235 # Use system libraries
236 mozconfig_annotate '' --enable-system-cairo
237 mozconfig_annotate '' --enable-system-hunspell
238 mozconfig_annotate '' --with-system-nspr
239 mozconfig_annotate '' --with-system-nss
240 mozconfig_annotate '' --enable-system-lcms
241 mozconfig_annotate '' --with-system-bz2
242 mozconfig_annotate '' --with-system-libxul
243 mozconfig_annotate '' --with-libxul-sdk=/usr/$(get_libdir)/xulrunner-devel-${MAJ_XUL_PV}
244
245 # Enable/Disable based on useflag
246 mozconfig_use_enable sqlite system-sqlite
247 mozconfig_use_enable mozdevelop jsd
248 mozconfig_use_enable mozdevelop xpctools
249 mozconfig_use_enable alsa ogg
250 mozconfig_use_enable alsa wave
251
252 if ! use bindist ; then
253 mozconfig_annotate '' --enable-official-branding
254 fi
255
256 # Finalize and report settings
257 mozconfig_final
258
259 if [[ $(gcc-major-version) -lt 4 ]]; then
260 append-cxxflags -fno-stack-protector
261 fi
262
263 ####################################
264 #
265 # Configure and build
266 #
267 ####################################
268
269 CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" econf
270 }
271
272 src_compile() {
273 # Should the build use multiprocessing? Not enabled by default, as it tends to break
274 [ "${WANT_MP}" = "true" ] && jobs=${MAKEOPTS} || jobs="-j1"
275 emake ${jobs} || die
276 }
277
278 src_install() {
279 MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
280
281 emake DESTDIR="${D}" install || die "emake install failed"
282
283 linguas
284 for X in ${linguas}; do
285 [[ ${X} != "en" ]] && xpi_install "${WORKDIR}"/"${P}-${X}"
286 done
287
288 # Install icon and .desktop for menu entry
289 if ! use bindist ; then
290 newicon "${S}"/other-licenses/branding/firefox/content/icon48.png firefox-icon.png
291 newmenu "${FILESDIR}"/icon/mozilla-firefox-1.5.desktop \
292 ${PN}-${DESKTOP_PV}.desktop
293 else
294 newicon "${S}"/browser/base/branding/icon48.png firefox-icon-unbranded.png
295 newmenu "${FILESDIR}"/icon/mozilla-firefox-1.5-unbranded.desktop \
296 ${PN}-${DESKTOP_PV}.desktop
297 sed -i -e "s:Bon Echo:Shiretoko:" \
298 "${D}"/usr/share/applications/${PN}-${DESKTOP_PV}.desktop || die "sed failed!"
299 fi
300
301 # Add StartupNotify=true bug 237317
302 if use startup-notification ; then
303 echo "StartupNotify=true" >> "${D}"/usr/share/applications/${PN}-${DESKTOP_PV}.desktop
304 fi
305
306 pax-mark m "${D}"/${MOZILLA_FIVE_HOME}/firefox
307
308 # Enable very specific settings not inherited from xulrunner
309 cp "${FILESDIR}"/firefox-default-prefs.js \
310 "${D}/${MOZILLA_FIVE_HOME}/defaults/preferences/all-gentoo.js" || \
311 die "failed to cp xulrunner-default-prefs.js"
312
313 # Plugins dir
314 dosym ../nsbrowser/plugins "${MOZILLA_FIVE_HOME}"/plugins \
315 || die "failed to symlink"
316 }
317
318 pkg_postinst() {
319 ewarn "All the packages built against ${PN} won't compile,"
320 ewarn "any package that fails to build warrants a bug report."
321 elog
322
323 # Update mimedb for the new .desktop file
324 fdo-mime_desktop_database_update
325 }