From 13c52898d17a941694b9846050b507f47996b78a Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Mon, 2 Sep 2013 01:41:56 +0000 Subject: Beta channel bump. Package-Manager: portage-2.2.1/cvs/Linux x86_64 Manifest-Sign-Key: 0x0BBEEA1FEA4843A4 --- www-client/chromium/ChangeLog | 8 +- www-client/chromium/Manifest | 16 +- www-client/chromium/chromium-30.0.1599.0-r1.ebuild | 574 --------------------- www-client/chromium/chromium-30.0.1599.22.ebuild | 574 +++++++++++++++++++++ 4 files changed, 589 insertions(+), 583 deletions(-) delete mode 100644 www-client/chromium/chromium-30.0.1599.0-r1.ebuild create mode 100644 www-client/chromium/chromium-30.0.1599.22.ebuild (limited to 'www-client') diff --git a/www-client/chromium/ChangeLog b/www-client/chromium/ChangeLog index 93eec61886c0..d3f1082f3fdb 100644 --- a/www-client/chromium/ChangeLog +++ b/www-client/chromium/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for www-client/chromium # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.939 2013/08/31 03:27:48 phajdan.jr Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.940 2013/09/02 01:41:53 floppym Exp $ + +*chromium-30.0.1599.22 (02 Sep 2013) + + 02 Sep 2013; Mike Gilbert +chromium-30.0.1599.22.ebuild, + -chromium-30.0.1599.0-r1.ebuild: + Beta channel bump. *chromium-31.0.1612.0 (31 Aug 2013) diff --git a/www-client/chromium/Manifest b/www-client/chromium/Manifest index d59f393a5bdd..ec8a181061ee 100644 --- a/www-client/chromium/Manifest +++ b/www-client/chromium/Manifest @@ -24,24 +24,24 @@ AUX chromium.default 148 SHA256 bdac1d32025d53158f96c8ad5bd71a58abdcf02f3a8759a4 AUX dot-gclient 174 SHA256 0ae6d69323d1d286de7ef1fa62c330536ada7280bda7564fefb5d071384ed324 SHA512 ea858464ee8732536633259ed3d11990822e8b8493c07b83218856a127320ba21b9cfc184f7e7a899739bc5f938fbca25224e559fb7db8558cb86fccc743a685 WHIRLPOOL 72a5a9af7955e653151090b555c6a67a261ff807871fdda16d7c3fabf4b52449ac9caae466ba51a17d2efed74a68adc32687599ea4287cc033e75f787d874b55 DIST chromium-29.0.1547.57-lite.tar.xz 124488252 SHA256 30c949120f7fb2e1d020b4a9d755baf139cebc9a1dbcc32cb06db2314c917805 SHA512 5b697d106013132cf12daf7f8c636637ca2b42ba3fd7bd6e1cf7bc29958e9009ae66b1232f19021f6e6314004a75061d18c752150399a5c274e63291c8e5af27 WHIRLPOOL e8c62ea0816032786f875b909f18f20f884fe25ac94a7e99d11b4e28ad30431754a56918baac32da063fbc3c6dcdb700154882bec77fa870afc1b5bf50b0b6f8 DIST chromium-29.0.1547.57-testdata.tar.xz 108866300 SHA256 76f73b00cfe8de9453a34f5b874761b55ceaab8a13501c2c630bfc4b38bdeb42 SHA512 7911b20072e22a7279d473d4b13f2d5fdffdec77dde4edcf1deb025d7cc63d3d28e72281ac76c4f2afea780ef69eeb7934de31aa29c7af94c038fd82fbc226fc WHIRLPOOL 0bc2119dc72a6cf4fb783d21da83cdbe2cc170b5d680b50533042c7ace431817414e01e952db9ccbcbaf17c1fb162b437f345631fa68837d02eeb8192d3d40fd -DIST chromium-30.0.1599.0-testdata.tar.xz 108831056 SHA256 278bb78826abfa60732648d980dba0f90f4507d1c89f5443617e072d7ede73d2 SHA512 e589de95fd65f6b3d78f6c63b2b189fd511a1a5c1c198877d83ba1eda431b1696e21f8f9077a76bf50bc5da8530dd4631a48b7fc5cf19f960532cb20b608cd32 WHIRLPOOL 014917313ec86ccd485316eab7496a8cf1c9140511dff7b27153a6b912c438e8d9bb24e722a559a3726766795f7bd318e005e6c0d1f5e328df95205aea6290c3 -DIST chromium-30.0.1599.0.tar.xz 158879916 SHA256 b32fa87680cb3123d95aa72bcafe68d42b9af71012a269be93d4bb6e570ba25d SHA512 970d0d9b73f83fe154e2ee1ccd70b75edec1dc5f07c83f9f94064d72478d477986c32d6188d82b135c49e26b128f717014015f7d4dec7fddf3f1e92116e88145 WHIRLPOOL e5354449d7f6384c06b548eab9948979e48fabda1169a7db8d63b10f62602795ebf3b5518bc17a4b4d2f85f2b630d1f3e94da7a3dbc82c2066944c7b043b6f92 DIST chromium-30.0.1599.15-testdata.tar.xz 108827492 SHA256 a1a81a5cd7c1e35f124c73aed2b4151bbd81054adfef4b8ff1bd32967fc33c1d SHA512 9a5f1d4464bb5da41f3587beced21ad71696752700d046b32c9424ed9f3504bfb79d4b19dfbdbc119ca23e84011327d617e2bdc09796c7f25464d73f98769577 WHIRLPOOL cd24fe866fbf85300a5f6bd709987094d219fe06f3eaf0cb049db94177066b54537a8e05184d62216264441e51bcc2c4cde878200f6487c595989a9f5824a0fd DIST chromium-30.0.1599.15.tar.xz 158886744 SHA256 1dcc84266606cf12fdfee5d14f06d4aa02f4cdd082ee448062a5ca6a9d1d88a2 SHA512 de7877ac0b801b39ad525e1c4c06d61038a435dc8e08569875c74b0fab4886d52465b1c001ae02a8ec49f0f11a14471440aaf135f209c536f780683d416d99e3 WHIRLPOOL f892e33caa9776420a2f95d82bdc9571125d8e42b6b577d1ebe08073002c5bc817ebdef7e70145f084d96ccbeb3aed644c295f6c0e3b66977191ef2bae03ed12 +DIST chromium-30.0.1599.22-testdata.tar.xz 108830984 SHA256 1ab444494ee0123a8dfdbfaf6f05b3b3f031cea5d80937b95cf86a5dddb08afd SHA512 ab71b3b09d6969b019d275665772ce9e37bc18a9d6684d72f34f3ae911bd3531918697e26e590e4de76ad6c362e984491c089aa80fa987b23c92493a476b6320 WHIRLPOOL cacec6623b2f1429ec26975af90615fef6fc3a4b92d71d385e1a0350207149d89f6a22a2b4c85fa9d38499f29bfba078445d493ca49cef979386b70ef947af17 +DIST chromium-30.0.1599.22.tar.xz 158904708 SHA256 284aa90162c66ed10bc5e8c92c885554d2570f4e1722d5973dd959f3ddc1a524 SHA512 c6308f6f821ce4bbb1f2e6f5d5af56bde72b4d32e5891eb201dab27b9ddd0aac96aa6fdd3834bcfda75fa5e2a023048569f6c23cf89255fe7c61c4c1575017e8 WHIRLPOOL 632da1d6d4915cd97fd78a3cb0a4e653676a12636b869f7ff37cd734b994425177a4eede5c27e61980bbb46d1b350a8663ed9df577629468c83e5f9ddf8068af DIST chromium-31.0.1612.0-testdata.tar.xz 108847484 SHA256 c992e31d226f99eb5bca16715f5ad15d1660f61e84b7145e693522232b868933 SHA512 4d72a5f3c9efac22604de0384711d193a77b6d26aade9a9907144807608a9d9712e51a26fd9e2d2f3056ea46ba4092124f0ef0271a594636ae864312a1f1a780 WHIRLPOOL 0f66b1463c941194d3e67eca2b230198bf4769652123ff69ae33985319d6772ba12c3e2fd3af3649a21a708a786dc66fccbb7c7c87ef64ae96485b5357c06a9b DIST chromium-31.0.1612.0.tar.xz 163612784 SHA256 bc50d6bb7ff8357cb4eb48fa24e36ddec24713c232cd8bb0dfeb5fdb248a06a6 SHA512 280d9315025e888c31695c0268b182b1c699006635f7bfc48d7268898ee3c492661a68b74b1247d26f3846aa8bf1db03cb94ec3666888391f5a2d6834c026912 WHIRLPOOL 6551359986d48f73ed8dc919f804dac527af2a6241cc6e0da48169af177c72d0a37d43d186b917ee1750c2ff8d42dbf85786236e2142bce516d9283b33341d0a EBUILD chromium-29.0.1547.57.ebuild 17318 SHA256 9752b28fb54bc748fafdb9d1cd91dfc44d9b203ee18c02b5312cb7848d32fac8 SHA512 d97f15043883bb9285a5e9444ec5c89ba30d3201045f2fce3241eb15d60d45f0949dee8155728857d0a443bee0c64a3d55c33f5a65cf7005b19339167d81e205 WHIRLPOOL ff57e9c23813318d1236c854820b0a89c029b118654e94f020b372e90c70b48c45a67fc664e27e3ecc4fc212f9523b722d595adb6ddc296969f4a410d261495c -EBUILD chromium-30.0.1599.0-r1.ebuild 17766 SHA256 d9b61be532ce3c66efd63abade1475bb0901757aedf80286b1cad05367c1afe6 SHA512 9c7d074a44097aafcb50f36ed8f9cff6a344938d83391636fd6204c43a4f9c32f29e271d7144e7c3bbc4795fe2a26190b2512ef1adca8b8bc7a6c23c73f54c64 WHIRLPOOL 8ba9fbffe6c0dbf14ce2eec1ec7ea9375ca0453e13a98047b06233709cf158dc6e617f6e5373b72d8491e2637301cb1b8792cedcc2940ce152d3d12717508ef1 EBUILD chromium-30.0.1599.15.ebuild 17764 SHA256 fb6ab6673f206e64dc0a886711f22df49d73f8962f1f695c0b657a2f1ba1b9d5 SHA512 b8720cac2c9b868798e4cb252752e685a89d20bf1ba7c9158c0d170611c18166c5467478b7190add7b307870c57b1ee95d16e76a4ebdb0adbb24046e1b935a32 WHIRLPOOL 87e34b0084247d23fe0670677ad71de9066ddaf4bbe42c0dadb2136836c3f87d5a65f75ec07545b195e5a6155bfef0d9c165036fc5a30f209a27dd094e6cd187 +EBUILD chromium-30.0.1599.22.ebuild 17764 SHA256 45e694ce4c8ce98403f52ff79f32d7c65dc9270606f139d8245b3201afee3f40 SHA512 8658eb6eadc861b60284b5eaa7df7846bc1546d3cc175060e74043976fd3fbb14de5f147ae6464637a1b375d66de79948684066f0689e3781b25e836c37e9e50 WHIRLPOOL 2705e6798b1fda9fa87bb894e41c3a5f98263c91e675c67cb567852b2619bd2ce5700bf0446e582c3083e5959c80ef9ece04bdca5a8e034168e94d43155d1d43 EBUILD chromium-31.0.1612.0.ebuild 17794 SHA256 d546e83b9b00b114a0fd8f736a425948da506b70a1b16d12e9675c67c3cb3c48 SHA512 dc9cb98969f794acc19fa46986e9ed48fd41d51ce42feea5eb0cccf9e59b2ef116b46cf4566a99b66f36635604183f206c0720c3ecf7874213dc0296ce9215e9 WHIRLPOOL 19381b000ded3f011c42ce3ad2a7a906393b5289103efaffdbfdad81f929c7a0e41b75e4ba5e34f612d598b5541097500cb8535e855392f8c09f5487f6c2b8d1 EBUILD chromium-9999-r1.ebuild 19833 SHA256 8cd6b452742237dfa7e79fd250eec6a03251c8990e8b3932fd3adb0cd37ba6df SHA512 0a2fd03dfb8acbc44921970b83538bf2c5a54153f7aca3c0cbc89edfee9e0ee2255900e86d38078eb67c1995311380a9a964bab5ce0fc9c1f0c415f022a9cba7 WHIRLPOOL 94ab22bcab2ae06e373c4dceb1b711d245a409d4e430d5e4632ea464dcd8fab1c63ceac7062b9e40e02d7ec9b4932e0cc211bc10ee58dcf5239be094678c9fd7 -MISC ChangeLog 80361 SHA256 6f95fddbe6ba995662ad415ba1348507fe20574dbf555b36162d21876031afa7 SHA512 fcccf53bb1a4c8a3707b02bbe6263844f97d7b1b85391220de92c4df873c662ef945890c4198e6d659c5ba3d74eb21777fc622e013639ee9f9f6d178d56b6ca1 WHIRLPOOL bb6d264a8d7b8baf22482c5390bc605c3ae3408ee5c4a05d301b03f486528aa85d036f7986d11443254fc9f311021b061f19902084a041fbde26a2e1863d3769 +MISC ChangeLog 80533 SHA256 096c705814e3a726993871c383693e3aec8232cbc8aa32be6e2aef1f6edb13b7 SHA512 eaa5810cb7144a8b3b26158e5dac466c6895cb8e5c82f712a83c712568e69e6c238d41aa4b77ca95b89832f2641ad630a82bcc84806cb38ed44d010c2fecf4fd WHIRLPOOL a32284d80fb6dbb4020af826deba05fd39673dc1447672e3c19bab1ed29c1766a63f9cd2bd9e13950e543f959db18f89f2662ab8b06df97d58a119e85329e11e MISC ChangeLog-2011 114031 SHA256 e2c2c75785c5eaf78b6efe01e357279cbb7be0c89d00b4053f475e963916fa54 SHA512 8e14759348333bdbd7c338080472789d7bbb1ece1ca5817bac6306bdcb33dda1e23bf3055cbb3b7bcee9362b6900bba1ace7ba73f353570a74d3ed761c9198cc WHIRLPOOL 810b6423c53f892a4b0964380b8190dec2a8783d560a9cb0baec93a77d879186201055382ca05975ae242e16728529ae85445db003fdd425355292d17817157b MISC metadata.xml 703 SHA256 ab48e17b94dc6a8e77b4ef786b60e1518ec079a6b79a733586ac4f39c316ea7e SHA512 4e96d1190cc6d3f1bba5dfcae6bd5699cf9710b8c4c75a1ce66974824cb4f86fe0917f81838c9fb254f0be064e07ce9060d4677938a3a819cff7d1b24e33df1f WHIRLPOOL 4705ddaaecaf5dfd1c611ceabb905991495105078afcacf71b6f389cd3a0649ce46f954ce600ab9e6f66f05d55b4727f856e6c469b0995c2457c8c3715eba8b8 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.20 (GNU/Linux) +Version: GnuPG v2.0.21 (GNU/Linux) -iEYEAREIAAYFAlIhYx0ACgkQuUQtlDBCeQKI9wCfZKaLqyihT4yNJ0nR9yBJb3oY -vJcAn2zxyfmPayiPXSCcbcC0s/uqLDsx -=Cwb+ +iF4EAREIAAYFAlIj7OMACgkQC77qH+pIQ6QjDwEApz6oLoXWQlTgeNBxD2yeJ9p9 +52Y6FeNvTHhNVIJ7HbIBAKzMJbFeL09B6ZHLGIU5jyREobVIJlfYNzs81QA82IsY +=Ah9A -----END PGP SIGNATURE----- diff --git a/www-client/chromium/chromium-30.0.1599.0-r1.ebuild b/www-client/chromium/chromium-30.0.1599.0-r1.ebuild deleted file mode 100644 index 047bc0188d8f..000000000000 --- a/www-client/chromium/chromium-30.0.1599.0-r1.ebuild +++ /dev/null @@ -1,574 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-30.0.1599.0-r1.ebuild,v 1.1 2013/08/18 02:31:21 floppym 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 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}.tar.xz - test? ( https://commondatastorage.googleapis.com/chromium-browser-official/${P}-testdata.tar.xz )" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~arm ~x86" -IUSE="bindist cups gnome gnome-keyring gps kerberos neon pulseaudio selinux +system-ffmpeg system-sqlite 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:= - system-sqlite? ( dev-db/sqlite:3 ) - cups? ( - dev-libs/libgcrypt:= - >=net-print/cups-1.3.11:= - ) - >=dev-lang/v8-3.19.17:= - =dev-lang/v8-3.20* - >=dev-libs/elfutils-0.149 - dev-libs/expat:= - >=dev-libs/icu-49.1.1-r1:= - >=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.12.3:= - dev-libs/protobuf:= - dev-libs/re2:= - gnome? ( >=gnome-base/gconf-2.24.0:= ) - gnome-keyring? ( >=gnome-base/gnome-keyring-2.28.2:= ) - gps? ( >=sci-geosciences/gpsd-3.7:=[shm] ) - >=media-libs/alsa-lib-1.0.19:= - media-libs/flac:= - media-libs/harfbuzz:=[icu(+)] - >=media-libs/libjpeg-turbo-1.2.0-r1:= - media-libs/libpng:0= - media-libs/libvpx:= - >=media-libs/libwebp-0.3.1:= - media-libs/opus:= - media-libs/speex:= - pulseaudio? ( media-sound/pulseaudio:= ) - system-ffmpeg? ( >=media-video/ffmpeg-2.0.1:0=[opus] ) - sys-apps/dbus:= - sys-apps/pciutils:= - sys-libs/zlib:=[minizip] - virtual/udev - x11-libs/gtk+:2= - x11-libs/libXinerama:= - x11-libs/libXScrnSaver:= - x11-libs/libXtst:= - kerberos? ( virtual/krb5 ) - selinux? ( sec-policy/selinux-chromium )" -DEPEND="${RDEPEND} - ${PYTHON_DEPS} - !arm? ( - dev-lang/yasm - ) - dev-lang/perl - dev-perl/JSON - dev-python/jinja - dev-python/ply - dev-python/simplejson - >=dev-util/gperf-3.0.3 - dev-util/ninja - sys-apps/hwids - >=sys-devel/bison-2.4.3 - sys-devel/flex - virtual/pkgconfig - test? ( dev-python/pyftpdlib )" -RDEPEND+=" - !=www-client/chromium-9999 - x11-misc/xdg-utils - virtual/ttf-fonts" - -if ! has chromium_pkg_die ${EBUILD_DEATH_HOOKS}; then - EBUILD_DEATH_HOOKS+=" chromium_pkg_die"; -fi - -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 && ! use system-ffmpeg; then - elog "bindist enabled: H.264 video support will be disabled." - fi - if ! use bindist; then - 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}-gpsd-r0.patch" - epatch "${FILESDIR}/${PN}-system-ffmpeg-r7.patch" - epatch "${FILESDIR}/${PN}-system-ply-r0.patch" - - epatch_user - - # Remove most bundled libraries. Some are still needed. - find third_party -type f \! -iname '*.gyp*' \ - \! -path 'third_party/WebKit/*' \ - \! -path 'third_party/angle_dx11/*' \ - \! -path 'third_party/cacheinvalidation/*' \ - \! -path 'third_party/cld/*' \ - \! -path 'third_party/cros_system_api/*' \ - \! -path 'third_party/ffmpeg/*' \ - \! -path 'third_party/flot/*' \ - \! -path 'third_party/hunspell/*' \ - \! -path 'third_party/iccjpeg/*' \ - \! -path 'third_party/jstemplate/*' \ - \! -path 'third_party/khronos/*' \ - \! -path 'third_party/leveldatabase/*' \ - \! -path 'third_party/libjingle/*' \ - \! -path 'third_party/libphonenumber/*' \ - \! -path 'third_party/libsrtp/*' \ - \! -path 'third_party/libusb/*' \ - \! -path 'third_party/libxml/chromium/*' \ - \! -path 'third_party/libXNVCtrl/*' \ - \! -path 'third_party/libyuv/*' \ - \! -path 'third_party/lss/*' \ - \! -path 'third_party/lzma_sdk/*' \ - \! -path 'third_party/mesa/*' \ - \! -path 'third_party/modp_b64/*' \ - \! -path 'third_party/mongoose/*' \ - \! -path 'third_party/mt19937ar/*' \ - \! -path 'third_party/npapi/*' \ - \! -path 'third_party/openssl/*' \ - \! -path 'third_party/ots/*' \ - \! -path 'third_party/pywebsocket/*' \ - \! -path 'third_party/qcms/*' \ - \! -path 'third_party/sfntly/*' \ - \! -path 'third_party/skia/*' \ - \! -path 'third_party/smhasher/*' \ - \! -path 'third_party/sqlite/*' \ - \! -path 'third_party/tcmalloc/*' \ - \! -path 'third_party/tlslite/*' \ - \! -path 'third_party/trace-viewer/*' \ - \! -path 'third_party/undoview/*' \ - \! -path 'third_party/usrsctp/*' \ - \! -path 'third_party/webdriver/*' \ - \! -path 'third_party/webrtc/*' \ - \! -path 'third_party/widevine/*' \ - \! -path 'third_party/x86inc/*' \ - \! -path 'third_party/zlib/google/*' \ - -delete || die - - # Remove bundled v8. - find v8 -type f \! -iname '*.gyp*' -delete || 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" - - # Optional tcmalloc. Note it causes problems with e.g. NVIDIA - # drivers, bug #413637. - myconf+=" $(gyp_use tcmalloc linux_use_tcmalloc)" - - # 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_libusb (http://crbug.com/266149). - # 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_libvpx=1 - -Duse_system_libwebp=1 - -Duse_system_libxml=1 - -Duse_system_libxslt=1 - -Duse_system_minizip=1 - -Duse_system_nspr=1 - -Duse_system_opus=1 - -Duse_system_protobuf=1 - -Duse_system_re2=1 - -Duse_system_snappy=1 - -Duse_system_speex=1 - -Duse_system_v8=1 - -Duse_system_xdg_utils=1 - -Duse_system_zlib=1 - $(gyp_use system-ffmpeg use_system_ffmpeg)" - - # TODO: patch gyp so that this arm conditional is not needed. - if ! use arm; then - myconf+=" - -Duse_system_yasm=1" - fi - - # TODO: re-enable on vp9 libvpx release (http://crbug.com/174287). - myconf+=" - -Dmedia_use_libvpx=0" - - # 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 gps linux_use_libgps) - $(gyp_use gps linux_link_libgps) - $(gyp_use kerberos) - $(gyp_use pulseaudio)" - - if use system-sqlite; then - elog "Enabling system sqlite. WebSQL - http://www.w3.org/TR/webdatabase/" - elog "will not work. Please report sites broken by this" - elog "to https://bugs.gentoo.org" - myconf+=" - -Duse_system_sqlite=1 - -Denable_sql_database=0" - fi - - # 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. - myconf+=" - -Dlinux_use_gold_binary=0 - -Dlinux_use_gold_flags=0" - - # Always support proprietary codecs. - myconf+=" -Dproprietary_codecs=1" - - if ! use bindist && ! use system-ffmpeg; then - # Enable H.264 support in bundled ffmpeg. - myconf+=" -Dffmpeg_branding=Chrome" - fi - - # 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 - myconf+=" -Dtarget_arch=x64" - elif [[ $myarch = x86 ]] ; then - myconf+=" -Dtarget_arch=ia32" - elif [[ $myarch = arm ]] ; then - # 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+=" -Dtarget_arch=arm - -Dsysroot= - $(gyp_use neon arm_neon) - -Ddisable_nacl=1" - else - die "Failed to determine target arch, got '$myarch'." - fi - - # 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=" - - # 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} - - build/linux/unbundle/replace_gyp_files.py ${myconf} || die - egyp_chromium ${myconf} || die -} - -src_compile() { - # TODO: add media_unittests after fixing compile (bug #462546). - local test_targets="" - for x in base cacheinvalidation content crypto \ - gpu net printing sql; do - test_targets+=" ${x}_unittests" - done - - local ninja_targets="chrome chrome_sandbox chromedriver" - if use test; then - ninja_targets+=" $test_targets" - fi - - # Even though ninja autodetects number of CPUs, we respect - # user's options, for debugging with -j 1 or any other reason. - ninja -C out/Release -v -j $(makeopts_jobs) ${ninja_targets} || die - - pax-mark m out/Release/chrome - if use test; then - for x in $test_targets; do - pax-mark m out/Release/${x} - done - fi -} - -src_test() { - # For more info see bug #350349. - local LC_ALL="en_US.utf8" - - if ! locale -a | grep -q "${LC_ALL}"; then - eerror "${PN} requires ${LC_ALL} locale for tests" - eerror "Please read the following guides for more information:" - eerror " http://www.gentoo.org/doc/en/guide-localization.xml" - eerror " http://www.gentoo.org/doc/en/utf-8.xml" - die "locale ${LC_ALL} is not supported" - fi - - # If we have the right locale, export it to the environment - export LC_ALL - - # For more info see bug #370957. - if [[ $UID -eq 0 ]]; then - die "Tests must be run as non-root. Please use FEATURES=userpriv." - fi - - # virtualmake dies on failure, so we run our tests in a function - VIRTUALX_COMMAND="chromium_test" virtualmake -} - -chromium_test() { - # Keep track of the cumulative exit status for all tests - local exitstatus=0 - - runtest() { - local cmd=$1 - shift - local IFS=: - set -- "${cmd}" "--gtest_filter=-$*" - einfo "$@" - "$@" - local st=$? - (( st )) && eerror "${cmd} failed" - (( exitstatus |= st )) - } - - local excluded_base_unittests=( - "ICUStringConversionsTest.*" # bug #350347 - "MessagePumpLibeventTest.*" # bug #398591 - "TimeTest.JsTime" # bug #459614 - "SecurityTest.NewOverflow" # bug #465724 - ) - runtest out/Release/base_unittests "${excluded_base_unittests[@]}" - - runtest out/Release/cacheinvalidation_unittests - - local excluded_content_unittests=( - "RendererDateTimePickerTest.*" # bug #465452 - ) - runtest out/Release/content_unittests "${excluded_content_unittests[@]}" - - runtest out/Release/crypto_unittests - runtest out/Release/gpu_unittests - - # TODO: add media_unittests after fixing compile (bug #462546). - # runtest out/Release/media_unittests - - local excluded_net_unittests=( - "NetUtilTest.IDNToUnicode*" # bug 361885 - "NetUtilTest.FormatUrl*" # see above - "DnsConfigServiceTest.GetSystemConfig" # bug #394883 - "CertDatabaseNSSTest.ImportServerCert_SelfSigned" # bug #399269 - "CertDatabaseNSSTest.TrustIntermediateCa*" # http://crbug.com/224612 - "URLFetcher*" # bug #425764 - "HTTPSOCSPTest.*" # bug #426630 - "HTTPSEVCRLSetTest.*" # see above - "HTTPSCRLSetTest.*" # see above - "SpdyFramerTests/SpdyFramerTest.CreatePushPromiseCompressed/2" # bug #478168 - "*SpdyFramerTest.BasicCompression*" # bug #465444 - ) - runtest out/Release/net_unittests "${excluded_net_unittests[@]}" - - runtest out/Release/printing_unittests - - local excluded_sql_unittests=( - "SQLiteFeaturesTest.FTS2" # bug #461286 - ) - runtest out/Release/sql_unittests "${excluded_sql_unittests[@]}" - - return ${exitstatus} -} - -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 - - # 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 - - if ! use system-ffmpeg; then - doexe out/Release/libffmpegsumo.so || die - fi - - # 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 -} diff --git a/www-client/chromium/chromium-30.0.1599.22.ebuild b/www-client/chromium/chromium-30.0.1599.22.ebuild new file mode 100644 index 000000000000..ec5e0e0e4f3c --- /dev/null +++ b/www-client/chromium/chromium-30.0.1599.22.ebuild @@ -0,0 +1,574 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-30.0.1599.22.ebuild,v 1.1 2013/09/02 01:41:53 floppym 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 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}.tar.xz + test? ( https://commondatastorage.googleapis.com/chromium-browser-official/${P}-testdata.tar.xz )" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="bindist cups gnome gnome-keyring gps kerberos neon pulseaudio selinux +system-ffmpeg system-sqlite 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:= + system-sqlite? ( dev-db/sqlite:3 ) + cups? ( + dev-libs/libgcrypt:= + >=net-print/cups-1.3.11:= + ) + >=dev-lang/v8-3.19.17:= + =dev-lang/v8-3.20* + >=dev-libs/elfutils-0.149 + dev-libs/expat:= + >=dev-libs/icu-49.1.1-r1:= + >=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.12.3:= + dev-libs/protobuf:= + dev-libs/re2:= + gnome? ( >=gnome-base/gconf-2.24.0:= ) + gnome-keyring? ( >=gnome-base/gnome-keyring-2.28.2:= ) + gps? ( >=sci-geosciences/gpsd-3.7:=[shm] ) + >=media-libs/alsa-lib-1.0.19:= + media-libs/flac:= + media-libs/harfbuzz:=[icu(+)] + >=media-libs/libjpeg-turbo-1.2.0-r1:= + media-libs/libpng:0= + media-libs/libvpx:= + >=media-libs/libwebp-0.3.1:= + media-libs/opus:= + media-libs/speex:= + pulseaudio? ( media-sound/pulseaudio:= ) + system-ffmpeg? ( >=media-video/ffmpeg-2.0.1:0=[opus] ) + sys-apps/dbus:= + sys-apps/pciutils:= + sys-libs/zlib:=[minizip] + virtual/udev + x11-libs/gtk+:2= + x11-libs/libXinerama:= + x11-libs/libXScrnSaver:= + x11-libs/libXtst:= + kerberos? ( virtual/krb5 ) + selinux? ( sec-policy/selinux-chromium )" +DEPEND="${RDEPEND} + ${PYTHON_DEPS} + !arm? ( + dev-lang/yasm + ) + dev-lang/perl + dev-perl/JSON + dev-python/jinja + dev-python/ply + dev-python/simplejson + >=dev-util/gperf-3.0.3 + dev-util/ninja + sys-apps/hwids + >=sys-devel/bison-2.4.3 + sys-devel/flex + virtual/pkgconfig + test? ( dev-python/pyftpdlib )" +RDEPEND+=" + !=www-client/chromium-9999 + x11-misc/xdg-utils + virtual/ttf-fonts" + +if ! has chromium_pkg_die ${EBUILD_DEATH_HOOKS}; then + EBUILD_DEATH_HOOKS+=" chromium_pkg_die"; +fi + +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 && ! use system-ffmpeg; then + elog "bindist enabled: H.264 video support will be disabled." + fi + if ! use bindist; then + 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}-gpsd-r0.patch" + epatch "${FILESDIR}/${PN}-system-ffmpeg-r7.patch" + epatch "${FILESDIR}/${PN}-system-ply-r0.patch" + + epatch_user + + # Remove most bundled libraries. Some are still needed. + find third_party -type f \! -iname '*.gyp*' \ + \! -path 'third_party/WebKit/*' \ + \! -path 'third_party/angle_dx11/*' \ + \! -path 'third_party/cacheinvalidation/*' \ + \! -path 'third_party/cld/*' \ + \! -path 'third_party/cros_system_api/*' \ + \! -path 'third_party/ffmpeg/*' \ + \! -path 'third_party/flot/*' \ + \! -path 'third_party/hunspell/*' \ + \! -path 'third_party/iccjpeg/*' \ + \! -path 'third_party/jstemplate/*' \ + \! -path 'third_party/khronos/*' \ + \! -path 'third_party/leveldatabase/*' \ + \! -path 'third_party/libjingle/*' \ + \! -path 'third_party/libphonenumber/*' \ + \! -path 'third_party/libsrtp/*' \ + \! -path 'third_party/libusb/*' \ + \! -path 'third_party/libxml/chromium/*' \ + \! -path 'third_party/libXNVCtrl/*' \ + \! -path 'third_party/libyuv/*' \ + \! -path 'third_party/lss/*' \ + \! -path 'third_party/lzma_sdk/*' \ + \! -path 'third_party/mesa/*' \ + \! -path 'third_party/modp_b64/*' \ + \! -path 'third_party/mongoose/*' \ + \! -path 'third_party/mt19937ar/*' \ + \! -path 'third_party/npapi/*' \ + \! -path 'third_party/openssl/*' \ + \! -path 'third_party/ots/*' \ + \! -path 'third_party/pywebsocket/*' \ + \! -path 'third_party/qcms/*' \ + \! -path 'third_party/sfntly/*' \ + \! -path 'third_party/skia/*' \ + \! -path 'third_party/smhasher/*' \ + \! -path 'third_party/sqlite/*' \ + \! -path 'third_party/tcmalloc/*' \ + \! -path 'third_party/tlslite/*' \ + \! -path 'third_party/trace-viewer/*' \ + \! -path 'third_party/undoview/*' \ + \! -path 'third_party/usrsctp/*' \ + \! -path 'third_party/webdriver/*' \ + \! -path 'third_party/webrtc/*' \ + \! -path 'third_party/widevine/*' \ + \! -path 'third_party/x86inc/*' \ + \! -path 'third_party/zlib/google/*' \ + -delete || die + + # Remove bundled v8. + find v8 -type f \! -iname '*.gyp*' -delete || 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" + + # Optional tcmalloc. Note it causes problems with e.g. NVIDIA + # drivers, bug #413637. + myconf+=" $(gyp_use tcmalloc linux_use_tcmalloc)" + + # 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_libusb (http://crbug.com/266149). + # 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_libvpx=1 + -Duse_system_libwebp=1 + -Duse_system_libxml=1 + -Duse_system_libxslt=1 + -Duse_system_minizip=1 + -Duse_system_nspr=1 + -Duse_system_opus=1 + -Duse_system_protobuf=1 + -Duse_system_re2=1 + -Duse_system_snappy=1 + -Duse_system_speex=1 + -Duse_system_v8=1 + -Duse_system_xdg_utils=1 + -Duse_system_zlib=1 + $(gyp_use system-ffmpeg use_system_ffmpeg)" + + # TODO: patch gyp so that this arm conditional is not needed. + if ! use arm; then + myconf+=" + -Duse_system_yasm=1" + fi + + # TODO: re-enable on vp9 libvpx release (http://crbug.com/174287). + myconf+=" + -Dmedia_use_libvpx=0" + + # 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 gps linux_use_libgps) + $(gyp_use gps linux_link_libgps) + $(gyp_use kerberos) + $(gyp_use pulseaudio)" + + if use system-sqlite; then + elog "Enabling system sqlite. WebSQL - http://www.w3.org/TR/webdatabase/" + elog "will not work. Please report sites broken by this" + elog "to https://bugs.gentoo.org" + myconf+=" + -Duse_system_sqlite=1 + -Denable_sql_database=0" + fi + + # 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. + myconf+=" + -Dlinux_use_gold_binary=0 + -Dlinux_use_gold_flags=0" + + # Always support proprietary codecs. + myconf+=" -Dproprietary_codecs=1" + + if ! use bindist && ! use system-ffmpeg; then + # Enable H.264 support in bundled ffmpeg. + myconf+=" -Dffmpeg_branding=Chrome" + fi + + # 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 + myconf+=" -Dtarget_arch=x64" + elif [[ $myarch = x86 ]] ; then + myconf+=" -Dtarget_arch=ia32" + elif [[ $myarch = arm ]] ; then + # 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+=" -Dtarget_arch=arm + -Dsysroot= + $(gyp_use neon arm_neon) + -Ddisable_nacl=1" + else + die "Failed to determine target arch, got '$myarch'." + fi + + # 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=" + + # 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} + + build/linux/unbundle/replace_gyp_files.py ${myconf} || die + egyp_chromium ${myconf} || die +} + +src_compile() { + # TODO: add media_unittests after fixing compile (bug #462546). + local test_targets="" + for x in base cacheinvalidation content crypto \ + gpu net printing sql; do + test_targets+=" ${x}_unittests" + done + + local ninja_targets="chrome chrome_sandbox chromedriver" + if use test; then + ninja_targets+=" $test_targets" + fi + + # Even though ninja autodetects number of CPUs, we respect + # user's options, for debugging with -j 1 or any other reason. + ninja -C out/Release -v -j $(makeopts_jobs) ${ninja_targets} || die + + pax-mark m out/Release/chrome + if use test; then + for x in $test_targets; do + pax-mark m out/Release/${x} + done + fi +} + +src_test() { + # For more info see bug #350349. + local LC_ALL="en_US.utf8" + + if ! locale -a | grep -q "${LC_ALL}"; then + eerror "${PN} requires ${LC_ALL} locale for tests" + eerror "Please read the following guides for more information:" + eerror " http://www.gentoo.org/doc/en/guide-localization.xml" + eerror " http://www.gentoo.org/doc/en/utf-8.xml" + die "locale ${LC_ALL} is not supported" + fi + + # If we have the right locale, export it to the environment + export LC_ALL + + # For more info see bug #370957. + if [[ $UID -eq 0 ]]; then + die "Tests must be run as non-root. Please use FEATURES=userpriv." + fi + + # virtualmake dies on failure, so we run our tests in a function + VIRTUALX_COMMAND="chromium_test" virtualmake +} + +chromium_test() { + # Keep track of the cumulative exit status for all tests + local exitstatus=0 + + runtest() { + local cmd=$1 + shift + local IFS=: + set -- "${cmd}" "--gtest_filter=-$*" + einfo "$@" + "$@" + local st=$? + (( st )) && eerror "${cmd} failed" + (( exitstatus |= st )) + } + + local excluded_base_unittests=( + "ICUStringConversionsTest.*" # bug #350347 + "MessagePumpLibeventTest.*" # bug #398591 + "TimeTest.JsTime" # bug #459614 + "SecurityTest.NewOverflow" # bug #465724 + ) + runtest out/Release/base_unittests "${excluded_base_unittests[@]}" + + runtest out/Release/cacheinvalidation_unittests + + local excluded_content_unittests=( + "RendererDateTimePickerTest.*" # bug #465452 + ) + runtest out/Release/content_unittests "${excluded_content_unittests[@]}" + + runtest out/Release/crypto_unittests + runtest out/Release/gpu_unittests + + # TODO: add media_unittests after fixing compile (bug #462546). + # runtest out/Release/media_unittests + + local excluded_net_unittests=( + "NetUtilTest.IDNToUnicode*" # bug 361885 + "NetUtilTest.FormatUrl*" # see above + "DnsConfigServiceTest.GetSystemConfig" # bug #394883 + "CertDatabaseNSSTest.ImportServerCert_SelfSigned" # bug #399269 + "CertDatabaseNSSTest.TrustIntermediateCa*" # http://crbug.com/224612 + "URLFetcher*" # bug #425764 + "HTTPSOCSPTest.*" # bug #426630 + "HTTPSEVCRLSetTest.*" # see above + "HTTPSCRLSetTest.*" # see above + "SpdyFramerTests/SpdyFramerTest.CreatePushPromiseCompressed/2" # bug #478168 + "*SpdyFramerTest.BasicCompression*" # bug #465444 + ) + runtest out/Release/net_unittests "${excluded_net_unittests[@]}" + + runtest out/Release/printing_unittests + + local excluded_sql_unittests=( + "SQLiteFeaturesTest.FTS2" # bug #461286 + ) + runtest out/Release/sql_unittests "${excluded_sql_unittests[@]}" + + return ${exitstatus} +} + +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 + + # 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 + + if ! use system-ffmpeg; then + doexe out/Release/libffmpegsumo.so || die + fi + + # 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 +} -- cgit v1.2.3-65-gdbad