Gentoo Archives: gentoo-commits

From: "Mike Gilbert (floppym)" <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-client/chromium: chromium-20.0.1132.17.ebuild ChangeLog chromium-20.0.1132.8.ebuild
Date: Fri, 25 May 2012 02:47:36
Message-Id: 20120525024725.746052004B@flycatcher.gentoo.org
1 floppym 12/05/25 02:47:25
2
3 Modified: ChangeLog
4 Added: chromium-20.0.1132.17.ebuild
5 Removed: chromium-20.0.1132.8.ebuild
6 Log:
7 Version bump for beta channel release.
8
9 (Portage version: 2.2.0_alpha107/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.646 www-client/chromium/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?rev=1.646&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?rev=1.646&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?r1=1.645&r2=1.646
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v
21 retrieving revision 1.645
22 retrieving revision 1.646
23 diff -u -r1.645 -r1.646
24 --- ChangeLog 24 May 2012 02:10:20 -0000 1.645
25 +++ ChangeLog 25 May 2012 02:47:25 -0000 1.646
26 @@ -1,6 +1,12 @@
27 # ChangeLog for www-client/chromium
28 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.645 2012/05/24 02:10:20 rich0 Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.646 2012/05/25 02:47:25 floppym Exp $
31 +
32 +*chromium-20.0.1132.17 (25 May 2012)
33 +
34 + 25 May 2012; Mike Gilbert <floppym@g.o> +chromium-20.0.1132.17.ebuild,
35 + -chromium-20.0.1132.8.ebuild:
36 + Version bump for beta channel release.
37
38 24 May 2012; Richard Freeman <rich0@g.o> chromium-19.0.1084.52.ebuild:
39 amd64 stable - 417321
40
41
42
43 1.1 www-client/chromium/chromium-20.0.1132.17.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-20.0.1132.17.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-20.0.1132.17.ebuild?rev=1.1&content-type=text/plain
47
48 Index: chromium-20.0.1132.17.ebuild
49 ===================================================================
50 # Copyright 1999-2012 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-20.0.1132.17.ebuild,v 1.1 2012/05/25 02:47:25 floppym Exp $
53
54 EAPI="4"
55 PYTHON_DEPEND="2:2.6"
56
57 CHROMIUM_LANGS="am ar bg bn ca cs da de el en_GB es es_LA et fa fi fil fr gu he
58 hi hr hu id it ja kn ko lt lv ml mr ms nb nl pl pt_BR pt_PT ro ru sk sl sr
59 sv sw ta te th tr uk vi zh_CN zh_TW"
60
61 inherit chromium eutils flag-o-matic multilib \
62 pax-utils portability python toolchain-funcs versionator virtualx
63
64 DESCRIPTION="Open-source version of Google Chrome web browser"
65 HOMEPAGE="http://chromium.org/"
66 SRC_URI="http://commondatastorage.googleapis.com/chromium-browser-official/${P}.tar.bz2"
67
68 LICENSE="BSD"
69 SLOT="0"
70 KEYWORDS="~amd64 ~x86"
71 IUSE="bindist cups gnome gnome-keyring kerberos pulseaudio selinux"
72
73 RDEPEND="app-arch/bzip2
74 cups? (
75 dev-libs/libgcrypt
76 >=net-print/cups-1.3.11
77 )
78 >=dev-lang/v8-3.10.2.1
79 dev-libs/dbus-glib
80 dev-libs/elfutils
81 >=dev-libs/icu-49.1.1-r1
82 >=dev-libs/libevent-1.4.13
83 dev-libs/libxml2[icu]
84 dev-libs/libxslt
85 >=dev-libs/nss-3.12.3
86 gnome? ( >=gnome-base/gconf-2.24.0 )
87 gnome-keyring? ( >=gnome-base/gnome-keyring-2.28.2 )
88 >=media-libs/alsa-lib-1.0.19
89 media-libs/flac
90 >=media-libs/libjpeg-turbo-1.2.0-r1
91 media-libs/libpng
92 >=media-libs/libwebp-0.1.3
93 media-libs/speex
94 pulseaudio? ( media-sound/pulseaudio )
95 sys-fs/udev
96 sys-libs/zlib
97 x11-libs/gtk+:2
98 x11-libs/libXinerama
99 x11-libs/libXScrnSaver
100 x11-libs/libXtst
101 kerberos? ( virtual/krb5 )
102 selinux? ( sys-libs/libselinux )"
103 DEPEND="${RDEPEND}
104 >=dev-lang/nacl-toolchain-newlib-0_p7311
105 dev-lang/perl
106 dev-lang/yasm
107 dev-python/ply
108 dev-python/simplejson
109 >=dev-util/gperf-3.0.3
110 >=sys-devel/bison-2.4.3
111 sys-devel/flex
112 >=sys-devel/make-3.81-r2
113 virtual/pkgconfig
114 test? (
115 dev-python/pyftpdlib
116 )"
117 RDEPEND+="
118 !=www-client/chromium-9999
119 x11-misc/xdg-utils
120 virtual/ttf-fonts"
121
122 if ! has chromium_pkg_die ${EBUILD_DEATH_HOOKS}; then
123 EBUILD_DEATH_HOOKS+=" chromium_pkg_die";
124 fi
125
126 pkg_setup() {
127 if [[ "${SLOT}" == "0" ]]; then
128 CHROMIUM_SUFFIX=""
129 else
130 CHROMIUM_SUFFIX="-${SLOT}"
131 fi
132 CHROMIUM_HOME="/usr/$(get_libdir)/chromium-browser${CHROMIUM_SUFFIX}"
133
134 # Make sure the build system will use the right tools, bug #340795.
135 tc-export AR CC CXX RANLIB
136
137 # Make sure the build system will use the right python, bug #344367.
138 python_set_active_version 2
139 python_pkg_setup
140
141 chromium_check_kernel_config
142
143 if use bindist; then
144 elog "bindist enabled: H.264 video support will be disabled."
145 else
146 elog "bindist disabled: Resulting binaries may not be legal to re-distribute."
147 fi
148 }
149
150 src_prepare() {
151 ln -s /usr/$(get_libdir)/nacl-toolchain-newlib \
152 native_client/toolchain/linux_x86_newlib || die
153
154 # zlib-1.2.5.1-r1 renames the OF macro in zconf.h, bug 383371.
155 sed -i '1i#define OF(x) x' \
156 third_party/zlib/contrib/minizip/{ioapi,{,un}zip}.c \
157 chrome/common/zip*.cc || die
158
159 epatch "${FILESDIR}/${PN}-svnversion-r0.patch"
160
161 # Backport upstream fix for Gentoo bug #415601.
162 epatch "${FILESDIR}/${PN}-unistd-r0.patch"
163
164 # Fix build without tcmalloc. To be upstreamed.
165 epatch "${FILESDIR}/${PN}-tcmalloc-r0.patch"
166
167 epatch_user
168
169 # Remove most bundled libraries. Some are still needed.
170 find third_party -type f \! -iname '*.gyp*' \
171 \! -path 'third_party/WebKit/*' \
172 \! -path 'third_party/angle/*' \
173 \! -path 'third_party/cacheinvalidation/*' \
174 \! -path 'third_party/cld/*' \
175 \! -path 'third_party/expat/*' \
176 \! -path 'third_party/ffmpeg/*' \
177 \! -path 'third_party/flac/flac.h' \
178 \! -path 'third_party/gpsd/*' \
179 \! -path 'third_party/harfbuzz/*' \
180 \! -path 'third_party/hunspell/*' \
181 \! -path 'third_party/iccjpeg/*' \
182 \! -path 'third_party/jsoncpp/*' \
183 \! -path 'third_party/khronos/*' \
184 \! -path 'third_party/launchpad_translations/*' \
185 \! -path 'third_party/leveldatabase/*' \
186 \! -path 'third_party/libjingle/*' \
187 \! -path 'third_party/libphonenumber/*' \
188 \! -path 'third_party/libsrtp/*' \
189 \! -path 'third_party/libusb/*' \
190 \! -path 'third_party/libvpx/*' \
191 \! -path 'third_party/libxml/chromium/*' \
192 \! -path 'third_party/libyuv/*' \
193 \! -path 'third_party/lss/*' \
194 \! -path 'third_party/mesa/*' \
195 \! -path 'third_party/modp_b64/*' \
196 \! -path 'third_party/mongoose/*' \
197 \! -path 'third_party/npapi/*' \
198 \! -path 'third_party/openmax/*' \
199 \! -path 'third_party/ots/*' \
200 \! -path 'third_party/protobuf/*' \
201 \! -path 'third_party/scons-2.0.1/*' \
202 \! -path 'third_party/sfntly/*' \
203 \! -path 'third_party/skia/*' \
204 \! -path 'third_party/smhasher/*' \
205 \! -path 'third_party/speex/speex.h' \
206 \! -path 'third_party/sqlite/*' \
207 \! -path 'third_party/tlslite/*' \
208 \! -path 'third_party/undoview/*' \
209 \! -path 'third_party/v8-i18n/*' \
210 \! -path 'third_party/webdriver/*' \
211 \! -path 'third_party/webgl_conformance/*' \
212 \! -path 'third_party/webrtc/*' \
213 \! -path 'third_party/zlib/contrib/minizip/*' \
214 -delete || die
215
216 local v8_bundled="$(chromium_bundled_v8_version)"
217 local v8_installed="$(chromium_installed_v8_version)"
218 elog "V8 version: bundled - ${v8_bundled}; installed - ${v8_installed}"
219
220 # Remove bundled v8.
221 find v8 -type f \! -iname '*.gyp*' -delete || die
222
223 # The implementation files include v8 headers with full path,
224 # like #include "v8/include/v8.h". Make sure the system headers
225 # will be used.
226 # TODO: find a solution that can be upstreamed.
227 rmdir v8/include || die
228 ln -s /usr/include v8/include || die
229
230 # Make sure the build system will use the right python, bug #344367.
231 # Only convert directories that need it, to save time.
232 python_convert_shebangs -q -r 2 build tools
233 }
234
235 src_configure() {
236 local myconf=""
237
238 # Never tell the build system to "enable" SSE2, it has a few unexpected
239 # additions, bug #336871.
240 myconf+=" -Ddisable_sse2=1"
241
242 # Disable tcmalloc, it causes problems with e.g. NVIDIA
243 # drivers, bug #413637.
244 myconf+=" -Dlinux_use_tcmalloc=0"
245
246 # Make it possible to remove third_party/adobe.
247 echo > "${T}/flapper_version.h" || die
248 myconf+=" -Dflapper_version_h_file=${T}/flapper_version.h"
249
250 # Use system-provided libraries.
251 # TODO: use_system_ffmpeg
252 # TODO: use_system_hunspell (upstream changes needed).
253 # TODO: use_system_ssl (http://crbug.com/58087).
254 # TODO: use_system_sqlite (http://crbug.com/22208).
255 # TODO: use_system_vpx
256 myconf+="
257 -Duse_system_bzip2=1
258 -Duse_system_flac=1
259 -Duse_system_icu=1
260 -Duse_system_libevent=1
261 -Duse_system_libjpeg=1
262 -Duse_system_libpng=1
263 -Duse_system_libwebp=1
264 -Duse_system_libxml=1
265 -Duse_system_speex=1
266 -Duse_system_v8=1
267 -Duse_system_xdg_utils=1
268 -Duse_system_yasm=1
269 -Duse_system_zlib=1"
270
271 # Optional dependencies.
272 # TODO: linux_link_kerberos, bug #381289.
273 myconf+="
274 $(gyp_use cups use_cups)
275 $(gyp_use gnome use_gconf)
276 $(gyp_use gnome-keyring use_gnome_keyring)
277 $(gyp_use gnome-keyring linux_link_gnome_keyring)
278 $(gyp_use kerberos use_kerberos)
279 $(gyp_use pulseaudio use_pulseaudio)
280 $(gyp_use selinux selinux)"
281
282 if ! use selinux; then
283 # Enable SUID sandbox.
284 myconf+="
285 -Dlinux_sandbox_path=${CHROMIUM_HOME}/chrome_sandbox
286 -Dlinux_sandbox_chrome_path=${CHROMIUM_HOME}/chrome"
287 fi
288
289 # Never use bundled gold binary. Disable gold linker flags for now.
290 myconf+="
291 -Dlinux_use_gold_binary=0
292 -Dlinux_use_gold_flags=0"
293
294 if ! use bindist; then
295 # Enable H.624 support in bundled ffmpeg.
296 myconf+=" -Dproprietary_codecs=1 -Dffmpeg_branding=Chrome"
297 fi
298
299 local myarch="$(tc-arch)"
300 if [[ $myarch = amd64 ]] ; then
301 myconf+=" -Dtarget_arch=x64"
302 elif [[ $myarch = x86 ]] ; then
303 myconf+=" -Dtarget_arch=ia32"
304 else
305 die "Failed to determine target arch, got '$myarch'."
306 fi
307
308 # Make sure that -Werror doesn't get added to CFLAGS by the build system.
309 # Depending on GCC version the warnings are different and we don't want
310 # the build to fail because of that.
311 myconf+=" -Dwerror="
312
313 # Avoid CFLAGS problems, bug #352457, bug #390147.
314 if ! use custom-cflags; then
315 replace-flags "-Os" "-O2"
316 strip-flags
317 fi
318
319 egyp_chromium ${myconf} || die
320 }
321
322 src_compile() {
323 local test_targets
324 for x in base cacheinvalidation crypto \
325 googleurl gpu media net printing; do
326 test_targets+=" ${x}_unittests"
327 done
328
329 local make_targets="chrome chromedriver"
330 if ! use selinux; then
331 make_targets+=" chrome_sandbox"
332 fi
333 if use test; then
334 make_targets+=$test_targets
335 fi
336
337 # See bug #410883 for more info about the .host mess.
338 emake ${make_targets} BUILDTYPE=Release V=1 \
339 CC.host="$(tc-getCC)" CFLAGS.host="${CFLAGS}" \
340 CXX.host="$(tc-getCXX)" CXXFLAGS.host="${CXXFLAGS}" \
341 LINK.host="$(tc-getCXX)" LDFLAGS.host="${LDFLAGS}" \
342 AR.host="$(tc-getAR)" || die
343
344 pax-mark m out/Release/chrome
345 if use test; then
346 for x in $test_targets; do
347 pax-mark m out/Release/${x}
348 done
349 fi
350 }
351
352 src_test() {
353 # For more info see bug #350349.
354 local mylocale='en_US.utf8'
355 if ! locale -a | grep -q "$mylocale"; then
356 eerror "${PN} requires ${mylocale} locale for tests"
357 eerror "Please read the following guides for more information:"
358 eerror " http://www.gentoo.org/doc/en/guide-localization.xml"
359 eerror " http://www.gentoo.org/doc/en/utf-8.xml"
360 die "locale ${mylocale} is not supported"
361 fi
362
363 # For more info see bug #370957.
364 if [[ $UID -eq 0 ]]; then
365 die "Tests must be run as non-root. Please use FEATURES=userpriv."
366 fi
367
368 # ICUStringConversionsTest: bug #350347.
369 # MessagePumpLibeventTest: bug #398501.
370 LC_ALL="${mylocale}" VIRTUALX_COMMAND=out/Release/base_unittests virtualmake \
371 '--gtest_filter=-ICUStringConversionsTest.*:MessagePumpLibeventTest.*'
372
373 LC_ALL="${mylocale}" VIRTUALX_COMMAND=out/Release/cacheinvalidation_unittests virtualmake
374 LC_ALL="${mylocale}" VIRTUALX_COMMAND=out/Release/crypto_unittests virtualmake
375 LC_ALL="${mylocale}" VIRTUALX_COMMAND=out/Release/googleurl_unittests virtualmake
376 LC_ALL="${mylocale}" VIRTUALX_COMMAND=out/Release/gpu_unittests virtualmake
377 LC_ALL="${mylocale}" VIRTUALX_COMMAND=out/Release/media_unittests virtualmake
378
379 # NetUtilTest: bug #361885.
380 # DnsConfigServiceTest.GetSystemConfig: bug #394883.
381 # CertDatabaseNSSTest.ImportServerCert_SelfSigned: bug #399269.
382 LC_ALL="${mylocale}" VIRTUALX_COMMAND=out/Release/net_unittests virtualmake \
383 '--gtest_filter=-NetUtilTest.IDNToUnicode*:NetUtilTest.FormatUrl*:DnsConfigServiceTest.GetSystemConfig:CertDatabaseNSSTest.ImportServerCert_SelfSigned'
384
385 LC_ALL="${mylocale}" VIRTUALX_COMMAND=out/Release/printing_unittests virtualmake
386 }
387
388 src_install() {
389 exeinto "${CHROMIUM_HOME}"
390 doexe out/Release/chrome || die
391
392 if ! use selinux; then
393 doexe out/Release/chrome_sandbox || die
394 fperms 4755 "${CHROMIUM_HOME}/chrome_sandbox"
395 fi
396
397 doexe out/Release/chromedriver || die
398
399 doexe out/Release/nacl_helper{,_bootstrap} || die
400 insinto "${CHROMIUM_HOME}"
401 doins out/Release/nacl_irt_*.nexe || die
402 doins out/Release/libppGoogleNaClPluginChrome.so || die
403
404 newexe "${FILESDIR}"/chromium-launcher-r2.sh chromium-launcher.sh || die
405 if [[ "${CHROMIUM_SUFFIX}" != "" ]]; then
406 sed "s:chromium-browser:chromium-browser${CHROMIUM_SUFFIX}:g" \
407 -i "${ED}"/"${CHROMIUM_HOME}"/chromium-launcher.sh || die
408 sed "s:chromium.desktop:chromium${CHROMIUM_SUFFIX}.desktop:g" \
409 -i "${ED}"/"${CHROMIUM_HOME}"/chromium-launcher.sh || die
410 sed "s:plugins:plugins --user-data-dir=\${HOME}/.config/chromium${CHROMIUM_SUFFIX}:" \
411 -i "${ED}"/"${CHROMIUM_HOME}"/chromium-launcher.sh || die
412 fi
413
414 # It is important that we name the target "chromium-browser",
415 # xdg-utils expect it; bug #355517.
416 dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium-browser${CHROMIUM_SUFFIX} || die
417 # keep the old symlink around for consistency
418 dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium${CHROMIUM_SUFFIX} || die
419
420 # Allow users to override command-line options, bug #357629.
421 dodir /etc/chromium || die
422 insinto /etc/chromium
423 newins "${FILESDIR}/chromium.default" "default" || die
424
425 pushd out/Release/locales > /dev/null || die
426 chromium_remove_language_paks
427 popd
428
429 insinto "${CHROMIUM_HOME}"
430 doins out/Release/*.pak || die
431
432 doins -r out/Release/locales || die
433 doins -r out/Release/resources || die
434
435 newman out/Release/chrome.1 chromium${CHROMIUM_SUFFIX}.1 || die
436 newman out/Release/chrome.1 chromium-browser${CHROMIUM_SUFFIX}.1 || die
437
438 doexe out/Release/libffmpegsumo.so || die
439
440 # Install icons and desktop entry.
441 for SIZE in 16 22 24 32 48 64 128 256 ; do
442 insinto /usr/share/icons/hicolor/${SIZE}x${SIZE}/apps
443 newins chrome/app/theme/chromium/product_logo_${SIZE}.png \
444 chromium-browser${CHROMIUM_SUFFIX}.png || die
445 done
446 local mime_types="text/html;text/xml;application/xhtml+xml;"
447 mime_types+="x-scheme-handler/http;x-scheme-handler/https;" # bug #360797
448 mime_types+="x-scheme-handler/ftp;" # bug #412185
449 mime_types+="x-scheme-handler/mailto;x-scheme-handler/webcal;" # bug #416393
450 make_desktop_entry \
451 chromium-browser${CHROMIUM_SUFFIX} \
452 "Chromium${CHROMIUM_SUFFIX}" \
453 chromium-browser${CHROMIUM_SUFFIX} \
454 "Network;WebBrowser" \
455 "MimeType=${mime_types}\nStartupWMClass=chromium-browser"
456 sed -e "/^Exec/s/$/ %U/" -i "${ED}"/usr/share/applications/*.desktop || die
457
458 # Install GNOME default application entry (bug #303100).
459 if use gnome; then
460 dodir /usr/share/gnome-control-center/default-apps || die
461 insinto /usr/share/gnome-control-center/default-apps
462 newins "${FILESDIR}"/chromium-browser.xml chromium-browser${CHROMIUM_SUFFIX}.xml || die
463 if [[ "${CHROMIUM_SUFFIX}" != "" ]]; then
464 sed "s:chromium-browser:chromium-browser${CHROMIUM_SUFFIX}:g" -i \
465 "${ED}"/usr/share/gnome-control-center/default-apps/chromium-browser${CHROMIUM_SUFFIX}.xml
466 fi
467 fi
468 }