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