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