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-28.0.1490.2.ebuild ChangeLog chromium-9999-r1.ebuild chromium-28.0.1478.0.ebuild
Date: Wed, 01 May 2013 21:25:02
Message-Id: 20130501212455.44C1F2171D@flycatcher.gentoo.org
1 phajdan.jr 13/05/01 21:24:55
2
3 Modified: ChangeLog chromium-9999-r1.ebuild
4 Added: chromium-28.0.1490.2.ebuild
5 Removed: chromium-28.0.1478.0.ebuild
6 Log:
7 Dev channel bump. Remove old.
8
9 (Portage version: 2.1.11.55/cvs/Linux i686, signed Manifest commit with key 30427902)
10
11 Revision Changes Path
12 1.872 www-client/chromium/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?rev=1.872&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?rev=1.872&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?r1=1.871&r2=1.872
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v
21 retrieving revision 1.871
22 retrieving revision 1.872
23 diff -u -r1.871 -r1.872
24 --- ChangeLog 27 Apr 2013 02:40:46 -0000 1.871
25 +++ ChangeLog 1 May 2013 21:24:55 -0000 1.872
26 @@ -1,6 +1,13 @@
27 # ChangeLog for www-client/chromium
28 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.871 2013/04/27 02:40:46 floppym Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.872 2013/05/01 21:24:55 phajdan.jr Exp $
31 +
32 +*chromium-28.0.1490.2 (01 May 2013)
33 +
34 + 01 May 2013; Pawel Hajdan jr <phajdan.jr@g.o>
35 + +files/chromium-shim-headers-r0.patch, -chromium-28.0.1478.0.ebuild,
36 + +chromium-28.0.1490.2.ebuild, chromium-9999-r1.ebuild:
37 + Dev channel bump. Remove old.
38
39 *chromium-27.0.1453.65 (27 Apr 2013)
40
41
42
43
44 1.190 www-client/chromium/chromium-9999-r1.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-9999-r1.ebuild?rev=1.190&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-9999-r1.ebuild?rev=1.190&content-type=text/plain
48 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-9999-r1.ebuild?r1=1.189&r2=1.190
49
50 Index: chromium-9999-r1.ebuild
51 ===================================================================
52 RCS file: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-9999-r1.ebuild,v
53 retrieving revision 1.189
54 retrieving revision 1.190
55 diff -u -r1.189 -r1.190
56 --- chromium-9999-r1.ebuild 23 Apr 2013 00:34:02 -0000 1.189
57 +++ chromium-9999-r1.ebuild 1 May 2013 21:24:55 -0000 1.190
58 @@ -1,6 +1,6 @@
59 # Copyright 1999-2013 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-r1.ebuild,v 1.189 2013/04/23 00:34:02 phajdan.jr Exp $
62 +# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-9999-r1.ebuild,v 1.190 2013/05/01 21:24:55 phajdan.jr Exp $
63
64 EAPI="5"
65 PYTHON_COMPAT=( python{2_6,2_7} )
66 @@ -411,6 +411,7 @@
67 # Tools for building programs to be executed on the build system, bug #410883.
68 tc-export_build_env BUILD_AR BUILD_CC BUILD_CXX
69
70 + build/linux/unbundle/replace_gyp_files.py ${myconf} || die
71 egyp_chromium ${myconf} || die
72 }
73
74
75
76
77 1.1 www-client/chromium/chromium-28.0.1490.2.ebuild
78
79 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-28.0.1490.2.ebuild?rev=1.1&view=markup
80 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-28.0.1490.2.ebuild?rev=1.1&content-type=text/plain
81
82 Index: chromium-28.0.1490.2.ebuild
83 ===================================================================
84 # Copyright 1999-2013 Gentoo Foundation
85 # Distributed under the terms of the GNU General Public License v2
86 # $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-28.0.1490.2.ebuild,v 1.1 2013/05/01 21:24:55 phajdan.jr Exp $
87
88 EAPI="5"
89 PYTHON_COMPAT=( python{2_6,2_7} )
90
91 CHROMIUM_LANGS="am ar bg bn ca cs da de el en_GB es es_LA et fa fi fil fr gu he
92 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
93 sv sw ta te th tr uk vi zh_CN zh_TW"
94
95 inherit chromium eutils flag-o-matic multilib \
96 pax-utils portability python-any-r1 toolchain-funcs versionator virtualx
97
98 DESCRIPTION="Open-source version of Google Chrome web browser"
99 HOMEPAGE="http://chromium.org/"
100 SRC_URI="https://commondatastorage.googleapis.com/chromium-browser-official/${P}-lite.tar.xz
101 test? ( https://commondatastorage.googleapis.com/chromium-browser-official/${P}-testdata.tar.xz )"
102
103 LICENSE="BSD"
104 SLOT="0"
105 KEYWORDS="~amd64 ~x86"
106 IUSE="bindist cups gnome gnome-keyring gps kerberos pulseaudio selinux +system-ffmpeg system-sqlite tcmalloc"
107
108 # Native Client binaries are compiled with different set of flags, bug #452066.
109 QA_FLAGS_IGNORED=".*\.nexe"
110
111 RDEPEND=">=app-accessibility/speech-dispatcher-0.8:=
112 app-arch/bzip2:=
113 system-sqlite? ( dev-db/sqlite:3 )
114 cups? (
115 dev-libs/libgcrypt:=
116 >=net-print/cups-1.3.11:=
117 )
118 >=dev-lang/v8-3.17.6:=
119 =dev-lang/v8-3.18*
120 >=dev-libs/elfutils-0.149
121 dev-libs/expat:=
122 >=dev-libs/icu-49.1.1-r1:=
123 >=dev-libs/jsoncpp-0.5.0-r1:=
124 >=dev-libs/libevent-1.4.13:=
125 dev-libs/libxml2:=[icu]
126 dev-libs/libxslt:=
127 dev-libs/nspr:=
128 >=dev-libs/nss-3.12.3:=
129 dev-libs/protobuf:=
130 dev-libs/re2:=
131 gnome? ( >=gnome-base/gconf-2.24.0:= )
132 gnome-keyring? ( >=gnome-base/gnome-keyring-2.28.2:= )
133 gps? ( >=sci-geosciences/gpsd-3.7:=[shm] )
134 >=media-libs/alsa-lib-1.0.19:=
135 media-libs/flac:=
136 media-libs/harfbuzz:=
137 >=media-libs/libjpeg-turbo-1.2.0-r1:=
138 media-libs/libpng:0=
139 media-libs/libvpx:=
140 >=media-libs/libwebp-0.2.0_rc1:=
141 !arm? ( !x86? ( >=media-libs/mesa-9.1:=[gles2] ) )
142 media-libs/opus:=
143 media-libs/speex:=
144 pulseaudio? ( media-sound/pulseaudio:= )
145 system-ffmpeg? ( >=media-video/ffmpeg-1.0:=[opus] )
146 sys-apps/dbus:=
147 sys-apps/pciutils:=
148 sys-libs/zlib:=[minizip]
149 virtual/udev
150 virtual/libusb:1=
151 x11-libs/gtk+:2=
152 x11-libs/libXinerama:=
153 x11-libs/libXScrnSaver:=
154 x11-libs/libXtst:=
155 kerberos? ( virtual/krb5 )
156 selinux? (
157 sec-policy/selinux-chromium
158 sys-libs/libselinux:=
159 )"
160 DEPEND="${RDEPEND}
161 ${PYTHON_DEPS}
162 !arm? (
163 >=dev-lang/nacl-toolchain-newlib-0_p9093
164 dev-lang/yasm
165 )
166 dev-lang/perl
167 dev-python/ply
168 dev-python/simplejson
169 >=dev-util/gperf-3.0.3
170 sys-apps/hwids
171 >=sys-devel/bison-2.4.3
172 sys-devel/flex
173 >=sys-devel/make-3.81-r2
174 virtual/pkgconfig
175 test? ( dev-python/pyftpdlib )"
176 RDEPEND+="
177 !=www-client/chromium-9999
178 x11-misc/xdg-utils
179 virtual/ttf-fonts"
180
181 if ! has chromium_pkg_die ${EBUILD_DEATH_HOOKS}; then
182 EBUILD_DEATH_HOOKS+=" chromium_pkg_die";
183 fi
184
185 pkg_setup() {
186 if [[ "${SLOT}" == "0" ]]; then
187 CHROMIUM_SUFFIX=""
188 else
189 CHROMIUM_SUFFIX="-${SLOT}"
190 fi
191 CHROMIUM_HOME="/usr/$(get_libdir)/chromium-browser${CHROMIUM_SUFFIX}"
192
193 # Make sure the build system will use the right python, bug #344367.
194 python-any-r1_pkg_setup
195
196 if ! use selinux; then
197 chromium_suid_sandbox_check_kernel_config
198 fi
199
200 if use bindist && ! use system-ffmpeg; then
201 elog "bindist enabled: H.264 video support will be disabled."
202 fi
203 if ! use bindist; then
204 elog "bindist disabled: Resulting binaries may not be legal to re-distribute."
205 fi
206 }
207
208 src_prepare() {
209 if ! use arm; then
210 mkdir -p out/Release/obj/gen/sdk/toolchain || die
211 # Do not preserve SELinux context, bug #460892 .
212 cp -a --no-preserve=context /usr/$(get_libdir)/nacl-toolchain-newlib \
213 out/Release/obj/gen/sdk/toolchain/linux_x86_newlib || die
214 touch out/Release/obj/gen/sdk/toolchain/linux_x86_newlib/stamp.untar || die
215 fi
216
217 epatch "${FILESDIR}/${PN}-gpsd-r0.patch"
218 epatch "${FILESDIR}/${PN}-system-ffmpeg-r4.patch"
219
220 # Fix build with system libraries, to be upstreamed.
221 epatch "${FILESDIR}/${PN}-shim-headers-r0.patch"
222
223 epatch_user
224
225 # Remove most bundled libraries. Some are still needed.
226 find third_party -type f \! -iname '*.gyp*' \
227 \! -path 'third_party/WebKit/*' \
228 \! -path 'third_party/angle/*' \
229 \! -path 'third_party/cacheinvalidation/*' \
230 \! -path 'third_party/cld/*' \
231 \! -path 'third_party/cros_system_api/*' \
232 \! -path 'third_party/ffmpeg/*' \
233 \! -path 'third_party/flot/*' \
234 \! -path 'third_party/hunspell/*' \
235 \! -path 'third_party/hyphen/*' \
236 \! -path 'third_party/iccjpeg/*' \
237 \! -path 'third_party/jstemplate/*' \
238 \! -path 'third_party/khronos/*' \
239 \! -path 'third_party/leveldatabase/*' \
240 \! -path 'third_party/libjingle/*' \
241 \! -path 'third_party/libphonenumber/*' \
242 \! -path 'third_party/libsrtp/*' \
243 \! -path 'third_party/libxml/chromium/*' \
244 \! -path 'third_party/libXNVCtrl/*' \
245 \! -path 'third_party/libyuv/*' \
246 \! -path 'third_party/lss/*' \
247 \! -path 'third_party/mesa/*' \
248 \! -path 'third_party/modp_b64/*' \
249 \! -path 'third_party/mongoose/*' \
250 \! -path 'third_party/mt19937ar/*' \
251 \! -path 'third_party/npapi/*' \
252 \! -path 'third_party/openmax/*' \
253 \! -path 'third_party/ots/*' \
254 \! -path 'third_party/pywebsocket/*' \
255 \! -path 'third_party/qcms/*' \
256 \! -path 'third_party/sfntly/*' \
257 \! -path 'third_party/skia/*' \
258 \! -path 'third_party/smhasher/*' \
259 \! -path 'third_party/sqlite/*' \
260 \! -path 'third_party/tcmalloc/*' \
261 \! -path 'third_party/tlslite/*' \
262 \! -path 'third_party/trace-viewer/*' \
263 \! -path 'third_party/undoview/*' \
264 \! -path 'third_party/v8-i18n/*' \
265 \! -path 'third_party/webdriver/*' \
266 \! -path 'third_party/webrtc/*' \
267 \! -path 'third_party/widevine/*' \
268 \! -path 'third_party/x86inc/*' \
269 -delete || die
270
271 # Remove bundled v8.
272 find v8 -type f \! -iname '*.gyp*' -delete || die
273 }
274
275 src_configure() {
276 local myconf=""
277
278 # Never tell the build system to "enable" SSE2, it has a few unexpected
279 # additions, bug #336871.
280 myconf+=" -Ddisable_sse2=1"
281
282 # Optional tcmalloc. Note it causes problems with e.g. NVIDIA
283 # drivers, bug #413637.
284 myconf+=" $(gyp_use tcmalloc linux_use_tcmalloc)"
285
286 # Disable glibc Native Client toolchain, we don't need it (bug #417019).
287 myconf+=" -Ddisable_glibc=1"
288
289 # TODO: also build with pnacl
290 myconf+=" -Ddisable_pnacl=1"
291
292 # It would be awkward for us to tar the toolchain and get it untarred again
293 # during the build.
294 myconf+=" -Ddisable_newlib_untar=1"
295
296 # Make it possible to remove third_party/adobe.
297 echo > "${T}/flapper_version.h" || die
298 myconf+=" -Dflapper_version_h_file=${T}/flapper_version.h"
299
300 # Use system-provided libraries.
301 # TODO: use_system_hunspell (upstream changes needed).
302 # TODO: use_system_libsrtp (bug #459932).
303 # TODO: use_system_ssl (http://crbug.com/58087).
304 # TODO: use_system_sqlite (http://crbug.com/22208).
305 myconf+="
306 -Duse_system_bzip2=1
307 -Duse_system_flac=1
308 -Duse_system_harfbuzz=1
309 -Duse_system_icu=1
310 -Duse_system_jsoncpp=1
311 -Duse_system_libevent=1
312 -Duse_system_libjpeg=1
313 -Duse_system_libpng=1
314 -Duse_system_libusb=1
315 -Duse_system_libvpx=1
316 -Duse_system_libwebp=1
317 -Duse_system_libxml=1
318 -Duse_system_minizip=1
319 -Duse_system_nspr=1
320 -Duse_system_opus=1
321 -Duse_system_protobuf=1
322 -Duse_system_re2=1
323 -Duse_system_speex=1
324 -Duse_system_v8=1
325 -Duse_system_xdg_utils=1
326 -Duse_system_zlib=1
327 $(gyp_use system-ffmpeg use_system_ffmpeg)"
328
329 # TODO: Use system mesa on x86, bug #457130 .
330 if ! use x86 && ! use arm; then
331 myconf+="
332 -Duse_system_mesa=1"
333 fi
334
335 # TODO: patch gyp so that this arm conditional is not needed.
336 if ! use arm; then
337 myconf+="
338 -Duse_system_yasm=1"
339 fi
340
341 # TODO: re-enable on vp9 libvpx release (http://crbug.com/174287).
342 myconf+="
343 -Dmedia_use_libvpx=0"
344
345 # Optional dependencies.
346 # TODO: linux_link_kerberos, bug #381289.
347 myconf+="
348 $(gyp_use cups)
349 $(gyp_use gnome use_gconf)
350 $(gyp_use gnome-keyring use_gnome_keyring)
351 $(gyp_use gnome-keyring linux_link_gnome_keyring)
352 $(gyp_use gps linux_use_libgps)
353 $(gyp_use gps linux_link_libgps)
354 $(gyp_use kerberos)
355 $(gyp_use pulseaudio)
356 $(gyp_use selinux selinux)"
357
358 if use system-sqlite; then
359 elog "Enabling system sqlite. WebSQL - http://www.w3.org/TR/webdatabase/"
360 elog "will not work. Please report sites broken by this"
361 elog "to https://bugs.gentoo.org"
362 myconf+="
363 -Duse_system_sqlite=1
364 -Denable_sql_database=0"
365 fi
366
367 # Use explicit library dependencies instead of dlopen.
368 # This makes breakages easier to detect by revdep-rebuild.
369 myconf+="
370 -Dlinux_link_gsettings=1
371 -Dlinux_link_libpci=1
372 -Dlinux_link_libspeechd=1
373 -Dlibspeechd_h_prefix=speech-dispatcher/"
374
375 # TODO: use the file at run time instead of effectively compiling it in.
376 myconf+="
377 -Dusb_ids_path=/usr/share/misc/usb.ids"
378
379 if ! use selinux; then
380 # Enable SUID sandbox.
381 myconf+="
382 -Dlinux_sandbox_path=${CHROMIUM_HOME}/chrome_sandbox
383 -Dlinux_sandbox_chrome_path=${CHROMIUM_HOME}/chrome"
384 fi
385
386 # Never use bundled gold binary. Disable gold linker flags for now.
387 myconf+="
388 -Dlinux_use_gold_binary=0
389 -Dlinux_use_gold_flags=0"
390
391 # Always support proprietary codecs.
392 myconf+=" -Dproprietary_codecs=1"
393
394 if ! use bindist && ! use system-ffmpeg; then
395 # Enable H.624 support in bundled ffmpeg.
396 myconf+=" -Dffmpeg_branding=Chrome"
397 fi
398
399 # Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys .
400 # Note: these are for Gentoo use ONLY. For your own distribution,
401 # please get your own set of keys. Feel free to contact chromium@g.o
402 # for more info.
403 myconf+=" -Dgoogle_api_key=AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc
404 -Dgoogle_default_client_id=329227923882.apps.googleusercontent.com
405 -Dgoogle_default_client_secret=vgKG0NNv7GoDpbtoFNLxCUXu"
406
407 local myarch="$(tc-arch)"
408 if [[ $myarch = amd64 ]] ; then
409 myconf+=" -Dtarget_arch=x64"
410 elif [[ $myarch = x86 ]] ; then
411 myconf+=" -Dtarget_arch=ia32"
412 elif [[ $myarch = arm ]] ; then
413 # TODO: re-enable NaCl (NativeClient).
414 myconf+=" -Dtarget_arch=arm
415 -Dsysroot=
416 -Darmv7=0
417 -Darm_neon=0
418 -Ddisable_nacl=1"
419 else
420 die "Failed to determine target arch, got '$myarch'."
421 fi
422
423 # Make sure that -Werror doesn't get added to CFLAGS by the build system.
424 # Depending on GCC version the warnings are different and we don't want
425 # the build to fail because of that.
426 myconf+=" -Dwerror="
427
428 # Avoid CFLAGS problems, bug #352457, bug #390147.
429 if ! use custom-cflags; then
430 replace-flags "-Os" "-O2"
431 strip-flags
432 fi
433
434 # Make sure the build system will use the right tools, bug #340795.
435 tc-export AR CC CXX RANLIB
436
437 # Tools for building programs to be executed on the build system, bug #410883.
438 tc-export_build_env BUILD_AR BUILD_CC BUILD_CXX
439
440 build/linux/unbundle/replace_gyp_files.py ${myconf} || die
441 egyp_chromium ${myconf} || die
442 }
443
444 src_compile() {
445 # TODO: add media_unittests after fixing compile (bug #462546).
446 local test_targets=""
447 for x in base cacheinvalidation content crypto \
448 googleurl gpu net printing sql; do
449 test_targets+=" ${x}_unittests"
450 done
451
452 local make_targets="chrome chromedriver"
453 if ! use selinux; then
454 make_targets+=" chrome_sandbox"
455 fi
456 if use test; then
457 make_targets+=" $test_targets"
458 fi
459
460 # See bug #410883 for more info about the .host mess.
461 emake ${make_targets} BUILDTYPE=Release V=1 \
462 CC.host="${BUILD_CC}" CFLAGS.host="${BUILD_CFLAGS}" \
463 CXX.host="${BUILD_CXX}" CXXFLAGS.host="${BUILD_CXXFLAGS}" \
464 LINK.host="${BUILD_CXX}" LDFLAGS.host="${BUILD_LDFLAGS}" \
465 AR.host="${BUILD_AR}" || die
466
467 pax-mark m out/Release/chrome
468 if use test; then
469 for x in $test_targets; do
470 pax-mark m out/Release/${x}
471 done
472 fi
473 }
474
475 src_test() {
476 # For more info see bug #350349.
477 local mylocale='en_US.utf8'
478 if ! locale -a | grep -q "$mylocale"; then
479 eerror "${PN} requires ${mylocale} locale for tests"
480 eerror "Please read the following guides for more information:"
481 eerror " http://www.gentoo.org/doc/en/guide-localization.xml"
482 eerror " http://www.gentoo.org/doc/en/utf-8.xml"
483 die "locale ${mylocale} is not supported"
484 fi
485
486 # For more info see bug #370957.
487 if [[ $UID -eq 0 ]]; then
488 die "Tests must be run as non-root. Please use FEATURES=userpriv."
489 fi
490
491 runtest() {
492 local cmd=$1
493 shift
494 local filter="--gtest_filter=$(IFS=:; echo "-${*}")"
495 einfo "${cmd}" "${filter}"
496 LC_ALL="${mylocale}" VIRTUALX_COMMAND="${cmd}" virtualmake "${filter}"
497 }
498
499 local excluded_base_unittests=(
500 "ICUStringConversionsTest.*" # bug #350347
501 "MessagePumpLibeventTest.*" # bug #398591
502 "TimeTest.JsTime" # bug #459614
503 "SecurityTest.NewOverflow" # bug #465724
504 )
505 runtest out/Release/base_unittests "${excluded_base_unittests[@]}"
506
507 runtest out/Release/cacheinvalidation_unittests
508
509 local excluded_content_unittests=(
510 "RendererDateTimePickerTest.*" # bug #465452
511 )
512 runtest out/Release/content_unittests "${excluded_content_unittests[@]}"
513
514 runtest out/Release/crypto_unittests
515 runtest out/Release/googleurl_unittests
516 runtest out/Release/gpu_unittests
517
518 # TODO: add media_unittests after fixing compile (bug #462546).
519 # runtest out/Release/media_unittests
520
521 local excluded_net_unittests=(
522 "NetUtilTest.IDNToUnicode*" # bug 361885
523 "NetUtilTest.FormatUrl*" # see above
524 "DnsConfigServiceTest.GetSystemConfig" # bug #394883
525 "CertDatabaseNSSTest.ImportServerCert_SelfSigned" # bug #399269
526 "CertDatabaseNSSTest.TrustIntermediateCa*" # http://crbug.com/224612
527 "URLFetcher*" # bug #425764
528 "HTTPSOCSPTest.*" # bug #426630
529 "HTTPSEVCRLSetTest.*" # see above
530 "HTTPSCRLSetTest.*" # see above
531 "*SpdyFramerTest.BasicCompression*" # bug #465444
532 )
533 runtest out/Release/net_unittests "${excluded_net_unittests[@]}"
534
535 runtest out/Release/printing_unittests
536
537 local excluded_sql_unittests=(
538 "SQLiteFeaturesTest.FTS2" # bug #461286
539 )
540 runtest out/Release/sql_unittests "${excluded_sql_unittests[@]}"
541 }
542
543 src_install() {
544 exeinto "${CHROMIUM_HOME}"
545 doexe out/Release/chrome || die
546
547 if ! use selinux; then
548 doexe out/Release/chrome_sandbox || die
549 fperms 4755 "${CHROMIUM_HOME}/chrome_sandbox"
550 fi
551
552 doexe out/Release/chromedriver || die
553
554 if ! use arm; then
555 doexe out/Release/nacl_helper{,_bootstrap} || die
556 insinto "${CHROMIUM_HOME}"
557 doins out/Release/nacl_irt_*.nexe || die
558 doins out/Release/libppGoogleNaClPluginChrome.so || die
559 fi
560
561 newexe "${FILESDIR}"/chromium-launcher-r3.sh chromium-launcher.sh || die
562 if [[ "${CHROMIUM_SUFFIX}" != "" ]]; then
563 sed "s:chromium-browser:chromium-browser${CHROMIUM_SUFFIX}:g" \
564 -i "${ED}"/"${CHROMIUM_HOME}"/chromium-launcher.sh || die
565 sed "s:chromium.desktop:chromium${CHROMIUM_SUFFIX}.desktop:g" \
566 -i "${ED}"/"${CHROMIUM_HOME}"/chromium-launcher.sh || die
567 sed "s:plugins:plugins --user-data-dir=\${HOME}/.config/chromium${CHROMIUM_SUFFIX}:" \
568 -i "${ED}"/"${CHROMIUM_HOME}"/chromium-launcher.sh || die
569 fi
570
571 # It is important that we name the target "chromium-browser",
572 # xdg-utils expect it; bug #355517.
573 dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium-browser${CHROMIUM_SUFFIX} || die
574 # keep the old symlink around for consistency
575 dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium${CHROMIUM_SUFFIX} || die
576
577 # Allow users to override command-line options, bug #357629.
578 dodir /etc/chromium || die
579 insinto /etc/chromium
580 newins "${FILESDIR}/chromium.default" "default" || die
581
582 pushd out/Release/locales > /dev/null || die
583 chromium_remove_language_paks
584 popd
585
586 insinto "${CHROMIUM_HOME}"
587 doins out/Release/*.pak || die
588
589 doins -r out/Release/locales || die
590 doins -r out/Release/resources || die
591
592 newman out/Release/chrome.1 chromium${CHROMIUM_SUFFIX}.1 || die
593 newman out/Release/chrome.1 chromium-browser${CHROMIUM_SUFFIX}.1 || die
594
595 if ! use system-ffmpeg; then
596 doexe out/Release/libffmpegsumo.so || die
597 fi
598
599 # Install icons and desktop entry.
600 local branding size
601 for size in 16 22 24 32 48 64 128 256 ; do
602 case ${size} in
603 16|32) branding="chrome/app/theme/default_100_percent/chromium" ;;
604 *) branding="chrome/app/theme/chromium" ;;
605 esac
606 newicon -s ${size} "${branding}/product_logo_${size}.png" \
607 chromium-browser${CHROMIUM_SUFFIX}.png
608 done
609
610 local mime_types="text/html;text/xml;application/xhtml+xml;"
611 mime_types+="x-scheme-handler/http;x-scheme-handler/https;" # bug #360797
612 mime_types+="x-scheme-handler/ftp;" # bug #412185
613 mime_types+="x-scheme-handler/mailto;x-scheme-handler/webcal;" # bug #416393
614 make_desktop_entry \
615 chromium-browser${CHROMIUM_SUFFIX} \
616 "Chromium${CHROMIUM_SUFFIX}" \
617 chromium-browser${CHROMIUM_SUFFIX} \
618 "Network;WebBrowser" \
619 "MimeType=${mime_types}\nStartupWMClass=chromium-browser"
620 sed -e "/^Exec/s/$/ %U/" -i "${ED}"/usr/share/applications/*.desktop || die
621
622 # Install GNOME default application entry (bug #303100).
623 if use gnome; then
624 dodir /usr/share/gnome-control-center/default-apps || die
625 insinto /usr/share/gnome-control-center/default-apps
626 newins "${FILESDIR}"/chromium-browser.xml chromium-browser${CHROMIUM_SUFFIX}.xml || die
627 if [[ "${CHROMIUM_SUFFIX}" != "" ]]; then
628 sed "s:chromium-browser:chromium-browser${CHROMIUM_SUFFIX}:g" -i \
629 "${ED}"/usr/share/gnome-control-center/default-apps/chromium-browser${CHROMIUM_SUFFIX}.xml
630 fi
631 fi
632 }