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