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