Gentoo Archives: gentoo-commits

From: "PaweA Hajdan (phajdan.jr)" <phajdan.jr@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-client/chromium: ChangeLog chromium-9999.ebuild chromium-6.0.472.51.ebuild chromium-7.0.503.1.ebuild chromium-6.0.472.36.ebuild chromium-5.0.375.125.ebuild chromium-6.0.472.41.ebuild chromium-6.0.495.0.ebuild
Date: Sat, 28 Aug 2010 18:10:30
Message-Id: 20100828181020.C870A20051@flycatcher.gentoo.org
1 phajdan.jr 10/08/28 18:10:20
2
3 Modified: ChangeLog chromium-9999.ebuild
4 chromium-7.0.503.1.ebuild
5 Added: chromium-6.0.472.51.ebuild
6 Removed: chromium-6.0.472.36.ebuild
7 chromium-5.0.375.125.ebuild
8 chromium-6.0.472.41.ebuild
9 chromium-6.0.495.0.ebuild
10 Log:
11 Version bump for beta channel release. Fix bug #334939 by Michal Gorny <gentoo@××××××××××.pl>. Remove old.
12 (Portage version: 2.1.8.3/cvs/Linux i686)
13
14 Revision Changes Path
15 1.168 www-client/chromium/ChangeLog
16
17 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?rev=1.168&view=markup
18 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?rev=1.168&content-type=text/plain
19 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?r1=1.167&r2=1.168
20
21 Index: ChangeLog
22 ===================================================================
23 RCS file: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v
24 retrieving revision 1.167
25 retrieving revision 1.168
26 diff -u -r1.167 -r1.168
27 --- ChangeLog 26 Aug 2010 03:54:09 -0000 1.167
28 +++ ChangeLog 28 Aug 2010 18:10:20 -0000 1.168
29 @@ -1,6 +1,16 @@
30 # ChangeLog for www-client/chromium
31 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
32 -# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.167 2010/08/26 03:54:09 phajdan.jr Exp $
33 +# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.168 2010/08/28 18:10:20 phajdan.jr Exp $
34 +
35 +*chromium-6.0.472.51 (28 Aug 2010)
36 +
37 + 28 Aug 2010; Pawel Hajdan jr <phajdan.jr@g.o>
38 + -chromium-5.0.375.125.ebuild, -chromium-6.0.472.36.ebuild,
39 + -chromium-6.0.472.41.ebuild, +chromium-6.0.472.51.ebuild,
40 + -chromium-6.0.495.0.ebuild, chromium-7.0.503.1.ebuild,
41 + chromium-9999.ebuild:
42 + Version bump for beta channel release. Fix bug #334939 by Michal Gorny
43 + <gentoo@××××××××××.pl>. Remove old.
44
45 *chromium-7.0.503.1 (26 Aug 2010)
46
47
48
49
50 1.80 www-client/chromium/chromium-9999.ebuild
51
52 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-9999.ebuild?rev=1.80&view=markup
53 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-9999.ebuild?rev=1.80&content-type=text/plain
54 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-9999.ebuild?r1=1.79&r2=1.80
55
56 Index: chromium-9999.ebuild
57 ===================================================================
58 RCS file: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-9999.ebuild,v
59 retrieving revision 1.79
60 retrieving revision 1.80
61 diff -u -r1.79 -r1.80
62 --- chromium-9999.ebuild 26 Aug 2010 03:54:09 -0000 1.79
63 +++ chromium-9999.ebuild 28 Aug 2010 18:10:20 -0000 1.80
64 @@ -1,6 +1,6 @@
65 # Copyright 1999-2010 Gentoo Foundation
66 # Distributed under the terms of the GNU General Public License v2
67 -# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-9999.ebuild,v 1.79 2010/08/26 03:54:09 phajdan.jr Exp $
68 +# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-9999.ebuild,v 1.80 2010/08/28 18:10:20 phajdan.jr Exp $
69
70 EAPI="2"
71
72 @@ -15,14 +15,14 @@
73 LICENSE="BSD"
74 SLOT="0"
75 KEYWORDS=""
76 -IUSE="cups gnome sse2"
77 +IUSE="cups gnome gnome-keyring sse2"
78
79 RDEPEND="app-arch/bzip2
80 >=dev-libs/icu-4.4.1
81 >=dev-libs/libevent-1.4.13
82 >=dev-libs/nss-3.12.3
83 >=gnome-base/gconf-2.24.0
84 - gnome? ( >=gnome-base/gnome-keyring-2.28.2 )
85 + gnome-keyring? ( >=gnome-base/gnome-keyring-2.28.2 )
86 >=media-libs/alsa-lib-1.0.19
87 media-libs/jpeg:0
88 media-libs/libpng
89 @@ -160,7 +160,7 @@
90 myconf="${myconf} -Duse_cups=0"
91 fi
92
93 - if use gnome; then
94 + if use "gnome-keyring"; then
95 myconf="${myconf} -Dlinux_link_gnome_keyring=1"
96 else
97 # TODO: we should also disable code trying to dlopen
98
99
100
101 1.2 www-client/chromium/chromium-7.0.503.1.ebuild
102
103 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-7.0.503.1.ebuild?rev=1.2&view=markup
104 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-7.0.503.1.ebuild?rev=1.2&content-type=text/plain
105 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-7.0.503.1.ebuild?r1=1.1&r2=1.2
106
107 Index: chromium-7.0.503.1.ebuild
108 ===================================================================
109 RCS file: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-7.0.503.1.ebuild,v
110 retrieving revision 1.1
111 retrieving revision 1.2
112 diff -u -r1.1 -r1.2
113 --- chromium-7.0.503.1.ebuild 26 Aug 2010 03:54:09 -0000 1.1
114 +++ chromium-7.0.503.1.ebuild 28 Aug 2010 18:10:20 -0000 1.2
115 @@ -1,6 +1,6 @@
116 # Copyright 1999-2010 Gentoo Foundation
117 # Distributed under the terms of the GNU General Public License v2
118 -# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-7.0.503.1.ebuild,v 1.1 2010/08/26 03:54:09 phajdan.jr Exp $
119 +# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-7.0.503.1.ebuild,v 1.2 2010/08/28 18:10:20 phajdan.jr Exp $
120
121 EAPI="2"
122
123 @@ -13,14 +13,14 @@
124 LICENSE="BSD"
125 SLOT="0"
126 KEYWORDS="~amd64 ~arm ~x86"
127 -IUSE="cups gnome sse2"
128 +IUSE="cups gnome gnome-keyring sse2"
129
130 RDEPEND="app-arch/bzip2
131 >=dev-libs/icu-4.4.1
132 >=dev-libs/libevent-1.4.13
133 >=dev-libs/nss-3.12.3
134 >=gnome-base/gconf-2.24.0
135 - gnome? ( >=gnome-base/gnome-keyring-2.28.2 )
136 + gnome-keyring? ( >=gnome-base/gnome-keyring-2.28.2 )
137 >=media-libs/alsa-lib-1.0.19
138 media-libs/jpeg:0
139 media-libs/libpng
140 @@ -115,7 +115,7 @@
141 myconf="${myconf} -Duse_cups=0"
142 fi
143
144 - if use gnome; then
145 + if use "gnome-keyring"; then
146 myconf="${myconf} -Dlinux_link_gnome_keyring=1"
147 else
148 # TODO: we should also disable code trying to dlopen
149
150
151
152 1.1 www-client/chromium/chromium-6.0.472.51.ebuild
153
154 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-6.0.472.51.ebuild?rev=1.1&view=markup
155 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-6.0.472.51.ebuild?rev=1.1&content-type=text/plain
156
157 Index: chromium-6.0.472.51.ebuild
158 ===================================================================
159 # Copyright 1999-2010 Gentoo Foundation
160 # Distributed under the terms of the GNU General Public License v2
161 # $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-6.0.472.51.ebuild,v 1.1 2010/08/28 18:10:20 phajdan.jr Exp $
162
163 EAPI="2"
164
165 inherit eutils flag-o-matic multilib pax-utils toolchain-funcs
166
167 DESCRIPTION="Open-source version of Google Chrome web browser"
168 HOMEPAGE="http://chromium.org/"
169 SRC_URI="http://build.chromium.org/buildbot/official/${P}.tar.bz2"
170
171 LICENSE="BSD"
172 SLOT="0"
173 KEYWORDS="~amd64 ~arm ~x86"
174 IUSE="cups gnome-keyring sse2"
175
176 RDEPEND="app-arch/bzip2
177 >=dev-libs/libevent-1.4.13
178 >=dev-libs/nss-3.12.3
179 >=gnome-base/gconf-2.24.0
180 gnome-keyring? ( >=gnome-base/gnome-keyring-2.28.2 )
181 >=media-libs/alsa-lib-1.0.19
182 media-libs/jpeg:0
183 media-libs/libpng
184 cups? ( >=net-print/cups-1.4.4 )
185 sys-libs/zlib
186 >=x11-libs/gtk+-2.14.7
187 x11-libs/libXScrnSaver"
188 DEPEND="${RDEPEND}
189 dev-lang/perl
190 >=dev-util/gperf-3.0.3
191 >=dev-util/pkgconfig-0.23
192 >=gnome-base/gnome-keyring-2.28.2
193 sys-devel/flex"
194 RDEPEND+="
195 || (
196 x11-themes/gnome-icon-theme
197 x11-themes/oxygen-molecule
198 x11-themes/tango-icon-theme
199 x11-themes/xfce4-icon-theme
200 )
201 x11-apps/xmessage
202 x11-misc/xdg-utils
203 virtual/ttf-fonts"
204
205 get_chromium_home() {
206 echo "/usr/$(get_libdir)/chromium-browser"
207 }
208
209 remove_bundled_lib() {
210 einfo "Removing bundled library $1 ..."
211 local out
212 out="$(find $1 -mindepth 1 \! -iname '*.gyp' -print -delete)" \
213 || die "failed to remove bundled library $1"
214 if [[ -z $out ]]; then
215 die "no files matched when removing bundled library $1"
216 fi
217 }
218
219 src_prepare() {
220 # Fix compilation, bug #332131.
221 epatch "${FILESDIR}"/${PN}-make-3.82-compatibility-r0.patch
222
223 # Add Gentoo plugin paths.
224 epatch "${FILESDIR}"/${PN}-plugins-path-r0.patch
225
226 remove_bundled_lib "third_party/bzip2"
227 remove_bundled_lib "third_party/codesighs"
228 remove_bundled_lib "third_party/cros"
229 remove_bundled_lib "third_party/jemalloc"
230 remove_bundled_lib "third_party/lcov"
231 remove_bundled_lib "third_party/libevent"
232 remove_bundled_lib "third_party/libjpeg"
233 remove_bundled_lib "third_party/libpng"
234 remove_bundled_lib "third_party/lzma_sdk"
235 remove_bundled_lib "third_party/molokocacao"
236 remove_bundled_lib "third_party/ocmock"
237 remove_bundled_lib "third_party/py"
238 remove_bundled_lib "third_party/pyftpdlib"
239 remove_bundled_lib "third_party/simplejson"
240 remove_bundled_lib "third_party/tlslite"
241 # TODO: also remove third_party/libxml and third_party/libxslt when
242 # http://crbug.com/29333 is fixed.
243 # TODO: also remove third_party/zlib. For now the compilation fails if we
244 # remove it (minizip-related).
245 }
246
247 src_configure() {
248 local myconf=""
249
250 # Make it possible to build chromium on non-sse2 systems.
251 if use sse2; then
252 myconf="${myconf} -Ddisable_sse2=0"
253 else
254 myconf="${myconf} -Ddisable_sse2=1"
255 fi
256
257 # Use system-provided libraries.
258 # TODO: use_system_ffmpeg (http://crbug.com/50678).
259 # TODO: use_system_libxml (http://crbug.com/29333).
260 # TODO: use_system_sqlite (http://crbug.com/22208).
261 # TODO: use_system_icu, use_system_hunspell (upstream changes needed).
262 # TODO: use_system_ssl when we have a recent enough system NSS.
263 myconf="${myconf}
264 -Duse_system_bzip2=1
265 -Duse_system_libevent=1
266 -Duse_system_libjpeg=1
267 -Duse_system_libpng=1
268 -Duse_system_zlib=1"
269
270 # The dependency on cups is optional, see bug #324105.
271 if use cups; then
272 myconf="${myconf} -Duse_cups=1"
273 else
274 myconf="${myconf} -Duse_cups=0"
275 fi
276
277 if use "gnome-keyring"; then
278 myconf="${myconf} -Dlinux_link_gnome_keyring=1"
279 else
280 # TODO: we should also disable code trying to dlopen
281 # gnome-keyring in that case.
282 myconf="${myconf} -Dlinux_link_gnome_keyring=0"
283 fi
284
285 # Enable sandbox.
286 myconf="${myconf}
287 -Dlinux_sandbox_path=$(get_chromium_home)/chrome_sandbox
288 -Dlinux_sandbox_chrome_path=$(get_chromium_home)/chrome"
289
290 # Disable the V8 snapshot. It breaks the build on hardened (bug #301880),
291 # and the performance gain isn't worth it.
292 myconf="${myconf} -Dv8_use_snapshot=0"
293
294 # Disable tcmalloc memory allocator. It causes problems,
295 # for example bug #320419.
296 myconf="${myconf} -Dlinux_use_tcmalloc=0"
297
298 # Disable gpu rendering, it is incompatible with nvidia-drivers,
299 # bug #319331.
300 myconf="${myconf} -Denable_gpu=0"
301
302 # Use target arch detection logic from bug #296917.
303 local myarch="$ABI"
304 [[ $myarch = "" ]] && myarch="$ARCH"
305
306 if [[ $myarch = amd64 ]] ; then
307 myconf="${myconf} -Dtarget_arch=x64"
308 elif [[ $myarch = x86 ]] ; then
309 myconf="${myconf} -Dtarget_arch=ia32"
310 elif [[ $myarch = arm ]] ; then
311 # TODO: check this again after
312 # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39509 is fixed.
313 append-flags -fno-tree-sink
314
315 myconf="${myconf} -Dtarget_arch=arm -Ddisable_nacl=1 -Dlinux_use_tcmalloc=0"
316 else
317 die "Failed to determine target arch, got '$myarch'."
318 fi
319
320 if [[ "$(gcc-major-version)$(gcc-minor-version)" == "44" ]]; then
321 myconf="${myconf} -Dno_strict_aliasing=1 -Dgcc_version=44"
322 fi
323
324 # Work around a likely GCC bug, see bug #331945.
325 if [[ "$(gcc-major-version)$(gcc-minor-version)" == "45" ]]; then
326 append-flags -fno-ipa-cp
327 fi
328
329 # Make sure that -Werror doesn't get added to CFLAGS by the build system.
330 # Depending on GCC version the warnings are different and we don't want
331 # the build to fail because of that.
332 myconf="${myconf} -Dwerror="
333
334 build/gyp_chromium -f make build/all.gyp ${myconf} --depth=. || die "gyp failed"
335 }
336
337 src_compile() {
338 emake -r V=1 chrome chrome_sandbox BUILDTYPE=Release \
339 rootdir="${S}" \
340 CC="$(tc-getCC)" \
341 CXX="$(tc-getCXX)" \
342 AR="$(tc-getAR)" \
343 RANLIB="$(tc-getRANLIB)" \
344 || die "compilation failed"
345 }
346
347 src_install() {
348 dodir "$(get_chromium_home)"
349
350 exeinto "$(get_chromium_home)"
351 pax-mark m out/Release/chrome
352 doexe out/Release/chrome
353 doexe out/Release/chrome_sandbox
354 fperms 4755 "$(get_chromium_home)/chrome_sandbox"
355 doexe out/Release/xdg-settings
356 doexe "${FILESDIR}"/chromium-launcher.sh
357
358 insinto "$(get_chromium_home)"
359 doins out/Release/chrome.pak || die "installing chrome.pak failed"
360 doins out/Release/resources.pak || die "installing resources.pak failed"
361
362 doins -r out/Release/locales
363 doins -r out/Release/resources
364
365 # chrome.1 is for chromium --help
366 newman out/Release/chrome.1 chrome.1
367 newman out/Release/chrome.1 chromium.1
368
369 doexe out/Release/ffmpegsumo_nolink || die
370 doexe out/Release/libffmpegsumo.so || die
371
372 # Install icon and desktop entry.
373 newicon out/Release/product_logo_48.png ${PN}-browser.png
374 dosym "$(get_chromium_home)/chromium-launcher.sh" /usr/bin/chromium
375 make_desktop_entry chromium "Chromium" ${PN}-browser "Network;WebBrowser" \
376 "MimeType=text/html;text/xml;application/xhtml+xml;"
377 sed -e "/^Exec/s/$/ %U/" -i "${D}"/usr/share/applications/*.desktop \
378 || die "desktop file sed failed"
379
380 # Install GNOME default application entry (bug #303100).
381 dodir /usr/share/gnome-control-center/default-apps
382 insinto /usr/share/gnome-control-center/default-apps
383 doins "${FILESDIR}"/chromium.xml
384 }