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