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: chromium-10.0.628.0.ebuild ChangeLog chromium-9999.ebuild chromium-10.0.612.1.ebuild
Date: Thu, 06 Jan 2011 16:12:31
Message-Id: 20110106161221.4AC8420051@flycatcher.gentoo.org
1 phajdan.jr 11/01/06 16:12:21
2
3 Modified: ChangeLog chromium-9999.ebuild
4 Added: chromium-10.0.628.0.ebuild
5 Removed: chromium-10.0.612.1.ebuild
6 Log:
7 Version bump for dev channel release. Remove old.
8
9 (Portage version: 2.1.9.25/cvs/Linux i686)
10
11 Revision Changes Path
12 1.254 www-client/chromium/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?rev=1.254&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?rev=1.254&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?r1=1.253&r2=1.254
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v
21 retrieving revision 1.253
22 retrieving revision 1.254
23 diff -u -r1.253 -r1.254
24 --- ChangeLog 6 Jan 2011 09:27:56 -0000 1.253
25 +++ ChangeLog 6 Jan 2011 16:12:21 -0000 1.254
26 @@ -1,6 +1,13 @@
27 # ChangeLog for www-client/chromium
28 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.253 2011/01/06 09:27:56 phajdan.jr Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.254 2011/01/06 16:12:21 phajdan.jr Exp $
31 +
32 +*chromium-10.0.628.0 (06 Jan 2011)
33 +
34 + 06 Jan 2011; Pawel Hajdan jr <phajdan.jr@g.o>
35 + -chromium-10.0.612.1.ebuild, +chromium-10.0.628.0.ebuild,
36 + chromium-9999.ebuild:
37 + Version bump for dev channel release. Remove old.
38
39 *chromium-9.0.597.44 (06 Jan 2011)
40
41
42
43
44 1.121 www-client/chromium/chromium-9999.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-9999.ebuild?rev=1.121&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-9999.ebuild?rev=1.121&content-type=text/plain
48 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-9999.ebuild?r1=1.120&r2=1.121
49
50 Index: chromium-9999.ebuild
51 ===================================================================
52 RCS file: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-9999.ebuild,v
53 retrieving revision 1.120
54 retrieving revision 1.121
55 diff -u -r1.120 -r1.121
56 --- chromium-9999.ebuild 3 Jan 2011 14:57:26 -0000 1.120
57 +++ chromium-9999.ebuild 6 Jan 2011 16:12:21 -0000 1.121
58 @@ -1,6 +1,6 @@
59 # Copyright 1999-2011 Gentoo Foundation
60 # Distributed under the terms of the GNU General Public License v2
61 -# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-9999.ebuild,v 1.120 2011/01/03 14:57:26 phajdan.jr Exp $
62 +# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-9999.ebuild,v 1.121 2011/01/06 16:12:21 phajdan.jr Exp $
63
64 EAPI="3"
65 PYTHON_DEPEND="2:2.6"
66 @@ -109,10 +109,6 @@
67 "${@}"
68 }
69
70 -get_installed_v8_version() {
71 - best_version dev-lang/v8 | sed -e 's@dev-lang/v8-@@g'
72 -}
73 -
74 remove_bundled_lib() {
75 local out
76 out="$(find $1 -type f \! -iname '*.gyp' -print -delete)" \
77 @@ -188,15 +184,6 @@
78 # TODO: move this upstream.
79 cp "${FILESDIR}"/speex.gyp third_party/speex || die
80
81 - local v8_bundled="$(v8-extract-version v8/src/version.cc)"
82 - if use system-v8; then
83 - local v8_installed="$(get_installed_v8_version)"
84 - einfo "V8 version: bundled - ${v8_bundled}; installed - ${v8_installed}"
85 - version_is_at_least "${v8_bundled}" "${v8_installed}" || die
86 - else
87 - einfo "Bundled V8 version: ${v8_bundled}"
88 - fi
89 -
90 if use system-sqlite; then
91 remove_bundled_lib "third_party/sqlite/src"
92 remove_bundled_lib "third_party/sqlite/preprocessed"
93 @@ -319,8 +306,7 @@
94 }
95
96 src_compile() {
97 - emake chrome chrome_sandbox base_unittests net_unittests \
98 - BUILDTYPE=Release V=1 || die
99 + emake chrome chrome_sandbox BUILDTYPE=Release V=1 || die
100 pax-mark m out/Release/chrome
101 if use test; then
102 emake base_unittests net_unittests \
103
104
105
106 1.1 www-client/chromium/chromium-10.0.628.0.ebuild
107
108 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-10.0.628.0.ebuild?rev=1.1&view=markup
109 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-10.0.628.0.ebuild?rev=1.1&content-type=text/plain
110
111 Index: chromium-10.0.628.0.ebuild
112 ===================================================================
113 # Copyright 1999-2011 Gentoo Foundation
114 # Distributed under the terms of the GNU General Public License v2
115 # $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-10.0.628.0.ebuild,v 1.1 2011/01/06 16:12:21 phajdan.jr Exp $
116
117 EAPI="3"
118 PYTHON_DEPEND="2:2.6"
119 V8_DEPEND="3.0.4.1"
120
121 inherit eutils flag-o-matic multilib pax-utils portability python \
122 toolchain-funcs versionator virtualx
123
124 DESCRIPTION="Open-source version of Google Chrome web browser"
125 HOMEPAGE="http://chromium.org/"
126 SRC_URI="http://build.chromium.org/buildbot/official/${P}.tar.bz2"
127
128 LICENSE="BSD"
129 SLOT="0"
130 KEYWORDS="~amd64 ~x86"
131 IUSE="cups +gecko-mediaplayer gnome gnome-keyring system-sqlite system-v8"
132
133 RDEPEND="app-arch/bzip2
134 system-sqlite? (
135 >=dev-db/sqlite-3.7.2[fts3,icu,secure-delete,threadsafe]
136 )
137 system-v8? ( >=dev-lang/v8-${V8_DEPEND} )
138 dev-libs/dbus-glib
139 >=dev-libs/icu-4.4.1
140 >=dev-libs/libevent-1.4.13
141 dev-libs/libxml2
142 dev-libs/libxslt
143 >=dev-libs/nss-3.12.3
144 gnome? ( >=gnome-base/gconf-2.24.0 )
145 gnome-keyring? ( >=gnome-base/gnome-keyring-2.28.2 )
146 >=media-libs/alsa-lib-1.0.19
147 virtual/jpeg
148 media-libs/libpng
149 media-libs/libvpx
150 media-libs/speex
151 >=media-video/ffmpeg-0.6_p25767[threads]
152 cups? ( >=net-print/cups-1.3.11 )
153 sys-libs/zlib
154 >=x11-libs/gtk+-2.14.7
155 x11-libs/libXScrnSaver
156 x11-libs/libXtst"
157 DEPEND="${RDEPEND}
158 dev-lang/perl
159 >=dev-util/chromium-tools-0.1.4
160 >=dev-util/gperf-3.0.3
161 >=dev-util/pkgconfig-0.23
162 sys-devel/flex"
163 RDEPEND+="
164 || (
165 x11-themes/gnome-icon-theme
166 x11-themes/oxygen-molecule
167 x11-themes/tango-icon-theme
168 x11-themes/xfce4-icon-theme
169 )
170 x11-misc/xdg-utils
171 virtual/ttf-fonts
172 gecko-mediaplayer? ( !www-plugins/gecko-mediaplayer[gnome] )"
173
174 egyp() {
175 set -- build/gyp_chromium --depth=. "${@}"
176 echo "${@}" >&2
177 "${@}"
178 }
179
180 remove_bundled_lib() {
181 local out
182 out="$(find $1 -type f \! -iname '*.gyp' -print -delete)" \
183 || die "failed to remove bundled library $1"
184 if [[ -z $out ]]; then
185 die "no files matched when removing bundled library $1"
186 fi
187 }
188
189 pkg_setup() {
190 CHROMIUM_HOME="/usr/$(get_libdir)/chromium-browser"
191
192 # Make sure the build system will use the right tools, bug #340795.
193 tc-export AR CC CXX RANLIB
194
195 # Make sure the build system will use the right python, bug #344367.
196 python_set_active_version 2
197 python_pkg_setup
198
199 # Prevent user problems like bug #299777.
200 if ! grep -q /dev/shm <<< $(get_mounts); then
201 ewarn "You don't have tmpfs mounted at /dev/shm."
202 ewarn "${PN} may fail to start in that configuration."
203 ewarn "Please uncomment the /dev/shm entry in /etc/fstab,"
204 ewarn "and run 'mount /dev/shm'."
205 fi
206 if [ `stat -c %a /dev/shm` -ne 1777 ]; then
207 ewarn "/dev/shm does not have correct permissions."
208 ewarn "${PN} may fail to start in that configuration."
209 ewarn "Please run 'chmod 1777 /dev/shm'."
210 fi
211
212 # Prevent user problems like bug #348235.
213 eshopts_push -s extglob
214 if is-flagq '-g?(gdb)?([1-9])'; then
215 ewarn "You have enabled debug info (probably have -g or -ggdb in your \$C{,XX}FLAGS)."
216 ewarn "You may experience really long compilation times and/or increased memory usage."
217 ewarn "If compilation fails, please try removing -g{,gdb} before reporting a bug."
218 fi
219 eshopts_pop
220 }
221
222 src_prepare() {
223 # Enable optional support for gecko-mediaplayer.
224 epatch "${FILESDIR}"/${PN}-gecko-mediaplayer-r1.patch
225
226 # Make sure we don't use bundled libvpx headers.
227 epatch "${FILESDIR}"/${PN}-system-vpx-r2.patch
228
229 epatch "${FILESDIR}"/${PN}-system-speex-r0.patch
230
231 remove_bundled_lib "third_party/bzip2"
232 remove_bundled_lib "third_party/codesighs"
233 remove_bundled_lib "third_party/icu"
234 remove_bundled_lib "third_party/jemalloc"
235 remove_bundled_lib "third_party/lcov"
236 remove_bundled_lib "third_party/libevent"
237 remove_bundled_lib "third_party/libjpeg"
238 remove_bundled_lib "third_party/libpng"
239 remove_bundled_lib "third_party/libvpx"
240 remove_bundled_lib "third_party/libxml"
241 remove_bundled_lib "third_party/libxslt"
242 remove_bundled_lib "third_party/lzma_sdk"
243 remove_bundled_lib "third_party/molokocacao"
244 remove_bundled_lib "third_party/speex"
245 remove_bundled_lib "third_party/ocmock"
246 remove_bundled_lib "third_party/yasm"
247 # TODO: also remove third_party/ffmpeg (needs to be compile-tested).
248 # TODO: also remove third_party/zlib. For now the compilation fails if we
249 # remove it (minizip-related).
250
251 # Provide our own gyp file that links with the system speex.
252 # TODO: move this upstream.
253 cp "${FILESDIR}"/speex.gyp third_party/speex || die
254
255 # Check for the maintainer to ensure that the dependencies
256 # are up-to-date.
257 local v8_bundled="$(v8-extract-version v8/src/version.cc)"
258 if [ "${V8_DEPEND}" != "${v8_bundled}" ]; then
259 die "update v8 dependency to ${v8_bundled}"
260 fi
261
262 if use system-sqlite; then
263 remove_bundled_lib "third_party/sqlite/src"
264 remove_bundled_lib "third_party/sqlite/preprocessed"
265 fi
266
267 if use system-v8; then
268 # Provide our own gyp file that links with the system v8.
269 # TODO: move this upstream.
270 cp "${FILESDIR}"/v8.gyp v8/tools/gyp || die
271
272 remove_bundled_lib "v8"
273
274 # The implementation files include v8 headers with full path,
275 # like #include "v8/include/v8.h". Make sure the system headers
276 # will be used.
277 # TODO: find a solution that can be upstreamed.
278 rmdir v8/include || die
279 ln -s /usr/include v8/include || die
280 fi
281
282 # Make sure the build system will use the right python, bug #344367.
283 # Only convert directories that need it, to save time.
284 python_convert_shebangs -q -r 2 build tools
285 }
286
287 src_configure() {
288 local myconf=""
289
290 # Never tell the build system to "enable" SSE2, it has a few unexpected
291 # additions, bug #336871.
292 myconf+=" -Ddisable_sse2=1"
293
294 # Use system-provided libraries.
295 # TODO: use_system_hunspell (upstream changes needed).
296 # TODO: use_system_ssl (need to consult upstream).
297 myconf+="
298 -Duse_system_bzip2=1
299 -Duse_system_ffmpeg=1
300 -Duse_system_icu=1
301 -Duse_system_libevent=1
302 -Duse_system_libjpeg=1
303 -Duse_system_libpng=1
304 -Duse_system_libxml=1
305 -Duse_system_vpx=1
306 -Duse_system_zlib=1"
307
308 if use system-sqlite; then
309 myconf+=" -Duse_system_sqlite=1"
310 fi
311
312 # The dependency on cups is optional, see bug #324105.
313 if use cups; then
314 myconf+=" -Duse_cups=1"
315 else
316 myconf+=" -Duse_cups=0"
317 fi
318
319 # Make GConf dependency optional, http://crbug.com/13322.
320 if use gnome; then
321 myconf+=" -Duse_gconf=1"
322 else
323 myconf+=" -Duse_gconf=0"
324 fi
325
326 if use "gnome-keyring"; then
327 myconf+=" -Duse_gnome_keyring=1 -Dlinux_link_gnome_keyring=1"
328 else
329 # TODO: we should also disable code trying to dlopen
330 # gnome-keyring in that case.
331 myconf+=" -Duse_gnome_keyring=0 -Dlinux_link_gnome_keyring=0"
332 fi
333
334 # Enable sandbox.
335 myconf+="
336 -Dlinux_sandbox_path=${CHROMIUM_HOME}/chrome_sandbox
337 -Dlinux_sandbox_chrome_path=${CHROMIUM_HOME}/chrome"
338
339 if host-is-pax; then
340 # Prevent the build from failing (bug #301880). The performance
341 # difference is very small.
342 myconf+=" -Dv8_use_snapshot=0"
343 fi
344
345 if use gecko-mediaplayer; then
346 # Disable hardcoded blacklist for gecko-mediaplayer.
347 # When www-plugins/gecko-mediaplayer is compiled with USE=gnome, it causes
348 # the browser to hang. We can handle the situation via dependencies,
349 # thus making it possible to use gecko-mediaplayer.
350 append-flags -DGENTOO_CHROMIUM_ENABLE_GECKO_MEDIAPLAYER
351 fi
352
353 # Our system ffmpeg should support more codecs than the bundled one
354 # for Chromium.
355 myconf+=" -Dproprietary_codecs=1"
356
357 # Use target arch detection logic from bug #296917.
358 local myarch="$ABI"
359 [[ $myarch = "" ]] && myarch="$ARCH"
360
361 if [[ $myarch = amd64 ]] ; then
362 myconf+=" -Dtarget_arch=x64"
363 elif [[ $myarch = x86 ]] ; then
364 myconf+=" -Dtarget_arch=ia32"
365 elif [[ $myarch = arm ]] ; then
366 # TODO: check this again after
367 # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39509 is fixed.
368 append-flags -fno-tree-sink
369
370 myconf+=" -Dtarget_arch=arm -Ddisable_nacl=1 -Dlinux_use_tcmalloc=0"
371 else
372 die "Failed to determine target arch, got '$myarch'."
373 fi
374
375 # Make sure that -Werror doesn't get added to CFLAGS by the build system.
376 # Depending on GCC version the warnings are different and we don't want
377 # the build to fail because of that.
378 myconf+=" -Dwerror="
379
380 egyp ${myconf} || die
381 }
382
383 src_compile() {
384 emake chrome chrome_sandbox BUILDTYPE=Release V=1 || die
385 pax-mark m out/Release/chrome
386 if use test; then
387 emake base_unittests net_unittests \
388 BUILDTYPE=Release V=1 || die
389 pax-mark m out/Release/{base_unittests,net_unittests}
390 fi
391 }
392
393 src_test() {
394 # For more info see bug #350349.
395 local mylocale='en_US.utf8'
396 if ! locale -a | grep -q "$mylocale"; then
397 eerror "${PN} requires ${mylocale} locale for tests"
398 eerror "Please read the following guides for more information:"
399 eerror " http://www.gentoo.org/doc/en/guide-localization.xml"
400 eerror " http://www.gentoo.org/doc/en/utf-8.xml"
401 die "locale ${mylocale} is not supported"
402 fi
403
404 # Make test failures non-fatal for now. This needs more investigation.
405 LC_ALL="${mylocale}" maketype=out/Release/base_unittests virtualmake \
406 || eerror "base_unittests failed"
407 LC_ALL="${mylocale}" maketype=out/Release/net_unittests virtualmake \
408 || eerror "net_unittests failed"
409 }
410
411 src_install() {
412 exeinto "${CHROMIUM_HOME}"
413 doexe out/Release/chrome
414 doexe out/Release/chrome_sandbox || die
415 fperms 4755 "${CHROMIUM_HOME}/chrome_sandbox"
416 doexe out/Release/xdg-settings || die
417 doexe "${FILESDIR}"/chromium-launcher.sh || die
418
419 insinto "${CHROMIUM_HOME}"
420 doins out/Release/chrome.pak || die
421 doins out/Release/resources.pak || die
422
423 doins -r out/Release/locales || die
424 doins -r out/Release/resources || die
425
426 # chrome.1 is for chromium --help
427 newman out/Release/chrome.1 chrome.1 || die
428 newman out/Release/chrome.1 chromium.1 || die
429
430 # Chromium looks for these in its folder
431 # See media_posix.cc and base_paths_linux.cc
432 dosym /usr/$(get_libdir)/libavcodec.so.52 "${CHROMIUM_HOME}" || die
433 dosym /usr/$(get_libdir)/libavformat.so.52 "${CHROMIUM_HOME}" || die
434 dosym /usr/$(get_libdir)/libavutil.so.50 "${CHROMIUM_HOME}" || die
435
436 # Install icon and desktop entry.
437 newicon out/Release/product_logo_48.png ${PN}-browser.png || die
438 dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium || die
439 make_desktop_entry chromium "Chromium" ${PN}-browser "Network;WebBrowser" \
440 "MimeType=text/html;text/xml;application/xhtml+xml;"
441 sed -e "/^Exec/s/$/ %U/" -i "${D}"/usr/share/applications/*.desktop || die
442
443 # Install GNOME default application entry (bug #303100).
444 if use gnome; then
445 dodir /usr/share/gnome-control-center/default-apps || die
446 insinto /usr/share/gnome-control-center/default-apps
447 doins "${FILESDIR}"/chromium.xml || die
448 fi
449 }