diff options
author | Paweł Hajdan <phajdan.jr@gentoo.org> | 2014-11-21 17:19:33 +0000 |
---|---|---|
committer | Paweł Hajdan <phajdan.jr@gentoo.org> | 2014-11-21 17:19:33 +0000 |
commit | 7e3519da936cf6aa46f08d6b4f738dec92f37b4b (patch) | |
tree | abcd82dcfff57caf722efc8b504737a443c23aa6 /www-client | |
parent | dev-libs/uriparser: Fix doc installation and related Bash-ism (bug #527388) (diff) | |
download | historical-7e3519da936cf6aa46f08d6b4f738dec92f37b4b.tar.gz historical-7e3519da936cf6aa46f08d6b4f738dec92f37b4b.tar.bz2 historical-7e3519da936cf6aa46f08d6b4f738dec92f37b4b.zip |
Dev channel bump.
Package-Manager: portage-2.2.8-r2/cvs/Linux i686
Manifest-Sign-Key: 0x4F1A2555EA71991D!
Diffstat (limited to 'www-client')
-rw-r--r-- | www-client/chromium/ChangeLog | 8 | ||||
-rw-r--r-- | www-client/chromium/Manifest | 30 | ||||
-rw-r--r-- | www-client/chromium/chromium-41.0.2224.3.ebuild | 608 |
3 files changed, 631 insertions, 15 deletions
diff --git a/www-client/chromium/ChangeLog b/www-client/chromium/ChangeLog index 347d989b41c1..12942ac1583d 100644 --- a/www-client/chromium/ChangeLog +++ b/www-client/chromium/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for www-client/chromium # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.1168 2014/11/21 14:05:02 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.1169 2014/11/21 17:19:17 phajdan.jr Exp $ + +*chromium-41.0.2224.3 (21 Nov 2014) + + 21 Nov 2014; Pawel Hajdan jr <phajdan.jr@gentoo.org> + +chromium-41.0.2224.3.ebuild: + Dev channel bump. 21 Nov 2014; Agostino Sarubbo <ago@gentoo.org> -chromium-38.0.2125.101.ebuild: Remove old diff --git a/www-client/chromium/Manifest b/www-client/chromium/Manifest index 29f3b2cfb9ac..83cf29ec7d5a 100644 --- a/www-client/chromium/Manifest +++ b/www-client/chromium/Manifest @@ -12,26 +12,28 @@ AUX dot-gclient 174 SHA256 0ae6d69323d1d286de7ef1fa62c330536ada7280bda7564fefb5d DIST chromium-39.0.2171.65-lite.tar.xz 194778184 SHA256 889ea21ba9d627ba1917649c13990efe367678759bd949268d4f31c63e3d3498 SHA512 49347a92831e817a20a0eb5ffebde580840c2bff473522f8a71218ca15bba4435be1670e4aaa8916a39a0761bf31e58c35979a5b349883e2c328e185e436a74e WHIRLPOOL aa209f840290c6208819c3454d42b5fc814fe1eace47bdf16d884e5cb396d4547c00f9240259d8035ce8d047277cf375d95b9d5d7b673e58839ec30cd8ff4555 DIST chromium-40.0.2214.10-lite.tar.xz 227293960 SHA256 32478d4c589d6af5519c32847b87d33376b8e4812ec069172f327e7dee39a73b SHA512 df7833e1b3835ed15f3e62bf2a2f68d5bf6dc4d97740771ba0ac40353854956d47449657f78d57f0a6a2dd996b3aa73964da284921f4403249006a254fb46306 WHIRLPOOL 3770b8f64e40bdcf8a3bff37cc708132a66bd76c9cc612686143a7bd7c3a8fe806c0f4a052be73ed8a3354138c3e60a4056a25c26853c4ff8eb27bd6ef2d5c9a DIST chromium-40.0.2214.6-lite.tar.xz 227263404 SHA256 e6d9ff2953aeac1041442f6aa5390509a26db673ee358db7c1d076ccdc380a90 SHA512 bf8bae3ffd290efaef401feec331ad7ee6b65c06c9e7973ae64366975fa7e8c6a7cf8cef56ad1cbba25d56c0c6f58286b4e24135fd8d7d3ee0321c02a661c676 WHIRLPOOL 7d19c3124349b9ca17b76cc18bc7d96d3e9b69f3bb1b23da9e03971499b808cac2f9be9d254bc74ca68c7f3dd3d31169aedeb9ea6f2a717eee14cb9d2cf81997 +DIST chromium-41.0.2224.3-lite.tar.xz 228200936 SHA256 53a73b244bdf359513cf200d593c8428361cc7de1ba65dc69406a8254ae6e555 SHA512 e0abde238c76e9ca11046335115fad31d10a3a34c837df9d5fd80a5914ffcdd1d2d95e6c674a8633633fd0f702354d8e89fb3f885d71cdc5de7c6fd3724f7d46 WHIRLPOOL 17a515e97f189e0f4e132849e5c7ad5cbd4c062df065469aa038b18b4db4720172ae593e47b6dfc127d847cade7a9558246c30c38c97a3897f670c7b9e68e338 EBUILD chromium-39.0.2171.65.ebuild 18482 SHA256 7a34cdfbe54ed20a09f159d361522f6d1145466a54de5e7d35558e38c8c7436f SHA512 fb7c40324c754a9e282d81671c99f6a0931d0ac342d67e8ba7c7acfd89f1db8af0c487639d5d6aefc413e77434ae80c8352fa035beefd8102a795f6748592e19 WHIRLPOOL a9d77f89738a3d488f88c1d36d4663d1bd92dd82cdea10589c729f15e9369debef4400b385f5c1b6070b36e91f98e4aa280579027737fecbc8f3353417624624 EBUILD chromium-40.0.2214.10.ebuild 18762 SHA256 fc619f84862ed55ef607f452e0d706bf2919405fc14b0011036784867e0336f5 SHA512 e8b1ab0ab46614535611dbe7c7cbb277da89db35ef5aeef3fad2d725ca6fe40c9b70bd790b77bfa91fc9ef0ad80a452cb7ca1bd2b6e4e87f2892892b80c7d4f2 WHIRLPOOL 4711d294a4a1c6bdacb186ce46f4ae0232260cb5ef8ffb1bef75e00bb77146c907edcd3f8d97b5ff49a1d5b4cdbad3d038679d102a61345fe238ba6b3d51842d EBUILD chromium-40.0.2214.6.ebuild 18761 SHA256 e3d4efb93fb558a3dee70b673de8ba1009c319e66e9752e6368eeba846abc131 SHA512 b4ac554fc04ffaddbf5f8ad9d9a6c9b6061b365156db01c0251626f7d3ab84e4c0a91bb0c11964e02ec741d29457e5d3d4ba0a237d5bfc24cb24f033bd501d4f WHIRLPOOL 3f9b10dd457a9b72c70319483c67a3ae987b4e9b5622e651ef7dc1a0d1b16db9793510440899942866fb9c6e258b7bfe1e50a1989c1b9c6efb533f1f06a15ecc -MISC ChangeLog 122088 SHA256 4c343fbef624602e7180376ed6ebf60da68d5b541f071af6fc679b4aeb2251a9 SHA512 111bde857244485b1dcb8b7240bc8a8363ea3f59cdd65496b5b2a8486ea165dfdd21c07ddb5927f8d1ff2c17c0d101bd6e3add8ce2dfc5e0b794789fb3ee8cda WHIRLPOOL f6c7bd6214be961572ced66384541212d33aa34fd79385ac278185f5197b6a16681a9fd639456708dd7759f8a4b9173d9bfa91dcb0117397bde69477da62e3dc +EBUILD chromium-41.0.2224.3.ebuild 18761 SHA256 904c8db3d7dfe3928d424e900c2cc2a62a4a8503fc0aae81617a532dc68b5fd2 SHA512 bb556e77947a213acc65ef402a9f069445eb7a93b5951c7e2b4b3f493f54e9c38c09aa9a14bb77c922e302d3b9c2572bc7c9f137508a35b19edcd04efb0ebabb WHIRLPOOL 8709f5475742dc2404d31e7960d701c5f842fab7460de232f73bbcdf11e3bcb70b5148a8d733f50673771a0a029f51d2f0500ed096dc14ed3d4d7462f9348e61 +MISC ChangeLog 122240 SHA256 934a6edea0835eec11326c2e268b2a2b619c5d28a162f7394ffaf827dc66c13e SHA512 5c4f8f529856469019e80033edf5f1bbdcf0e8483a200254ab7460a9ab202ffdcd15fe5fdac1850cf876cd41f47509a7634ff109edf4134e35f2795607e4e4e8 WHIRLPOOL 625561e9ead7a06451fe5b54f4293c60255be6155dc4a6dad4b1ed6410ddc24318acab46b87a5cae85336bf9b2ef6c2d4492dd364c782f7a5080473d6add1bc6 MISC ChangeLog-2011 114031 SHA256 e2c2c75785c5eaf78b6efe01e357279cbb7be0c89d00b4053f475e963916fa54 SHA512 8e14759348333bdbd7c338080472789d7bbb1ece1ca5817bac6306bdcb33dda1e23bf3055cbb3b7bcee9362b6900bba1ace7ba73f353570a74d3ed761c9198cc WHIRLPOOL 810b6423c53f892a4b0964380b8190dec2a8783d560a9cb0baec93a77d879186201055382ca05975ae242e16728529ae85445db003fdd425355292d17817157b MISC metadata.xml 518 SHA256 821944f32fcf203b2573c164aeaa52fbc69e5f651d366cdda66901633461f5ef SHA512 01d29c4ce93a8a624fc8926e7e72e8bf124b91ae6fdbf6e7179e9d6ddd6db33d73acde62541777118da1c9d197c83d6c615c247d785e76a8ab560f915abd08d5 WHIRLPOOL f9b21a0d032d1f78b6aeb78f759b9f126b1b1cc118a5edd3a08eefcb2d7b51ff406abb95323fe05b4c04468aca68dddd3d39ce7edfb9b352abc1bc3890d7e1ab -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 -iQIcBAEBCAAGBQJUb0aPAAoJELp701BxlEWfezUP/1HrKKh2N8abcMVscmHBi75o -S6+01EyOUV7gOo6wbMkjF4PQEkQlPDNu+4siyEksKrmihOkBSACmtqkuDlJ+e7dA -7Oh+XOkf51gnrbPnuxGLZ+CqEEYXT/4JVGuqndft13RJAJt+AUhk0ql/sq8MrlmV -l+Z2f2fK3WqTOyf8KsG7EKD5UbeeD4LYL9Dlu/fMKmXEiekmkyS1zsjDYuKUdKYe -w5/cdct9LiXdYnZsBtejfW5mnkVF9bgoh1zL/xk/m53ay1j4EPX80YofJo7TblvQ -BZxPmLkUkLO7Aa2fqrPq+VPp1MRGm95gzwYxZbvkSTpAZo28fHstGFUxrQHKOPdw -TTzhRTnaf8RktK+SATOaO4HpNjy0kJILOhWjTlarOAGFY5ctfstf15mi+dN7ERPH -SvR83uD6OKGaQhUtZkS68wLju0Ic7OfALEPfI5ecGrtbAs5nTQTueqORRf+GydX/ -Wewb5SjzFRe9JuLsEyJ/SyKofbYuqFBAsYvVot9rOPf6IZlqAmEaCT9T3c5edWC7 -SgwNM/e/H85AwBTGp400pxmxfqVmrzM8DugW0PWnB2CDWmltvUUhC9zMiFQKmgO0 -Qq/PrOdXNPBnH9gAO8i9OjDAqSbHIuy3X2QB3PlatyEuN7fTm5oRP7b/AtpByCox -gX34+ggUtCAt3BlEBr5c -=udfs +iQIcBAEBCAAGBQJUb3QiAAoJEE8aJVXqcZkdJiEP/2L5rA4SJz2fajyGq/wnSXwH +LNQWmMOyjcDbl/dMMeOz5/8DnlgRnyCFvYL5p3ZOxlIr3M9dTj7PJEpphq8G6Dfb +GUyBFwCjKqV4YLc4BEkojDz/n4s9uOsXYAmq2t2dbfPLACQQ6l3hl/o5KYcHRgoG +7kBLPr/1nuy/y2mrccyrzDfuy1Zfy3he0zil7UZtVo31CBFiUVm/YOROscNUl08T +w5Z/4s2Z+0J5CjJUkeFRsYfGy04g/Ks+8N24dwKGra8SYAyCJcGUeztaBt1dJHSf +6vpEDikgct+fOYcCVfenET4Y1Au0HKmxT8ctNeETC5l6R5+573vd+kjv2JmNYMsV +JDJqsFUGe1qdtwq4J/vstH8XdXIzyyWrznfuTOXj1vLkII18bqLeHASaIo4+qIBA +2uRJdgeIbcKgrEt/WAH1FhzoWJ8M3tqJ/7D9G9/Fp00qkxWR4H1MQ3fDO4CeBC1j +XqC8nYjCjEFAK6S+I/utK5rnpAz318b1iAC85Mws3e5QZu2o0uHkc6hg0CuwhwBN +/FgOBWX3Xc5Acov3ob8x2SxUvcOiapfOjZ4FUJw9lSzKl8/MQ55VAy/r4TPbPe18 +1WZglK7Igipj4glGIntzvgkj2M8RYctQUhX/Avp9hCeFfd4EdaGcUZTUUq6YvP/M +9YdCVwOKeE7QbwPlj1NE +=SKhP -----END PGP SIGNATURE----- diff --git a/www-client/chromium/chromium-41.0.2224.3.ebuild b/www-client/chromium/chromium-41.0.2224.3.ebuild new file mode 100644 index 000000000000..9e3d45ef0d01 --- /dev/null +++ b/www-client/chromium/chromium-41.0.2224.3.ebuild @@ -0,0 +1,608 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-41.0.2224.3.ebuild,v 1.1 2014/11/21 17:19:17 phajdan.jr Exp $ + +EAPI="5" +PYTHON_COMPAT=( python{2_6,2_7} ) + +CHROMIUM_LANGS="am ar bg bn ca cs da de el en_GB es es_LA et fa fi fil fr gu he + 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 + sv sw ta te th tr uk vi zh_CN zh_TW" + +inherit chromium eutils flag-o-matic multilib multiprocessing pax-utils \ + portability python-any-r1 readme.gentoo toolchain-funcs versionator virtualx + +DESCRIPTION="Open-source version of Google Chrome web browser" +HOMEPAGE="http://chromium.org/" +SRC_URI="https://commondatastorage.googleapis.com/chromium-browser-official/${P}-lite.tar.xz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="bindist cups gnome gnome-keyring kerberos neon pic pulseaudio selinux +tcmalloc" +RESTRICT="!bindist? ( bindist )" + +# Native Client binaries are compiled with different set of flags, bug #452066. +QA_FLAGS_IGNORED=".*\.nexe" + +# Native Client binaries may be stripped by the build system, which uses the +# right tools for it, bug #469144 . +QA_PRESTRIPPED=".*\.nexe" + +RDEPEND=">=app-accessibility/speech-dispatcher-0.8:= + app-arch/bzip2:= + app-arch/snappy:= + cups? ( + dev-libs/libgcrypt:0= + >=net-print/cups-1.3.11:= + ) + >=dev-libs/elfutils-0.149 + dev-libs/expat:= + dev-libs/glib:= + dev-libs/icu:= + >=dev-libs/jsoncpp-0.5.0-r1:= + >=dev-libs/libevent-1.4.13:= + dev-libs/libxml2:=[icu] + dev-libs/libxslt:= + dev-libs/nspr:= + >=dev-libs/nss-3.14.3:= + dev-libs/re2:= + gnome? ( >=gnome-base/gconf-2.24.0:= ) + gnome-keyring? ( >=gnome-base/libgnome-keyring-3.12:= ) + >=media-libs/alsa-lib-1.0.19:= + media-libs/flac:= + media-libs/fontconfig:= + media-libs/freetype:= + media-libs/harfbuzz:=[icu(+)] + media-libs/libexif:= + >=media-libs/libjpeg-turbo-1.2.0-r1:= + media-libs/libpng:0= + >=media-libs/libwebp-0.4.0:= + media-libs/speex:= + pulseaudio? ( media-sound/pulseaudio:= ) + sys-apps/dbus:= + sys-apps/pciutils:= + >=sys-libs/libcap-2.22:= + sys-libs/zlib:=[minizip] + virtual/udev + x11-libs/cairo:= + x11-libs/gdk-pixbuf:= + x11-libs/gtk+:2= + x11-libs/libdrm + x11-libs/libX11:= + x11-libs/libXcomposite:= + x11-libs/libXcursor:= + x11-libs/libXdamage:= + x11-libs/libXext:= + x11-libs/libXfixes:= + >=x11-libs/libXi-1.6.0:= + x11-libs/libXinerama:= + x11-libs/libXrandr:= + x11-libs/libXrender:= + x11-libs/libXScrnSaver:= + x11-libs/libXtst:= + x11-libs/pango:= + kerberos? ( virtual/krb5 )" +DEPEND="${RDEPEND} + !arm? ( + dev-lang/yasm + ) + dev-lang/perl + dev-perl/JSON + >=dev-util/gperf-3.0.3 + dev-util/ninja + sys-apps/hwids[usb(+)] + >=sys-devel/bison-2.4.3 + sys-devel/flex + virtual/pkgconfig" +# For nvidia-drivers blocker, see bug #413637 . +RDEPEND+=" + !=www-client/chromium-9999 + !<www-plugins/chrome-binary-plugins-37 + x11-misc/xdg-utils + virtual/opengl + virtual/ttf-fonts + selinux? ( sec-policy/selinux-chromium ) + tcmalloc? ( !<x11-drivers/nvidia-drivers-331.20 )" + +# Python dependencies. The DEPEND part needs to be kept in sync +# with python_check_deps. +DEPEND+=" $(python_gen_any_dep ' + dev-python/beautifulsoup:python-2[${PYTHON_USEDEP}] + dev-python/jinja[${PYTHON_USEDEP}] + dev-python/ply[${PYTHON_USEDEP}] + dev-python/simplejson[${PYTHON_USEDEP}] +')" +python_check_deps() { + has_version "dev-python/beautifulsoup:python-2[${PYTHON_USEDEP}]" && \ + has_version "dev-python/jinja[${PYTHON_USEDEP}]" && \ + has_version "dev-python/ply[${PYTHON_USEDEP}]" && \ + has_version "dev-python/simplejson[${PYTHON_USEDEP}]" +} + +if ! has chromium_pkg_die ${EBUILD_DEATH_HOOKS}; then + EBUILD_DEATH_HOOKS+=" chromium_pkg_die"; +fi + +DISABLE_AUTOFORMATTING="yes" +DOC_CONTENTS=" +Some web pages may require additional fonts to display properly. +Try installing some of the following packages if some characters +are not displayed properly: +- media-fonts/arphicfonts +- media-fonts/bitstream-cyberbit +- media-fonts/droid +- media-fonts/ipamonafont +- media-fonts/ja-ipafonts +- media-fonts/takao-fonts +- media-fonts/wqy-microhei +- media-fonts/wqy-zenhei + +Depending on your desktop environment, you may need +to install additional packages to get icons on the Downloads page. + +For KDE, the required package is kde-base/oxygen-icons. + +For other desktop environments, try one of the following: +- x11-themes/gnome-icon-theme +- x11-themes/tango-icon-theme +" + +pkg_setup() { + if [[ "${SLOT}" == "0" ]]; then + CHROMIUM_SUFFIX="" + else + CHROMIUM_SUFFIX="-${SLOT}" + fi + CHROMIUM_HOME="/usr/$(get_libdir)/chromium-browser${CHROMIUM_SUFFIX}" + + # Make sure the build system will use the right python, bug #344367. + python-any-r1_pkg_setup + + chromium_suid_sandbox_check_kernel_config + + if use bindist; then + elog "bindist enabled: H.264 video support will be disabled." + else + elog "bindist disabled: Resulting binaries may not be legal to re-distribute." + fi +} + +src_prepare() { + # if ! use arm; then + # mkdir -p out/Release/gen/sdk/toolchain || die + # # Do not preserve SELinux context, bug #460892 . + # cp -a --no-preserve=context /usr/$(get_libdir)/nacl-toolchain-newlib \ + # out/Release/gen/sdk/toolchain/linux_x86_newlib || die + # touch out/Release/gen/sdk/toolchain/linux_x86_newlib/stamp.untar || die + # fi + + epatch "${FILESDIR}/${PN}-system-jinja-r7.patch" + + epatch_user + + # Remove most bundled libraries. Some are still needed. + build/linux/unbundle/remove_bundled_libraries.py \ + 'base/third_party/dmg_fp' \ + 'base/third_party/dynamic_annotations' \ + 'base/third_party/icu' \ + 'base/third_party/nspr' \ + 'base/third_party/superfasthash' \ + 'base/third_party/symbolize' \ + 'base/third_party/valgrind' \ + 'base/third_party/xdg_mime' \ + 'base/third_party/xdg_user_dirs' \ + 'breakpad/src/third_party/curl' \ + 'chrome/third_party/mozilla_security_manager' \ + 'courgette/third_party' \ + 'crypto/third_party/nss' \ + 'net/third_party/mozilla_security_manager' \ + 'net/third_party/nss' \ + 'third_party/WebKit' \ + 'third_party/angle' \ + 'third_party/angle/src/third_party/compiler' \ + 'third_party/brotli' \ + 'third_party/cacheinvalidation' \ + 'third_party/cld_2' \ + 'third_party/cros_system_api' \ + 'third_party/cython/python_flags.py' \ + 'third_party/dom_distiller_js' \ + 'third_party/dom_distiller_js/package/proto_gen/third_party/dom_distiller_js' \ + 'third_party/ffmpeg' \ + 'third_party/fips181' \ + 'third_party/flot' \ + 'third_party/google_input_tools' \ + 'third_party/google_input_tools/third_party/closure_library' \ + 'third_party/google_input_tools/third_party/closure_library/third_party/closure' \ + 'third_party/hunspell' \ + 'third_party/iccjpeg' \ + 'third_party/jstemplate' \ + 'third_party/khronos' \ + 'third_party/leveldatabase' \ + 'third_party/libaddressinput' \ + 'third_party/libjingle' \ + 'third_party/libphonenumber' \ + 'third_party/libsrtp' \ + 'third_party/libusb' \ + 'third_party/libvpx' \ + 'third_party/libvpx/source/libvpx/third_party/x86inc' \ + 'third_party/libwebm' \ + 'third_party/libxml/chromium' \ + 'third_party/libXNVCtrl' \ + 'third_party/libyuv' \ + 'third_party/lss' \ + 'third_party/lzma_sdk' \ + 'third_party/mesa' \ + 'third_party/modp_b64' \ + 'third_party/mt19937ar' \ + 'third_party/npapi' \ + 'third_party/openmax_dl' \ + 'third_party/opus' \ + 'third_party/ots' \ + 'third_party/pdfium' \ + 'third_party/pdfium/third_party/logging.h' \ + 'third_party/pdfium/third_party/macros.h' \ + 'third_party/pdfium/third_party/numerics' \ + 'third_party/pdfium/third_party/template_util.h' \ + 'third_party/polymer' \ + 'third_party/protobuf' \ + 'third_party/qcms' \ + 'third_party/readability' \ + 'third_party/sfntly' \ + 'third_party/skia' \ + 'third_party/smhasher' \ + 'third_party/sqlite' \ + 'third_party/tcmalloc' \ + 'third_party/tlslite' \ + 'third_party/trace-viewer' \ + 'third_party/trace-viewer/third_party/components/polymer' \ + 'third_party/trace-viewer/third_party/d3' \ + 'third_party/trace-viewer/third_party/gl-matrix' \ + 'third_party/trace-viewer/third_party/jszip' \ + 'third_party/trace-viewer/third_party/tvcm' \ + 'third_party/trace-viewer/third_party/tvcm/third_party/beautifulsoup/polymer_soup.py' \ + 'third_party/undoview' \ + 'third_party/usrsctp' \ + 'third_party/webdriver' \ + 'third_party/webrtc' \ + 'third_party/widevine' \ + 'third_party/x86inc' \ + 'third_party/zlib/google' \ + 'url/third_party/mozilla' \ + 'v8/src/third_party/fdlibm' \ + 'v8/src/third_party/kernel' \ + 'v8/src/third_party/valgrind' \ + --do-remove || die +} + +src_configure() { + local myconf="" + + # Never tell the build system to "enable" SSE2, it has a few unexpected + # additions, bug #336871. + myconf+=" -Ddisable_sse2=1" + + # Disable nacl, we can't build without pnacl (http://crbug.com/269560). + myconf+=" -Ddisable_nacl=1" + + # Disable glibc Native Client toolchain, we don't need it (bug #417019). + # myconf+=" -Ddisable_glibc=1" + + # TODO: also build with pnacl + # myconf+=" -Ddisable_pnacl=1" + + # It would be awkward for us to tar the toolchain and get it untarred again + # during the build. + # myconf+=" -Ddisable_newlib_untar=1" + + # Make it possible to remove third_party/adobe. + echo > "${T}/flapper_version.h" || die + myconf+=" -Dflapper_version_h_file=${T}/flapper_version.h" + + # Use system-provided libraries. + # TODO: use_system_hunspell (upstream changes needed). + # TODO: use_system_libsrtp (bug #459932). + # TODO: use_system_libvpx (http://crbug.com/347823). + # TODO: use_system_libusb (http://crbug.com/266149). + # TODO: use_system_opus (https://code.google.com/p/webrtc/issues/detail?id=3077). + # TODO: use_system_protobuf (bug #525560). + # TODO: use_system_ssl (http://crbug.com/58087). + # TODO: use_system_sqlite (http://crbug.com/22208). + myconf+=" + -Duse_system_bzip2=1 + -Duse_system_flac=1 + -Duse_system_harfbuzz=1 + -Duse_system_icu=1 + -Duse_system_jsoncpp=1 + -Duse_system_libevent=1 + -Duse_system_libjpeg=1 + -Duse_system_libpng=1 + -Duse_system_libwebp=1 + -Duse_system_libxml=1 + -Duse_system_libxslt=1 + -Duse_system_minizip=1 + -Duse_system_nspr=1 + -Duse_system_re2=1 + -Duse_system_snappy=1 + -Duse_system_speex=1 + -Duse_system_xdg_utils=1 + -Duse_system_zlib=1" + + # Needed for system icu - we don't need additional data files. + myconf+=" -Dicu_use_data_file_flag=0" + + # TODO: patch gyp so that this arm conditional is not needed. + if ! use arm; then + myconf+=" + -Duse_system_yasm=1" + fi + + # Optional dependencies. + # TODO: linux_link_kerberos, bug #381289. + myconf+=" + $(gyp_use cups) + $(gyp_use gnome use_gconf) + $(gyp_use gnome-keyring use_gnome_keyring) + $(gyp_use gnome-keyring linux_link_gnome_keyring) + $(gyp_use kerberos) + $(gyp_use pulseaudio) + $(gyp_use tcmalloc use_allocator tcmalloc none)" + + # Use explicit library dependencies instead of dlopen. + # This makes breakages easier to detect by revdep-rebuild. + myconf+=" + -Dlinux_link_gsettings=1 + -Dlinux_link_libpci=1 + -Dlinux_link_libspeechd=1 + -Dlibspeechd_h_prefix=speech-dispatcher/" + + # TODO: use the file at run time instead of effectively compiling it in. + myconf+=" + -Dusb_ids_path=/usr/share/misc/usb.ids" + + # Save space by removing DLOG and DCHECK messages (about 6% reduction). + myconf+=" + -Dlogging_like_official_build=1" + + # Never use bundled gold binary. Disable gold linker flags for now. + # Do not use bundled clang. + myconf+=" + -Dclang=0 + -Dhost_clang=0 + -Dlinux_use_bundled_binutils=0 + -Dlinux_use_bundled_gold=0 + -Dlinux_use_gold_flags=0" + + # Always support proprietary codecs. + myconf+=" -Dproprietary_codecs=1" + + ffmpeg_branding="Chromium" + if ! use bindist; then + # Enable H.264 support in bundled ffmpeg. + ffmpeg_branding="Chrome" + fi + myconf+=" -Dffmpeg_branding=${ffmpeg_branding}" + + # Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys . + # Note: these are for Gentoo use ONLY. For your own distribution, + # please get your own set of keys. Feel free to contact chromium@gentoo.org + # for more info. + myconf+=" -Dgoogle_api_key=AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc + -Dgoogle_default_client_id=329227923882.apps.googleusercontent.com + -Dgoogle_default_client_secret=vgKG0NNv7GoDpbtoFNLxCUXu" + + local myarch="$(tc-arch)" + if [[ $myarch = amd64 ]] ; then + target_arch=x64 + ffmpeg_target_arch=x64 + elif [[ $myarch = x86 ]] ; then + target_arch=ia32 + ffmpeg_target_arch=ia32 + elif [[ $myarch = arm ]] ; then + target_arch=arm + ffmpeg_target_arch=$(usex neon arm-neon arm) + # TODO: re-enable NaCl (NativeClient). + local CTARGET=${CTARGET:-${CHOST}} + if [[ $(tc-is-softfloat) == "no" ]]; then + + myconf+=" -Darm_float_abi=hard" + fi + filter-flags "-mfpu=*" + use neon || myconf+=" -Darm_fpu=${ARM_FPU:-vfpv3-d16}" + + if [[ ${CTARGET} == armv[78]* ]]; then + myconf+=" -Darmv7=1" + else + myconf+=" -Darmv7=0" + fi + myconf+=" -Dsysroot= + $(gyp_use neon arm_neon) + -Ddisable_nacl=1" + else + die "Failed to determine target arch, got '$myarch'." + fi + + myconf+=" -Dtarget_arch=${target_arch}" + + # Make sure that -Werror doesn't get added to CFLAGS by the build system. + # Depending on GCC version the warnings are different and we don't want + # the build to fail because of that. + myconf+=" -Dwerror=" + + # Disable fatal linker warnings, bug 506268. + myconf+=" -Ddisable_fatal_linker_warnings=1" + + # Avoid CFLAGS problems, bug #352457, bug #390147. + if ! use custom-cflags; then + replace-flags "-Os" "-O2" + strip-flags + + # Prevent linker from running out of address space, bug #471810 . + if use x86; then + filter-flags "-g*" + fi + fi + + # Make sure the build system will use the right tools, bug #340795. + tc-export AR CC CXX RANLIB + + # Tools for building programs to be executed on the build system, bug #410883. + export AR_host=$(tc-getBUILD_AR) + export CC_host=$(tc-getBUILD_CC) + export CXX_host=$(tc-getBUILD_CXX) + export LD_host=${CXX_host} + + # Bug 491582. + export TMPDIR="${WORKDIR}/temp" + mkdir -m 755 "${TMPDIR}" || die + + local build_ffmpeg_args="" + if use pic && [[ "${ffmpeg_target_arch}" == "ia32" ]]; then + build_ffmpeg_args+=" --disable-asm" + fi + + # Re-configure bundled ffmpeg. See bug #491378 for example reasons. + einfo "Configuring bundled ffmpeg..." + pushd third_party/ffmpeg > /dev/null || die + chromium/scripts/build_ffmpeg.py linux ${ffmpeg_target_arch} \ + --branding ${ffmpeg_branding} -- ${build_ffmpeg_args} || die + chromium/scripts/copy_config.sh || die + chromium/scripts/generate_gyp.py || die + popd > /dev/null || die + + third_party/libaddressinput/chromium/tools/update-strings.py || die + + einfo "Configuring Chromium..." + build/linux/unbundle/replace_gyp_files.py ${myconf} || die + egyp_chromium ${myconf} || die +} + +eninja() { + if [[ -z ${NINJAOPTS+set} ]]; then + local jobs=$(makeopts_jobs) + local loadavg=$(makeopts_loadavg) + + if [[ ${MAKEOPTS} == *-j* && ${jobs} != 999 ]]; then + NINJAOPTS+=" -j ${jobs}" + fi + if [[ ${MAKEOPTS} == *-l* && ${loadavg} != 999 ]]; then + NINJAOPTS+=" -l ${loadavg}" + fi + fi + set -- ninja -v ${NINJAOPTS} "$@" + echo "$@" + "$@" +} + +src_compile() { + local ninja_targets="chrome chrome_sandbox chromedriver" + + # Build mksnapshot and pax-mark it. + eninja -C out/Release mksnapshot || die + pax-mark m out/Release/mksnapshot + + # Even though ninja autodetects number of CPUs, we respect + # user's options, for debugging with -j 1 or any other reason. + eninja -C out/Release ${ninja_targets} || die + + pax-mark m out/Release/chrome +} + +src_install() { + exeinto "${CHROMIUM_HOME}" + doexe out/Release/chrome || die + + newexe out/Release/chrome_sandbox chrome-sandbox || die + fperms 4755 "${CHROMIUM_HOME}/chrome-sandbox" + + doexe out/Release/chromedriver || die + + # if ! use arm; then + # doexe out/Release/nacl_helper{,_bootstrap} || die + # insinto "${CHROMIUM_HOME}" + # doins out/Release/nacl_irt_*.nexe || die + # doins out/Release/libppGoogleNaClPluginChrome.so || die + # fi + + local sedargs=( -e "s:/usr/lib/:/usr/$(get_libdir)/:g" ) + if [[ -n ${CHROMIUM_SUFFIX} ]]; then + sedargs+=( + -e "s:chromium-browser:chromium-browser${CHROMIUM_SUFFIX}:g" + -e "s:chromium.desktop:chromium${CHROMIUM_SUFFIX}.desktop:g" + -e "s:plugins:plugins --user-data-dir=\${HOME}/.config/chromium${CHROMIUM_SUFFIX}:" + ) + fi + sed "${sedargs[@]}" "${FILESDIR}/chromium-launcher-r3.sh" > chromium-launcher.sh || die + doexe chromium-launcher.sh + + # It is important that we name the target "chromium-browser", + # xdg-utils expect it; bug #355517. + dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium-browser${CHROMIUM_SUFFIX} || die + # keep the old symlink around for consistency + dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium${CHROMIUM_SUFFIX} || die + + dosym "${CHROMIUM_HOME}/chromedriver" /usr/bin/chromedriver${CHROMIUM_SUFFIX} || die + + # Allow users to override command-line options, bug #357629. + dodir /etc/chromium || die + insinto /etc/chromium + newins "${FILESDIR}/chromium.default" "default" || die + + pushd out/Release/locales > /dev/null || die + chromium_remove_language_paks + popd + + insinto "${CHROMIUM_HOME}" + doins out/Release/*.pak || die + + doins -r out/Release/locales || die + doins -r out/Release/resources || die + + newman out/Release/chrome.1 chromium${CHROMIUM_SUFFIX}.1 || die + newman out/Release/chrome.1 chromium-browser${CHROMIUM_SUFFIX}.1 || die + + doexe out/Release/libffmpegsumo.so || die + doexe out/Release/libpdf.so || die + + # Install icons and desktop entry. + local branding size + for size in 16 22 24 32 48 64 128 256 ; do + case ${size} in + 16|32) branding="chrome/app/theme/default_100_percent/chromium" ;; + *) branding="chrome/app/theme/chromium" ;; + esac + newicon -s ${size} "${branding}/product_logo_${size}.png" \ + chromium-browser${CHROMIUM_SUFFIX}.png + done + + local mime_types="text/html;text/xml;application/xhtml+xml;" + mime_types+="x-scheme-handler/http;x-scheme-handler/https;" # bug #360797 + mime_types+="x-scheme-handler/ftp;" # bug #412185 + mime_types+="x-scheme-handler/mailto;x-scheme-handler/webcal;" # bug #416393 + make_desktop_entry \ + chromium-browser${CHROMIUM_SUFFIX} \ + "Chromium${CHROMIUM_SUFFIX}" \ + chromium-browser${CHROMIUM_SUFFIX} \ + "Network;WebBrowser" \ + "MimeType=${mime_types}\nStartupWMClass=chromium-browser" + sed -e "/^Exec/s/$/ %U/" -i "${ED}"/usr/share/applications/*.desktop || die + + # Install GNOME default application entry (bug #303100). + if use gnome; then + dodir /usr/share/gnome-control-center/default-apps || die + insinto /usr/share/gnome-control-center/default-apps + newins "${FILESDIR}"/chromium-browser.xml chromium-browser${CHROMIUM_SUFFIX}.xml || die + if [[ "${CHROMIUM_SUFFIX}" != "" ]]; then + sed "s:chromium-browser:chromium-browser${CHROMIUM_SUFFIX}:g" -i \ + "${ED}"/usr/share/gnome-control-center/default-apps/chromium-browser${CHROMIUM_SUFFIX}.xml + fi + fi + + readme.gentoo_create_doc +} + +pkg_postinst() { + fdo-mime_desktop_database_update + gnome2_icon_cache_update + readme.gentoo_print_elog +} |