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/icecat: icecat-3.6.12.ebuild ChangeLog
Date: Sun, 31 Oct 2010 17:18:45
Message-Id: 20101031171842.82F0620051@flycatcher.gentoo.org
1 anarchy 10/10/31 17:18:42
2
3 Modified: ChangeLog
4 Added: icecat-3.6.12.ebuild
5 Log:
6 Security bump (bug #342847).
7
8 (Portage version: 2.1.9.23/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.54 www-client/icecat/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/icecat/ChangeLog?rev=1.54&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/icecat/ChangeLog?rev=1.54&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/icecat/ChangeLog?r1=1.53&r2=1.54
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/www-client/icecat/ChangeLog,v
20 retrieving revision 1.53
21 retrieving revision 1.54
22 diff -u -r1.53 -r1.54
23 --- ChangeLog 28 Oct 2010 17:56:28 -0000 1.53
24 +++ ChangeLog 31 Oct 2010 17:18:42 -0000 1.54
25 @@ -1,6 +1,11 @@
26 # ChangeLog for www-client/icecat
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/www-client/icecat/ChangeLog,v 1.53 2010/10/28 17:56:28 polynomial-c Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/www-client/icecat/ChangeLog,v 1.54 2010/10/31 17:18:42 anarchy Exp $
30 +
31 +*icecat-3.6.12 (31 Oct 2010)
32 +
33 + 31 Oct 2010; Jory A. Pratt <anarchy@g.o> +icecat-3.6.12.ebuild:
34 + Security bump (bug #342847).
35
36 28 Oct 2010; Lars Wendler <polynomial-c@g.o> ChangeLog:
37 Recreated manifest for ru language pack. Thanks to Paramonov Valeriy who
38
39
40
41 1.1 www-client/icecat/icecat-3.6.12.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/icecat/icecat-3.6.12.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/icecat/icecat-3.6.12.ebuild?rev=1.1&content-type=text/plain
45
46 Index: icecat-3.6.12.ebuild
47 ===================================================================
48 # Copyright 1999-2010 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/www-client/icecat/icecat-3.6.12.ebuild,v 1.1 2010/10/31 17:18:42 anarchy Exp $
51 EAPI="3"
52 WANT_AUTOCONF="2.1"
53
54 inherit flag-o-matic toolchain-funcs eutils mozconfig-3 makeedit multilib pax-utils fdo-mime autotools mozextension java-pkg-opt-2 python
55
56 LANGS="af ar as ast 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
58 ja ka kk kn ko ku lt lv mk ml 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 ta-LK te th tr uk vi zh-CN zh-TW"
60 # Malformed install.rdf: ta-LK
61
62 NOSHORTLANGS="en-GB es-AR es-CL es-MX pt-BR zh-CN zh-TW"
63
64 MAJ_XUL_PV="1.9.2"
65 MAJ_PV="${PV/_*/}" # Without the _rc and _beta stuff
66 DESKTOP_PV="3.6"
67 MY_PV="${PV/_rc/rc}" # Handle beta for SRC_URI
68 XUL_PV="${MAJ_XUL_PV}${MAJ_PV/${DESKTOP_PV}/}" # Major + Minor version no.s
69 FIREFOX_PN="firefox"
70 FIREFOX_P="${FIREFOX_PN}-${PV}"
71 PATCH="${FIREFOX_PN}-3.6-patches-0.2"
72
73 DESCRIPTION="GNU project's edition of Mozilla Firefox"
74 HOMEPAGE="http://www.gnu.org/software/gnuzilla/"
75
76 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
77 SLOT="0"
78 LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
79 IUSE="+alsa +ipc java libnotify system-sqlite wifi"
80
81 SRC_URI="mirror://gnu/gnuzilla/${MY_PV}/${PN}-${MY_PV}.tar.bz2
82 http://dev.gentoo.org/~anarchy/mozilla/patchsets/${PATCH}.tar.bz2"
83 LANGPACK_URI="http://gnuzilla.gnu.org/download/langpacks/${MY_PV}"
84
85 for X in ${LANGS} ; do
86 if [ "${X}" != "en" ] && [ "${X}" != "en-US" ]; then
87 SRC_URI="${SRC_URI}
88 linguas_${X/-/_}? ( ${LANGPACK_URI}/${X}.xpi -> ${P}-${X}.xpi )"
89 fi
90 IUSE="${IUSE} linguas_${X/-/_}"
91 # english is handled internally
92 if [ "${#X}" == 5 ] && ! has ${X} ${NOSHORTLANGS}; then
93 if [ "${X}" != "en-US" ]; then
94 SRC_URI="${SRC_URI}
95 linguas_${X%%-*}? ( ${LANGPACK_URI}/${X}.xpi -> ${P}-${X}.xpi )"
96 fi
97 IUSE="${IUSE} linguas_${X%%-*}"
98 fi
99 done
100
101 RDEPEND="
102 >=sys-devel/binutils-2.16.1
103 >=dev-libs/nss-3.12.8
104 >=dev-libs/nspr-4.8.6
105 >=app-text/hunspell-1.2
106 system-sqlite? ( >=dev-db/sqlite-3.7.1[fts3,secure-delete] )
107 alsa? ( media-libs/alsa-lib )
108 >=x11-libs/cairo-1.8.8[X]
109 x11-libs/pango[X]
110 wifi? ( net-wireless/wireless-tools )
111 libnotify? ( >=x11-libs/libnotify-0.4 )
112 ~net-libs/xulrunner-${XUL_PV}[ipc=,java=,wifi=,libnotify=,system-sqlite=]"
113
114 DEPEND="${RDEPEND}
115 java? ( >=virtual/jdk-1.4 )
116 =dev-lang/python-2*[threads]
117 dev-util/pkgconfig"
118
119 RDEPEND="${RDEPEND} java? ( >=virtual/jre-1.4 )"
120
121 # This is a copy of the launcher program installed as part of xulrunner, so has
122 # already been stripped. Bug #332071 for details.
123 QA_PRESTRIPPED="usr/$(get_libdir)/${PN}/${PN}"
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 ${PN} does not support the ${LANG} LINGUA"
144 done
145 }
146
147 pkg_setup() {
148 # Ensure we always build with C locale.
149 export LANG="C"
150 export LC_ALL="C"
151 export LC_MESSAGES="C"
152 export LC_CTYPE="C"
153
154 java-pkg-opt-2_pkg_setup
155
156 python_set_active_version 2
157 }
158
159 src_unpack() {
160 #xz -dc -- "${DISTDIR}/icecat-${MY_PV}.tar.xz" | tar xof - || die "failed to unpack"
161 unpack ${A} #${PATCH}.tar.bz2
162
163 linguas
164 for X in ${linguas}; do
165 # FIXME: Add support for unpacking xpis to portage
166 [[ ${X} != "en" ]] && xpi_unpack "${P}-${X}.xpi"
167 done
168 }
169
170 src_prepare() {
171 # Integrate rebranding
172 sed -i "s|/firefox|/icecat|" \
173 "${WORKDIR}"/001-firefox_gentoo_install_dirs.patch
174
175 # Fix preferences location
176 sed -i 's|defaults/pref/|defaults/preferences/|' browser/installer/packages-static || die "sed failed"
177
178 # Apply our patches
179 EPATCH_SUFFIX="patch" \
180 EPATCH_FORCE="yes" \
181 epatch "${WORKDIR}"
182
183 epatch "${FILESDIR}/xulrunner-1.9.2-gtk+-2.21.patch"
184
185 # Fix rebranding
186 sed -i 's|\$(DIST)/bin/firefox|\$(DIST)/bin/icecat|' browser/app/Makefile.in
187
188 eautoreconf
189
190 cd js/src
191 eautoreconf
192 }
193
194 src_configure() {
195 # We will build our own .mozconfig
196 rm "${S}"/.mozconfig
197
198 MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
199 MEXTENSIONS="default"
200
201 ####################################
202 #
203 # mozconfig, CFLAGS and CXXFLAGS setup
204 #
205 ####################################
206
207 mozconfig_init
208 mozconfig_config
209
210 # It doesn't compile on alpha without this LDFLAGS
211 use alpha && append-ldflags "-Wl,--no-relax"
212
213 # Specific settings for icecat
214 echo "export MOZ_PHOENIX=1" >> "${S}"/.mozconfig
215 echo "mk_add_options MOZ_PHOENIX=1" "${S}"/.mozconfig
216 mozconfig_annotate '' --with-branding=browser/branding/unofficial
217 mozconfig_annotate '' --disable-official-branding
218 mozconfig_annotate '' --with-user-appdir=.icecat
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 mozconfig_annotate 'gtk' --enable-default-toolkit=cairo-gtk2
227 # Bug 60668: Galeon doesn't build without oji enabled, so enable it
228 # regardless of java setting.
229 mozconfig_annotate '' --enable-oji --enable-mathml
230 mozconfig_annotate 'places' --enable-storage --enable-places
231 mozconfig_annotate '' --enable-safe-browsing
232
233 # Build mozdevelop permately
234 mozconfig_annotate '' --enable-jsd --enable-xpctools
235
236 # System-wide install specs
237 mozconfig_annotate '' --disable-installer
238 mozconfig_annotate '' --disable-updater
239 mozconfig_annotate '' --disable-strip
240 mozconfig_annotate '' --disable-install-strip
241
242 # Use system libraries
243 mozconfig_annotate '' --enable-system-cairo
244 mozconfig_annotate '' --enable-system-hunspell
245 mozconfig_annotate '' --with-system-nspr --with-nspr-prefix="${EPREFIX}"/usr
246 mozconfig_annotate '' --with-system-nss --with-nss-prefix="${EPREFIX}"/usr
247 mozconfig_annotate '' --with-system-bz2
248 mozconfig_annotate '' --with-system-libxul
249 mozconfig_annotate '' --with-libxul-sdk="${EPREFIX}"/usr/$(get_libdir)/xulrunner-devel-${MAJ_XUL_PV}
250
251 mozconfig_use_enable ipc # +ipc, upstream default
252 mozconfig_use_enable libnotify
253 mozconfig_use_enable java javaxpcom
254 mozconfig_use_enable wifi necko-wifi
255 mozconfig_use_enable alsa ogg
256 mozconfig_use_enable alsa wave
257 mozconfig_use_enable system-sqlite
258
259 # Other browser-specific settings
260 mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME}
261
262 # Finalize and report settings
263 mozconfig_final
264
265 if [[ $(gcc-major-version) -lt 4 ]]; then
266 append-cxxflags -fno-stack-protector
267 fi
268
269 ####################################
270 #
271 # Configure and build
272 #
273 ####################################
274
275 CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" PYTHON="$(PYTHON)" econf
276 }
277
278 src_compile() {
279 # Should the build use multiprocessing? Not enabled by default, as it tends to break
280 [ "${WANT_MP}" = "true" ] && jobs=${MAKEOPTS} || jobs="-j1"
281 emake ${jobs} || die
282 }
283
284 src_install() {
285 MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
286
287 emake DESTDIR="${D}" install || die "emake install failed"
288
289 linguas
290 for X in ${linguas}; do
291 [[ ${X} != "en" ]] && xpi_install "${WORKDIR}"/"${P}-${X}"
292 done
293
294 # Install icon and .desktop for menu entry
295 newicon "${S}"/browser/branding/unofficial/default48.png icecat-icon.png
296 newmenu "${FILESDIR}"/icon/icecat.desktop ${PN}-${DESKTOP_PV}.desktop
297
298 # Add StartupNotify=true bug 237317
299 if use startup-notification ; then
300 echo "StartupNotify=true" >> "${ED}"/usr/share/applications/${PN}-${DESKTOP_PV}.desktop
301 fi
302
303 pax-mark m "${ED}"/${MOZILLA_FIVE_HOME}/${PN}
304
305 # Enable very specific settings not inherited from xulrunner
306 cp "${FILESDIR}"/firefox-default-prefs.js \
307 "${ED}/${MOZILLA_FIVE_HOME}/defaults/preferences/all-gentoo.js" || \
308 die "failed to cp icecat-default-prefs.js"
309 # Plugins dir
310 dosym ../nsbrowser/plugins "${MOZILLA_FIVE_HOME}"/plugins \
311 || die "failed to symlink"
312 }
313
314 pkg_postinst() {
315 ewarn "All the packages built against ${PN} won't compile,"
316 ewarn "any package that fails to build warrants a bug report."
317 elog
318
319 # Update mimedb for the new .desktop file
320 fdo-mime_desktop_database_update
321 }