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