diff options
author | 2014-10-11 10:27:41 +0000 | |
---|---|---|
committer | 2014-10-11 10:27:41 +0000 | |
commit | cea4ffa6e674fe44e621cdc9931f4d2bca95dc2f (patch) | |
tree | a8f443fd971978da9c2202cd2217efbcce8a25da /www-client | |
parent | Version bump. Add patch to fix hp-systray for kde5. This fixes bug #525028. T... (diff) | |
download | historical-cea4ffa6e674fe44e621cdc9931f4d2bca95dc2f.tar.gz historical-cea4ffa6e674fe44e621cdc9931f4d2bca95dc2f.tar.bz2 historical-cea4ffa6e674fe44e621cdc9931f4d2bca95dc2f.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-40.0.2182.3.ebuild | 603 |
3 files changed, 626 insertions, 15 deletions
diff --git a/www-client/chromium/ChangeLog b/www-client/chromium/ChangeLog index 5671dcd5f1df..4e9cc41e3993 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.1147 2014/10/11 10:04:21 phajdan.jr Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.1148 2014/10/11 10:25:22 phajdan.jr Exp $ + +*chromium-40.0.2182.3 (11 Oct 2014) + + 11 Oct 2014; Pawel Hajdan jr <phajdan.jr@gentoo.org> + +chromium-40.0.2182.3.ebuild: + Dev channel bump. *chromium-39.0.2171.19 (11 Oct 2014) diff --git a/www-client/chromium/Manifest b/www-client/chromium/Manifest index 2a1d0b0d11de..be2c37ddfea6 100644 --- a/www-client/chromium/Manifest +++ b/www-client/chromium/Manifest @@ -12,26 +12,28 @@ AUX dot-gclient 174 SHA256 0ae6d69323d1d286de7ef1fa62c330536ada7280bda7564fefb5d DIST chromium-38.0.2125.101.tar.xz 248192100 SHA256 d3303519ab471a3bc831e9b366e64dc2fe651894e52ae5d1e74de60ee2a1198a SHA512 fa26435709e278d6406af835fd2cf91c45d2fdc2ba9b93d18124e8eaca191cb205b98031b0e150f7b0b14e630343920d8d5eb23fa19f221e286ccf9e3dbcb47d WHIRLPOOL 0f4a5bdb90eb050a4bb2df1956c89f71a9eb88b359f8932803a8392e81f9b077b65f2d1dc8e5242a50e97e61894d00b8055bc3dcd46d3ec2be4a2c6f554e1aa3 DIST chromium-39.0.2171.13-lite.tar.xz 194351104 SHA256 85811190f55cbfd4fa46bb5d32e114803c11a4db436f139c5982381cb53b8fb5 SHA512 cd50014e4c5a111afbbe77ab92b27934154380f8ddc56640a9cabc2218b0b43efe0f7a46a3a1c1c2824b5804db57bb1ded6b5fed0001b2d098153359076a6414 WHIRLPOOL 5f5f1ca4f631b0e419a4dd3917d0bbfd607b026787a6dc24b5e0b75401dc830c35e0d2999f7a1fcedac99e81f18fc04eadc624230574c15e2b1efe9c1e4d3229 DIST chromium-39.0.2171.19-lite.tar.xz 194357312 SHA256 a42b7dab132f1a06326d7374c309bfb13537034c17ab6879c9dfa0ec4f723164 SHA512 1987c518b8bae374c2d914b716cc96f0656958077ce489811058a126091ef128b4b73068c50055baa23db5792f17cb638523fe4213b152d57ddc170d908169d4 WHIRLPOOL 7fe0da6970b15c8fd4aca9389e0d2410651df5be6ecf3bee9224dd0f67797e31c710ca63792859fdb400c106bec32a3b88d9fcfa8322619a431eaa3f336daafd +DIST chromium-40.0.2182.3-lite.tar.xz 194671100 SHA256 444ec9cea19b89122ecc5676546994768a6745e0019f1eb26f07c0a2d26fcdf4 SHA512 bc037b3f71821e439a5ab76b75560e25d97afa1760db49cac44578e8e93f28d44a097b0a52eab7614a3327809eab0f2fb2c4a43ac7b5a4885e4b9998c6bfd78f WHIRLPOOL 4458fe76500e9d10f4009c5367417548815a59c27ccfe44d770e268576763b2016f6f5ffa4156183a30efbaf0373810f6dd61a0856e6595e4d66139f79083d76 EBUILD chromium-38.0.2125.101.ebuild 18324 SHA256 06fe5b63163de14d30704825d70516fc56bf423a4496ae18f648ec0c0ad6b8bf SHA512 b5bcc34f64636ffd60cd61961826754438856e8e9a5e5ba910efe70dfa1f273886a87aea861b3407760cbb31933e61e46279750dec90844060096b9b97efcc13 WHIRLPOOL 99524167874f2170a2f50867379b524870980d949ff9e517ec767d38bcbfa9bf84edb0ac48e2efed051d2766baa71b3017a44383b6a1a28bd09fe238e905ca59 EBUILD chromium-39.0.2171.13.ebuild 18446 SHA256 9f5a7ce3ce811d51d30fae4eb1673eb86e17d1665f1ecdc14e5abf2f89c82921 SHA512 77fab75fb6b6df8fb7aa9ffe7d046038d4414ed35bb82fdbe8beeffe1af605197b704a6b9f638d5ebfb4c869edc9f15b117fdee394052f48d95eb666e7d72ac5 WHIRLPOOL 525c97f95e3e60255a12162610f0e8d966da964ff98937a3fe242ca267e32e8cee0dfbdaf4d7256b915971d9a80546555f32db1b8d8f354f4e3b70f7ea729532 EBUILD chromium-39.0.2171.19.ebuild 18446 SHA256 2cd226bdf41734cb8b170853555b23652aa9b3fb8a7fbb574f0ccefbae54e5f1 SHA512 07b728457e1863338ac6346e7c7e19bd4694c66aab9189fede2daf567f7d5e8d6ba5815d09db2fb52c2af9ac9978fa09c14f3705ff1d3dce08b81e8eb1400ec1 WHIRLPOOL 3f6c6a8dab87248e56ef8c4018daefc365da901de89f2df29ad67a96e4deb67b15412b349b54022674e1572c83b606509e5bff97057368f330385498182089e2 -MISC ChangeLog 118508 SHA256 42303d4ef66c775c50d4036ea1b7e2cfba673f6fd68657eb2647855fb66f5b0a SHA512 03d52ff7e0fcaf558e16fbad88f9887b978d82a55d9c4dbe332196a00a12a0cb235e9b319c6ad2e18be1c248d398e9055fb02ddc9cb13deeace9fbe45e6c8aa3 WHIRLPOOL 61ed8c25c8b90e879cc45d3231eed6b35e6ee5ae2454508d9f12f2ba0a73b8d6a9c97377be950870c6ef5956a09a945c3b5a509033c8c84427e0570bdf295153 +EBUILD chromium-40.0.2182.3.ebuild 18535 SHA256 87ac7846da8af06be7fed28b8636c35159c6cb4744c63ea449c5d7e072ba746b SHA512 0f9e61cef1bc7b5451d1aebe720a49c32922a101ee1f2cc7c0bea06af6036ffac37fffdefbe10bf40752be8c8eee76161a36d1fa74c2607d617e2cbcc8153e6f WHIRLPOOL 38232dc8675f77b44440d5ad27732ef15d3453c229100c54a532e1811522509902142c80d09a376076aa64904da2444caa1eafb6b2162723fbeea9950914bb5e +MISC ChangeLog 118653 SHA256 8deec16a6cc2ec4089dbd31d424607df7b76e815cabe4008638b9506c852b45b SHA512 de272894c07a149c59298cf14b01767a97ee04c8b061448613dee5d84a8def95fe4724dfd4c7d02b57a25c0a82cebfa02630dccb193c107e1751946bac2cf67c WHIRLPOOL 179202e0800f9ef82b5e612d9dc3da06b634d22d84a24aca4a6d15b56723c7a5c7271aa4944f2d5cd9bad29560fe4a4a4a66e1e49a42cf744b9ab962289fd20b 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 -iQIcBAEBCAAGBQJUOQHlAAoJEE8aJVXqcZkdVs4P/RPYojaQSRWtQo3BLnNhL+H3 -luFLeeMzS8k/0mcOMbhnDTWOiVN0HHoI1iCBFQmDsQt8g/NHvYcl7x5xCJB8y/nG -P1ICqY5QWqMbR86GP7DIK1CaSeCsEsZkeZJmz+CnX41SQ8YZrcdJq8/G87PlbHLd -2iKxIrpH/bGT37Kcj+IiGmm02z2KfT5Z14vfXtlmXkQsFwcJPigQsg3gLXIWodpV -iM3WopRz4BczUD6uheshqlje+6O5tjeBVybvaN5Q77eqKt/UZgsTnJSZh3V/k9aX -zEqRQTFl2BFCgd6NAgOJe6lxB5kzAAZaeZQIgUq+0nm87iffHD+qNICpsFIvIyc4 -eJM98MjqzUYFVjBbVe7Duq4uuzsuGmS+Eyen7HWkpkeSXmDfDoGxRM/B1L7WPll4 -AQK2EEVz2+BKQ/QjzbTBGF14EaGXkhLhR0C9NYwfpz4dhRD1MwIo3ke9IWg3sVZ/ -lGke85zVeMcxanhnMl0tJFSH1MHAqzmleglERdG6eJEsmnYhvdxFKe8MANVh2GOK -mbfsjg/0aR8zPHL5h28gtne9NZSt4GmlWJxAdy6s9FvJYEDGpYO7UjZjN7JelyUz -5NrBis0Ob0c3f66hhepPfnKZKg0OVpxjREUgUWss0btjOP4jc2CI4XNvJHJlJz/9 -hToqHoy9cCqeSNoOSDde -=a2bn +iQIcBAEBCAAGBQJUOQYOAAoJEE8aJVXqcZkdZaMP/jNbq99zBov4EgYhCYr3X9jR +5L7ff7oz8zDkueX7QfrPLx5YgvCVOkDRtGQfPcrYlRE1fM/oE9GK5qZn0WTOFaKS +eFzFQAwvoqwr4bZD47pSQChVP2QCK+VZ9HQcM1saOuH5Atncd9DRSsULAwTmUnhv +4pzNGZLDKZy64R6Z6FScUHWG2VM7dd+Zs/dstee5KSHa5lGSOlzp5PrWQdQbnb9F +A/ysS0UeCmAbaBSxD+qRf9fv7jKxQoSPbLs1uUnuYQIuNkse3SgiKyb6TLIboZ9R +sT0YmKcq/wodHzQTItOzi6ZLXrSP0loAsTVbCMth2JEer8hJnuoBKjVCsKk/eqy/ +W6owDGjmuzdOzrwNO30rfqQelKmdBU13R9HlQldXI9egP1G7lV6mR1zUPL2hVZzy ++I4cAeenfg6qv7A2Q1R8HIk8juYL+VIUr1GjTr6voLrjU8vzMB0rtYgWfDgKAwqp +OcpEcKllcOKG0JxFsQl5kC3s9N6v1BEp0KqOzCih2ij6NEm2O9ZjnTqJRWfvSqU1 +M1leCdZsm4E5giVWCtBkdryKs7dr7rqZ5yVfVz4VINFAw2eJm3chFiMZOzZ24T7p +fElAEy2odW5q5wLno2zqWt67Ymt9d6HtGhfPI8HWjReczyymfFH1fMrqMd2+vtwU +C5ZdsLYSw2umctX42EK6 +=e4mq -----END PGP SIGNATURE----- diff --git a/www-client/chromium/chromium-40.0.2182.3.ebuild b/www-client/chromium/chromium-40.0.2182.3.ebuild new file mode 100644 index 000000000000..721b49b42b76 --- /dev/null +++ b/www-client/chromium/chromium-40.0.2182.3.ebuild @@ -0,0 +1,603 @@ +# 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-40.0.2182.3.ebuild,v 1.1 2014/10/11 10:25:22 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" + +# 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/protobuf-2.5.0-r1:= + 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 ) + selinux? ( sec-policy/selinux-chromium )" +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 + 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/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/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/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/jszip' \ + 'third_party/trace-viewer/third_party/tvcm' \ + 'third_party/trace-viewer/third_party/tvcm/third_party/beautifulsoup/polymer_soup.py' \ + 'third_party/trace-viewer/third_party/tvcm/third_party/d3' \ + 'third_party/trace-viewer/third_party/tvcm/third_party/gl-matrix' \ + 'third_party/trace-viewer/third_party/tvcm/third_party/polymer' \ + '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/kernel' \ + 'v8/src/third_party/valgrind' \ + 'v8/third_party/fdlibm' \ + --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_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_protobuf=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 +} |