Gentoo Archives: gentoo-commits

From: "Lars Wendler (polynomial-c)" <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-client/icecat: ChangeLog icecat-3.6.9.ebuild
Date: Wed, 08 Sep 2010 19:09:04
Message-Id: 20100908190859.348EC20051@flycatcher.gentoo.org
1 polynomial-c 10/09/08 19:08:59
2
3 Modified: ChangeLog
4 Added: icecat-3.6.9.ebuild
5 Log:
6 Security bump
7
8 (Portage version: 2.2_rc77/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.38 www-client/icecat/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/icecat/ChangeLog?rev=1.38&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/icecat/ChangeLog?rev=1.38&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/icecat/ChangeLog?r1=1.37&r2=1.38
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/www-client/icecat/ChangeLog,v
20 retrieving revision 1.37
21 retrieving revision 1.38
22 diff -u -r1.37 -r1.38
23 --- ChangeLog 8 Sep 2010 02:14:46 -0000 1.37
24 +++ ChangeLog 8 Sep 2010 19:08:58 -0000 1.38
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.37 2010/09/08 02:14:46 anarchy Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/www-client/icecat/ChangeLog,v 1.38 2010/09/08 19:08:58 polynomial-c Exp $
30 +
31 +*icecat-3.6.9 (08 Sep 2010)
32 +
33 + 08 Sep 2010; Lars Wendler <polynomial-c@g.o> +icecat-3.6.9.ebuild:
34 + Security bump
35
36 08 Sep 2010; Jory A. Pratt <anarchy@g.o> -icecat-3.6.4.ebuild,
37 icecat-3.6.8.ebuild, -icecat-3.6.8-r1.ebuild:
38
39
40
41 1.1 www-client/icecat/icecat-3.6.9.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/icecat/icecat-3.6.9.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/icecat/icecat-3.6.9.ebuild?rev=1.1&content-type=text/plain
45
46 Index: icecat-3.6.9.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.9.ebuild,v 1.1 2010/09/08 19:08:58 polynomial-c Exp $
51 EAPI="2"
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
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 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 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="mozilla-firefox"
70 FIREFOX_P="${FIREFOX_PN}-${PV}"
71 PATCH="${FIREFOX_PN}-3.6-patches-0.6"
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/dist/${PATCH}.tar.bz2"
83 LANGPACK_URI="http://gnuzilla.gnu.org/download/langpacks/"
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}/${MY_PV}/${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}/${MY_PV}/${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.7
104 >=dev-libs/nspr-4.8.6
105 >=app-text/hunspell-1.2
106 system-sqlite? ( >=dev-db/sqlite-3.6.22-r2[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-util/pkgconfig"
117
118 RDEPEND="${RDEPEND} java? ( >=virtual/jre-1.4 )"
119
120 # This is a copy of the launcher program installed as part of xulrunner, so has
121 # already been stripped. Bug #332071 for details.
122 QA_PRESTRIPPED="usr/$(get_libdir)/${PN}/${PN}"
123
124 linguas() {
125 local LANG SLANG
126 for LANG in ${LINGUAS}; do
127 if has ${LANG} en en_US; then
128 has en ${linguas} || linguas="${linguas:+"${linguas} "}en"
129 continue
130 elif has ${LANG} ${LANGS//-/_}; then
131 has ${LANG//_/-} ${linguas} || linguas="${linguas:+"${linguas} "}${LANG//_/-}"
132 continue
133 elif [[ " ${LANGS} " == *" ${LANG}-"* ]]; then
134 for X in ${LANGS}; do
135 if [[ "${X}" == "${LANG}-"* ]] && \
136 [[ " ${NOSHORTLANGS} " != *" ${X} "* ]]; then
137 has ${X} ${linguas} || linguas="${linguas:+"${linguas} "}${X}"
138 continue 2
139 fi
140 done
141 fi
142 ewarn "Sorry, but ${PN} does not support the ${LANG} LINGUA"
143 done
144 }
145
146 pkg_setup() {
147 # Ensure we always build with C locale.
148 export LANG="C"
149 export LC_ALL="C"
150 export LC_MESSAGES="C"
151 export LC_CTYPE="C"
152
153 java-pkg-opt-2_pkg_setup
154 }
155
156 src_unpack() {
157 #xz -dc -- "${DISTDIR}/icecat-${MY_PV}.tar.xz" | tar xof - || die "failed to unpack"
158 unpack ${A} #${PATCH}.tar.bz2
159
160 linguas
161 for X in ${linguas}; do
162 # FIXME: Add support for unpacking xpis to portage
163 [[ ${X} != "en" ]] && xpi_unpack "${P}-${X}.xpi"
164 done
165 }
166
167 src_prepare() {
168 # Integrate rebranding
169 sed -i "s|/mozilla-firefox|/icecat|" \
170 "${WORKDIR}"/001-firefox_gentoo_install_dirs.patch
171
172 # Fix preferences location
173 sed -i 's|defaults/pref/|defaults/preferences/|' browser/installer/packages-static || die "sed failed"
174
175 # Apply our patches
176 EPATCH_SUFFIX="patch" \
177 EPATCH_FORCE="yes" \
178 EPATCH_EXCLUDE="137-bz460917_att350845_reload_new_plugins-gentoo-update.patch" \
179 epatch "${WORKDIR}"
180
181 # The patch excluded above failed, ported patch is applied below
182 epatch "${FILESDIR}/137-bz460917_reload_new_plugins-gentoo-update-3.6.4.patch"
183
184 # Enable tracemonkey for amd64 (bug #315997)
185 epatch "${FILESDIR}/801-enable-x86_64-tracemonkey.patch"
186
187 # Fix rebranding
188 sed -i 's|\$(DIST)/bin/firefox|\$(DIST)/bin/icecat|' browser/app/Makefile.in
189
190 eautoreconf
191
192 cd js/src
193 eautoreconf
194 }
195
196 src_configure() {
197 # We will build our own .mozconfig
198 rm "${S}"/.mozconfig
199
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 # Specific settings for icecat
216 echo "export MOZ_PHOENIX=1" >> "${S}"/.mozconfig
217 echo "mk_add_options MOZ_PHOENIX=1" "${S}"/.mozconfig
218 mozconfig_annotate '' --with-branding=browser/branding/unofficial
219 mozconfig_annotate '' --disable-official-branding
220 mozconfig_annotate '' --with-user-appdir=.icecat
221
222 mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}"
223 mozconfig_annotate '' --enable-application=browser
224 mozconfig_annotate '' --disable-mailnews
225 mozconfig_annotate 'broken' --disable-crashreporter
226 mozconfig_annotate '' --enable-image-encoder=all
227 mozconfig_annotate '' --enable-canvas
228 mozconfig_annotate 'gtk' --enable-default-toolkit=cairo-gtk2
229 # Bug 60668: Galeon doesn't build without oji enabled, so enable it
230 # regardless of java setting.
231 mozconfig_annotate '' --enable-oji --enable-mathml
232 mozconfig_annotate 'places' --enable-storage --enable-places
233 mozconfig_annotate '' --enable-safe-browsing
234
235 # Build mozdevelop permately
236 mozconfig_annotate '' --enable-jsd --enable-xpctools
237
238 # System-wide install specs
239 mozconfig_annotate '' --disable-installer
240 mozconfig_annotate '' --disable-updater
241 mozconfig_annotate '' --disable-strip
242 mozconfig_annotate '' --disable-install-strip
243
244 # Use system libraries
245 mozconfig_annotate '' --enable-system-cairo
246 mozconfig_annotate '' --enable-system-hunspell
247 mozconfig_annotate '' --with-system-nspr
248 mozconfig_annotate '' --with-system-nss
249 mozconfig_annotate '' --with-system-bz2
250 mozconfig_annotate '' --with-system-libxul
251 mozconfig_annotate '' --with-libxul-sdk=/usr/$(get_libdir)/xulrunner-devel-${MAJ_XUL_PV}
252
253 mozconfig_use_enable ipc # +ipc, upstream default
254 mozconfig_use_enable libnotify
255 mozconfig_use_enable java javaxpcom
256 mozconfig_use_enable wifi necko-wifi
257 mozconfig_use_enable alsa ogg
258 mozconfig_use_enable alsa wave
259 mozconfig_use_enable system-sqlite
260
261 # Other browser-specific settings
262 mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME}
263
264 # Finalize and report settings
265 mozconfig_final
266
267 if [[ $(gcc-major-version) -lt 4 ]]; then
268 append-cxxflags -fno-stack-protector
269 fi
270
271 ####################################
272 #
273 # Configure and build
274 #
275 ####################################
276
277 CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" econf
278 }
279
280 src_compile() {
281 # Should the build use multiprocessing? Not enabled by default, as it tends to break
282 [ "${WANT_MP}" = "true" ] && jobs=${MAKEOPTS} || jobs="-j1"
283 emake ${jobs} || die
284 }
285
286 src_install() {
287 MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
288
289 emake DESTDIR="${D}" install || die "emake install failed"
290
291 linguas
292 for X in ${linguas}; do
293 [[ ${X} != "en" ]] && xpi_install "${WORKDIR}"/"${P}-${X}"
294 done
295
296 # Install icon and .desktop for menu entry
297 newicon "${S}"/browser/branding/unofficial/default48.png icecat-icon.png
298 newmenu "${FILESDIR}"/icon/icecat.desktop ${PN}-${DESKTOP_PV}.desktop
299
300 # Add StartupNotify=true bug 237317
301 if use startup-notification ; then
302 echo "StartupNotify=true" >> "${D}"/usr/share/applications/${PN}-${DESKTOP_PV}.desktop
303 fi
304
305 pax-mark m "${D}"/${MOZILLA_FIVE_HOME}/${PN}
306
307 # Enable very specific settings not inherited from xulrunner
308 cp "${FILESDIR}"/firefox-default-prefs.js \
309 "${D}/${MOZILLA_FIVE_HOME}/defaults/preferences/all-gentoo.js" || \
310 die "failed to cp icecat-default-prefs.js"
311 # Plugins dir
312 dosym ../nsbrowser/plugins "${MOZILLA_FIVE_HOME}"/plugins \
313 || die "failed to symlink"
314 }
315
316 pkg_postinst() {
317 ewarn "All the packages built against ${PN} won't compile,"
318 ewarn "any package that fails to build warrants a bug report."
319 elog
320
321 # Update mimedb for the new .desktop file
322 fdo-mime_desktop_database_update
323 }