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-41.0.2272.35.ebuild ChangeLog
Date: Thu, 05 Feb 2015 02:14:18
Message-Id: 20150205021415.7455C11135@oystercatcher.gentoo.org
1 floppym 15/02/05 02:14:15
2
3 Modified: ChangeLog
4 Added: chromium-41.0.2272.35.ebuild
5 Log:
6 Beta channel bump.
7
8 (Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key 0BBEEA1FEA4843A4)
9
10 Revision Changes Path
11 1.1192 www-client/chromium/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?rev=1.1192&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?rev=1.1192&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?r1=1.1191&r2=1.1192
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v
20 retrieving revision 1.1191
21 retrieving revision 1.1192
22 diff -u -r1.1191 -r1.1192
23 --- ChangeLog 29 Jan 2015 21:19:52 -0000 1.1191
24 +++ ChangeLog 5 Feb 2015 02:14:15 -0000 1.1192
25 @@ -1,6 +1,11 @@
26 # ChangeLog for www-client/chromium
27 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.1191 2015/01/29 21:19:52 phajdan.jr Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.1192 2015/02/05 02:14:15 floppym Exp $
30 +
31 +*chromium-41.0.2272.35 (05 Feb 2015)
32 +
33 + 05 Feb 2015; Mike Gilbert <floppym@g.o> +chromium-41.0.2272.35.ebuild:
34 + Beta channel bump.
35
36 *chromium-42.0.2288.6 (29 Jan 2015)
37
38
39
40
41 1.1 www-client/chromium/chromium-41.0.2272.35.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-41.0.2272.35.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-41.0.2272.35.ebuild?rev=1.1&content-type=text/plain
45
46 Index: chromium-41.0.2272.35.ebuild
47 ===================================================================
48 # Copyright 1999-2015 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-41.0.2272.35.ebuild,v 1.1 2015/02/05 02:14:15 floppym Exp $
51
52 EAPI="5"
53 PYTHON_COMPAT=( python{2_6,2_7} )
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 multiprocessing pax-utils \
60 portability python-any-r1 readme.gentoo toolchain-funcs versionator virtualx
61
62 DESCRIPTION="Open-source version of Google Chrome web browser"
63 HOMEPAGE="http://chromium.org/"
64 SRC_URI="https://commondatastorage.googleapis.com/chromium-browser-official/${P}-lite.tar.xz"
65
66 LICENSE="BSD"
67 SLOT="0"
68 KEYWORDS="~amd64 ~arm ~x86"
69 IUSE="bindist cups gnome gnome-keyring hidpi kerberos neon pic pulseaudio selinux +tcmalloc"
70 RESTRICT="!bindist? ( bindist )"
71
72 # Native Client binaries are compiled with different set of flags, bug #452066.
73 QA_FLAGS_IGNORED=".*\.nexe"
74
75 # Native Client binaries may be stripped by the build system, which uses the
76 # right tools for it, bug #469144 .
77 QA_PRESTRIPPED=".*\.nexe"
78
79 RDEPEND=">=app-accessibility/speech-dispatcher-0.8:=
80 app-arch/bzip2:=
81 app-arch/snappy:=
82 cups? (
83 dev-libs/libgcrypt:0=
84 >=net-print/cups-1.3.11:=
85 )
86 >=dev-libs/elfutils-0.149
87 dev-libs/expat:=
88 dev-libs/glib:=
89 dev-libs/icu:=
90 >=dev-libs/jsoncpp-0.5.0-r1:=
91 >=dev-libs/libevent-1.4.13:=
92 dev-libs/libxml2:=[icu]
93 dev-libs/libxslt:=
94 dev-libs/nspr:=
95 >=dev-libs/nss-3.14.3:=
96 dev-libs/re2:=
97 gnome? ( >=gnome-base/gconf-2.24.0:= )
98 gnome-keyring? ( >=gnome-base/libgnome-keyring-3.12:= )
99 >=media-libs/alsa-lib-1.0.19:=
100 media-libs/flac:=
101 media-libs/fontconfig:=
102 media-libs/freetype:=
103 media-libs/harfbuzz:=[icu(+)]
104 media-libs/libexif:=
105 >=media-libs/libjpeg-turbo-1.2.0-r1:=
106 media-libs/libpng:0=
107 >=media-libs/libwebp-0.4.0:=
108 media-libs/speex:=
109 pulseaudio? ( media-sound/pulseaudio:= )
110 sys-apps/dbus:=
111 sys-apps/pciutils:=
112 >=sys-libs/libcap-2.22:=
113 sys-libs/zlib:=[minizip]
114 virtual/udev
115 x11-libs/cairo:=
116 x11-libs/gdk-pixbuf:=
117 x11-libs/gtk+:2=
118 x11-libs/libdrm
119 x11-libs/libX11:=
120 x11-libs/libXcomposite:=
121 x11-libs/libXcursor:=
122 x11-libs/libXdamage:=
123 x11-libs/libXext:=
124 x11-libs/libXfixes:=
125 >=x11-libs/libXi-1.6.0:=
126 x11-libs/libXinerama:=
127 x11-libs/libXrandr:=
128 x11-libs/libXrender:=
129 x11-libs/libXScrnSaver:=
130 x11-libs/libXtst:=
131 x11-libs/pango:=
132 kerberos? ( virtual/krb5 )"
133 DEPEND="${RDEPEND}
134 !arm? (
135 dev-lang/yasm
136 )
137 dev-lang/perl
138 dev-perl/JSON
139 >=dev-util/gperf-3.0.3
140 dev-util/ninja
141 sys-apps/hwids[usb(+)]
142 >=sys-devel/bison-2.4.3
143 sys-devel/flex
144 virtual/pkgconfig"
145 # For nvidia-drivers blocker, see bug #413637 .
146 RDEPEND+="
147 !=www-client/chromium-9999
148 !<www-plugins/chrome-binary-plugins-37
149 x11-misc/xdg-utils
150 virtual/opengl
151 virtual/ttf-fonts
152 selinux? ( sec-policy/selinux-chromium )
153 tcmalloc? ( !<x11-drivers/nvidia-drivers-331.20 )"
154
155 # Python dependencies. The DEPEND part needs to be kept in sync
156 # with python_check_deps.
157 DEPEND+=" $(python_gen_any_dep '
158 dev-python/beautifulsoup:python-2[${PYTHON_USEDEP}]
159 dev-python/jinja[${PYTHON_USEDEP}]
160 dev-python/ply[${PYTHON_USEDEP}]
161 dev-python/simplejson[${PYTHON_USEDEP}]
162 ')"
163 python_check_deps() {
164 has_version "dev-python/beautifulsoup:python-2[${PYTHON_USEDEP}]" && \
165 has_version "dev-python/jinja[${PYTHON_USEDEP}]" && \
166 has_version "dev-python/ply[${PYTHON_USEDEP}]" && \
167 has_version "dev-python/simplejson[${PYTHON_USEDEP}]"
168 }
169
170 if ! has chromium_pkg_die ${EBUILD_DEATH_HOOKS}; then
171 EBUILD_DEATH_HOOKS+=" chromium_pkg_die";
172 fi
173
174 DISABLE_AUTOFORMATTING="yes"
175 DOC_CONTENTS="
176 Some web pages may require additional fonts to display properly.
177 Try installing some of the following packages if some characters
178 are not displayed properly:
179 - media-fonts/arphicfonts
180 - media-fonts/bitstream-cyberbit
181 - media-fonts/droid
182 - media-fonts/ipamonafont
183 - media-fonts/ja-ipafonts
184 - media-fonts/takao-fonts
185 - media-fonts/wqy-microhei
186 - media-fonts/wqy-zenhei
187
188 Depending on your desktop environment, you may need
189 to install additional packages to get icons on the Downloads page.
190
191 For KDE, the required package is kde-base/oxygen-icons.
192
193 For other desktop environments, try one of the following:
194 - x11-themes/gnome-icon-theme
195 - x11-themes/tango-icon-theme
196 "
197
198 pkg_pretend() {
199 if [[ $(tc-getCC)$ == *gcc* ]] && \
200 [[ $(gcc-major-version)$(gcc-minor-version) -lt 48 ]]; then
201 die 'At least gcc 4.8 is required, see bugs: #535730, #525374, #518668.'
202 fi
203 }
204
205 pkg_setup() {
206 if [[ "${SLOT}" == "0" ]]; then
207 CHROMIUM_SUFFIX=""
208 else
209 CHROMIUM_SUFFIX="-${SLOT}"
210 fi
211 CHROMIUM_HOME="/usr/$(get_libdir)/chromium-browser${CHROMIUM_SUFFIX}"
212
213 # Make sure the build system will use the right python, bug #344367.
214 python-any-r1_pkg_setup
215
216 chromium_suid_sandbox_check_kernel_config
217
218 if use bindist; then
219 elog "bindist enabled: H.264 video support will be disabled."
220 else
221 elog "bindist disabled: Resulting binaries may not be legal to re-distribute."
222 fi
223 }
224
225 src_prepare() {
226 # if ! use arm; then
227 # mkdir -p out/Release/gen/sdk/toolchain || die
228 # # Do not preserve SELinux context, bug #460892 .
229 # cp -a --no-preserve=context /usr/$(get_libdir)/nacl-toolchain-newlib \
230 # out/Release/gen/sdk/toolchain/linux_x86_newlib || die
231 # touch out/Release/gen/sdk/toolchain/linux_x86_newlib/stamp.untar || die
232 # fi
233
234 epatch "${FILESDIR}/${PN}-system-jinja-r7.patch"
235 epatch "${FILESDIR}/${PN}-cups-r0.patch"
236
237 epatch_user
238
239 # Remove most bundled libraries. Some are still needed.
240 build/linux/unbundle/remove_bundled_libraries.py \
241 'base/third_party/dmg_fp' \
242 'base/third_party/dynamic_annotations' \
243 'base/third_party/icu' \
244 'base/third_party/nspr' \
245 'base/third_party/superfasthash' \
246 'base/third_party/symbolize' \
247 'base/third_party/valgrind' \
248 'base/third_party/xdg_mime' \
249 'base/third_party/xdg_user_dirs' \
250 'breakpad/src/third_party/curl' \
251 'chrome/third_party/mozilla_security_manager' \
252 'courgette/third_party' \
253 'crypto/third_party/nss' \
254 'net/third_party/mozilla_security_manager' \
255 'net/third_party/nss' \
256 'third_party/WebKit' \
257 'third_party/angle' \
258 'third_party/angle/src/third_party/compiler' \
259 'third_party/brotli' \
260 'third_party/cacheinvalidation' \
261 'third_party/cld_2' \
262 'third_party/cros_system_api' \
263 'third_party/cython/python_flags.py' \
264 'third_party/dom_distiller_js' \
265 'third_party/dom_distiller_js/package/proto_gen/third_party/dom_distiller_js' \
266 'third_party/ffmpeg' \
267 'third_party/fips181' \
268 'third_party/flot' \
269 'third_party/google_input_tools' \
270 'third_party/google_input_tools/third_party/closure_library' \
271 'third_party/google_input_tools/third_party/closure_library/third_party/closure' \
272 'third_party/hunspell' \
273 'third_party/iccjpeg' \
274 'third_party/jstemplate' \
275 'third_party/khronos' \
276 'third_party/leveldatabase' \
277 'third_party/libaddressinput' \
278 'third_party/libjingle' \
279 'third_party/libphonenumber' \
280 'third_party/libsrtp' \
281 'third_party/libudev' \
282 'third_party/libusb' \
283 'third_party/libvpx' \
284 'third_party/libvpx/source/libvpx/third_party/x86inc' \
285 'third_party/libxml/chromium' \
286 'third_party/libXNVCtrl' \
287 'third_party/libyuv' \
288 'third_party/lss' \
289 'third_party/lzma_sdk' \
290 'third_party/mesa' \
291 'third_party/modp_b64' \
292 'third_party/mt19937ar' \
293 'third_party/npapi' \
294 'third_party/openmax_dl' \
295 'third_party/opus' \
296 'third_party/ots' \
297 'third_party/pdfium' \
298 'third_party/pdfium/third_party/bigint' \
299 'third_party/pdfium/third_party/freetype' \
300 'third_party/pdfium/third_party/logging.h' \
301 'third_party/pdfium/third_party/macros.h' \
302 'third_party/pdfium/third_party/numerics' \
303 'third_party/pdfium/third_party/template_util.h' \
304 'third_party/polymer' \
305 'third_party/protobuf' \
306 'third_party/qcms' \
307 'third_party/readability' \
308 'third_party/sfntly' \
309 'third_party/skia' \
310 'third_party/smhasher' \
311 'third_party/sqlite' \
312 'third_party/tcmalloc' \
313 'third_party/tlslite' \
314 'third_party/trace-viewer' \
315 'third_party/trace-viewer/third_party/components/polymer' \
316 'third_party/trace-viewer/third_party/d3' \
317 'third_party/trace-viewer/third_party/gl-matrix' \
318 'third_party/trace-viewer/third_party/jszip' \
319 'third_party/trace-viewer/third_party/tvcm' \
320 'third_party/trace-viewer/third_party/tvcm/third_party/beautifulsoup/polymer_soup.py' \
321 'third_party/undoview' \
322 'third_party/usrsctp' \
323 'third_party/webdriver' \
324 'third_party/webrtc' \
325 'third_party/widevine' \
326 'third_party/x86inc' \
327 'third_party/zlib/google' \
328 'url/third_party/mozilla' \
329 'v8/src/third_party/fdlibm' \
330 'v8/src/third_party/kernel' \
331 'v8/src/third_party/valgrind' \
332 --do-remove || die
333 }
334
335 src_configure() {
336 local myconf=""
337
338 # Never tell the build system to "enable" SSE2, it has a few unexpected
339 # additions, bug #336871.
340 myconf+=" -Ddisable_sse2=1"
341
342 # Disable nacl, we can't build without pnacl (http://crbug.com/269560).
343 myconf+=" -Ddisable_nacl=1"
344
345 # Disable glibc Native Client toolchain, we don't need it (bug #417019).
346 # myconf+=" -Ddisable_glibc=1"
347
348 # TODO: also build with pnacl
349 # myconf+=" -Ddisable_pnacl=1"
350
351 # It would be awkward for us to tar the toolchain and get it untarred again
352 # during the build.
353 # myconf+=" -Ddisable_newlib_untar=1"
354
355 # Make it possible to remove third_party/adobe.
356 echo > "${T}/flapper_version.h" || die
357 myconf+=" -Dflapper_version_h_file=${T}/flapper_version.h"
358
359 # Use system-provided libraries.
360 # TODO: use_system_hunspell (upstream changes needed).
361 # TODO: use_system_libsrtp (bug #459932).
362 # TODO: use_system_libvpx (http://crbug.com/347823).
363 # TODO: use_system_libusb (http://crbug.com/266149).
364 # TODO: use_system_opus (https://code.google.com/p/webrtc/issues/detail?id=3077).
365 # TODO: use_system_protobuf (bug #525560).
366 # TODO: use_system_ssl (http://crbug.com/58087).
367 # TODO: use_system_sqlite (http://crbug.com/22208).
368 myconf+="
369 -Duse_system_bzip2=1
370 -Duse_system_flac=1
371 -Duse_system_harfbuzz=1
372 -Duse_system_icu=1
373 -Duse_system_jsoncpp=1
374 -Duse_system_libevent=1
375 -Duse_system_libjpeg=1
376 -Duse_system_libpng=1
377 -Duse_system_libwebp=1
378 -Duse_system_libxml=1
379 -Duse_system_libxslt=1
380 -Duse_system_minizip=1
381 -Duse_system_nspr=1
382 -Duse_system_re2=1
383 -Duse_system_snappy=1
384 -Duse_system_speex=1
385 -Duse_system_xdg_utils=1
386 -Duse_system_zlib=1"
387
388 # Needed for system icu - we don't need additional data files.
389 myconf+=" -Dicu_use_data_file_flag=0"
390
391 # TODO: patch gyp so that this arm conditional is not needed.
392 if ! use arm; then
393 myconf+="
394 -Duse_system_yasm=1"
395 fi
396
397 # Optional dependencies.
398 # TODO: linux_link_kerberos, bug #381289.
399 myconf+="
400 $(gyp_use cups)
401 $(gyp_use gnome use_gconf)
402 $(gyp_use gnome-keyring use_gnome_keyring)
403 $(gyp_use gnome-keyring linux_link_gnome_keyring)
404 $(gyp_use hidpi enable_hidpi)
405 $(gyp_use kerberos)
406 $(gyp_use pulseaudio)
407 $(gyp_use tcmalloc use_allocator tcmalloc none)"
408
409 # Use explicit library dependencies instead of dlopen.
410 # This makes breakages easier to detect by revdep-rebuild.
411 myconf+="
412 -Dlinux_link_gsettings=1
413 -Dlinux_link_libpci=1
414 -Dlinux_link_libspeechd=1
415 -Dlibspeechd_h_prefix=speech-dispatcher/"
416
417 # TODO: use the file at run time instead of effectively compiling it in.
418 myconf+="
419 -Dusb_ids_path=/usr/share/misc/usb.ids"
420
421 # Save space by removing DLOG and DCHECK messages (about 6% reduction).
422 myconf+="
423 -Dlogging_like_official_build=1"
424
425 # Never use bundled gold binary. Disable gold linker flags for now.
426 # Do not use bundled clang.
427 myconf+="
428 -Dclang=0
429 -Dhost_clang=0
430 -Dlinux_use_bundled_binutils=0
431 -Dlinux_use_bundled_gold=0
432 -Dlinux_use_gold_flags=0"
433
434 # Always support proprietary codecs.
435 myconf+=" -Dproprietary_codecs=1"
436
437 ffmpeg_branding="Chromium"
438 if ! use bindist; then
439 # Enable H.264 support in bundled ffmpeg.
440 ffmpeg_branding="Chrome"
441 fi
442 myconf+=" -Dffmpeg_branding=${ffmpeg_branding}"
443
444 # Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys .
445 # Note: these are for Gentoo use ONLY. For your own distribution,
446 # please get your own set of keys. Feel free to contact chromium@g.o
447 # for more info.
448 myconf+=" -Dgoogle_api_key=AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc
449 -Dgoogle_default_client_id=329227923882.apps.googleusercontent.com
450 -Dgoogle_default_client_secret=vgKG0NNv7GoDpbtoFNLxCUXu"
451
452 local myarch="$(tc-arch)"
453 if [[ $myarch = amd64 ]] ; then
454 target_arch=x64
455 ffmpeg_target_arch=x64
456 elif [[ $myarch = x86 ]] ; then
457 target_arch=ia32
458 ffmpeg_target_arch=ia32
459 elif [[ $myarch = arm ]] ; then
460 target_arch=arm
461 ffmpeg_target_arch=$(usex neon arm-neon arm)
462 # TODO: re-enable NaCl (NativeClient).
463 local CTARGET=${CTARGET:-${CHOST}}
464 if [[ $(tc-is-softfloat) == "no" ]]; then
465
466 myconf+=" -Darm_float_abi=hard"
467 fi
468 filter-flags "-mfpu=*"
469 use neon || myconf+=" -Darm_fpu=${ARM_FPU:-vfpv3-d16}"
470
471 if [[ ${CTARGET} == armv[78]* ]]; then
472 myconf+=" -Darmv7=1"
473 else
474 myconf+=" -Darmv7=0"
475 fi
476 myconf+=" -Dsysroot=
477 $(gyp_use neon arm_neon)
478 -Ddisable_nacl=1"
479 else
480 die "Failed to determine target arch, got '$myarch'."
481 fi
482
483 myconf+=" -Dtarget_arch=${target_arch}"
484
485 # Make sure that -Werror doesn't get added to CFLAGS by the build system.
486 # Depending on GCC version the warnings are different and we don't want
487 # the build to fail because of that.
488 myconf+=" -Dwerror="
489
490 # Disable fatal linker warnings, bug 506268.
491 myconf+=" -Ddisable_fatal_linker_warnings=1"
492
493 # Avoid CFLAGS problems, bug #352457, bug #390147.
494 if ! use custom-cflags; then
495 replace-flags "-Os" "-O2"
496 strip-flags
497
498 # Prevent linker from running out of address space, bug #471810 .
499 if use x86; then
500 filter-flags "-g*"
501 fi
502 fi
503
504 # Make sure the build system will use the right tools, bug #340795.
505 tc-export AR CC CXX RANLIB
506
507 # Tools for building programs to be executed on the build system, bug #410883.
508 export AR_host=$(tc-getBUILD_AR)
509 export CC_host=$(tc-getBUILD_CC)
510 export CXX_host=$(tc-getBUILD_CXX)
511 export LD_host=${CXX_host}
512
513 # Bug 491582.
514 export TMPDIR="${WORKDIR}/temp"
515 mkdir -m 755 "${TMPDIR}" || die
516
517 local build_ffmpeg_args=""
518 if use pic && [[ "${ffmpeg_target_arch}" == "ia32" ]]; then
519 build_ffmpeg_args+=" --disable-asm"
520 fi
521
522 # Re-configure bundled ffmpeg. See bug #491378 for example reasons.
523 einfo "Configuring bundled ffmpeg..."
524 pushd third_party/ffmpeg > /dev/null || die
525 chromium/scripts/build_ffmpeg.py linux ${ffmpeg_target_arch} \
526 --branding ${ffmpeg_branding} -- ${build_ffmpeg_args} || die
527 chromium/scripts/copy_config.sh || die
528 chromium/scripts/generate_gyp.py || die
529 popd > /dev/null || die
530
531 third_party/libaddressinput/chromium/tools/update-strings.py || die
532
533 einfo "Configuring Chromium..."
534 build/linux/unbundle/replace_gyp_files.py ${myconf} || die
535 egyp_chromium ${myconf} || die
536 }
537
538 eninja() {
539 if [[ -z ${NINJAOPTS+set} ]]; then
540 local jobs=$(makeopts_jobs)
541 local loadavg=$(makeopts_loadavg)
542
543 if [[ ${MAKEOPTS} == *-j* && ${jobs} != 999 ]]; then
544 NINJAOPTS+=" -j ${jobs}"
545 fi
546 if [[ ${MAKEOPTS} == *-l* && ${loadavg} != 999 ]]; then
547 NINJAOPTS+=" -l ${loadavg}"
548 fi
549 fi
550 set -- ninja -v ${NINJAOPTS} "$@"
551 echo "$@"
552 "$@"
553 }
554
555 src_compile() {
556 local ninja_targets="chrome chrome_sandbox chromedriver"
557
558 # Build mksnapshot and pax-mark it.
559 eninja -C out/Release mksnapshot || die
560 pax-mark m out/Release/mksnapshot
561
562 # Even though ninja autodetects number of CPUs, we respect
563 # user's options, for debugging with -j 1 or any other reason.
564 eninja -C out/Release ${ninja_targets} || die
565
566 pax-mark m out/Release/chrome
567 }
568
569 src_install() {
570 exeinto "${CHROMIUM_HOME}"
571 doexe out/Release/chrome || die
572
573 newexe out/Release/chrome_sandbox chrome-sandbox || die
574 fperms 4755 "${CHROMIUM_HOME}/chrome-sandbox"
575
576 doexe out/Release/chromedriver || die
577
578 # if ! use arm; then
579 # doexe out/Release/nacl_helper{,_bootstrap} || die
580 # insinto "${CHROMIUM_HOME}"
581 # doins out/Release/nacl_irt_*.nexe || die
582 # doins out/Release/libppGoogleNaClPluginChrome.so || die
583 # fi
584
585 local sedargs=( -e "s:/usr/lib/:/usr/$(get_libdir)/:g" )
586 if [[ -n ${CHROMIUM_SUFFIX} ]]; then
587 sedargs+=(
588 -e "s:chromium-browser:chromium-browser${CHROMIUM_SUFFIX}:g"
589 -e "s:chromium.desktop:chromium${CHROMIUM_SUFFIX}.desktop:g"
590 -e "s:plugins:plugins --user-data-dir=\${HOME}/.config/chromium${CHROMIUM_SUFFIX}:"
591 )
592 fi
593 sed "${sedargs[@]}" "${FILESDIR}/chromium-launcher-r3.sh" > chromium-launcher.sh || die
594 doexe chromium-launcher.sh
595
596 # It is important that we name the target "chromium-browser",
597 # xdg-utils expect it; bug #355517.
598 dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium-browser${CHROMIUM_SUFFIX} || die
599 # keep the old symlink around for consistency
600 dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium${CHROMIUM_SUFFIX} || die
601
602 dosym "${CHROMIUM_HOME}/chromedriver" /usr/bin/chromedriver${CHROMIUM_SUFFIX} || die
603
604 # Allow users to override command-line options, bug #357629.
605 dodir /etc/chromium || die
606 insinto /etc/chromium
607 newins "${FILESDIR}/chromium.default" "default" || die
608
609 pushd out/Release/locales > /dev/null || die
610 chromium_remove_language_paks
611 popd
612
613 insinto "${CHROMIUM_HOME}"
614 doins out/Release/*.bin || die
615 doins out/Release/*.pak || die
616
617 doins -r out/Release/locales || die
618 doins -r out/Release/resources || die
619
620 newman out/Release/chrome.1 chromium${CHROMIUM_SUFFIX}.1 || die
621 newman out/Release/chrome.1 chromium-browser${CHROMIUM_SUFFIX}.1 || die
622
623 doexe out/Release/libffmpegsumo.so || die
624 doexe out/Release/libpdf.so || die
625
626 # Install icons and desktop entry.
627 local branding size
628 for size in 16 22 24 32 48 64 128 256 ; do
629 case ${size} in
630 16|32) branding="chrome/app/theme/default_100_percent/chromium" ;;
631 *) branding="chrome/app/theme/chromium" ;;
632 esac
633 newicon -s ${size} "${branding}/product_logo_${size}.png" \
634 chromium-browser${CHROMIUM_SUFFIX}.png
635 done
636
637 local mime_types="text/html;text/xml;application/xhtml+xml;"
638 mime_types+="x-scheme-handler/http;x-scheme-handler/https;" # bug #360797
639 mime_types+="x-scheme-handler/ftp;" # bug #412185
640 mime_types+="x-scheme-handler/mailto;x-scheme-handler/webcal;" # bug #416393
641 make_desktop_entry \
642 chromium-browser${CHROMIUM_SUFFIX} \
643 "Chromium${CHROMIUM_SUFFIX}" \
644 chromium-browser${CHROMIUM_SUFFIX} \
645 "Network;WebBrowser" \
646 "MimeType=${mime_types}\nStartupWMClass=chromium-browser"
647 sed -e "/^Exec/s/$/ %U/" -i "${ED}"/usr/share/applications/*.desktop || die
648
649 # Install GNOME default application entry (bug #303100).
650 if use gnome; then
651 dodir /usr/share/gnome-control-center/default-apps || die
652 insinto /usr/share/gnome-control-center/default-apps
653 newins "${FILESDIR}"/chromium-browser.xml chromium-browser${CHROMIUM_SUFFIX}.xml || die
654 if [[ "${CHROMIUM_SUFFIX}" != "" ]]; then
655 sed "s:chromium-browser:chromium-browser${CHROMIUM_SUFFIX}:g" -i \
656 "${ED}"/usr/share/gnome-control-center/default-apps/chromium-browser${CHROMIUM_SUFFIX}.xml
657 fi
658 fi
659
660 readme.gentoo_create_doc
661 }
662
663 pkg_postinst() {
664 fdo-mime_desktop_database_update
665 gnome2_icon_cache_update
666 readme.gentoo_print_elog
667 }