diff options
author | Mike Gilbert <floppym@gentoo.org> | 2012-07-11 03:00:55 +0000 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2012-07-11 03:00:55 +0000 |
commit | 8263057dd3dc675c98dde52396d5376868be6067 (patch) | |
tree | 065032365eebd30feca1216515d9d3bc19c8ff66 | |
parent | add missing test to IUSE (diff) | |
download | historical-8263057dd3dc675c98dde52396d5376868be6067.tar.gz historical-8263057dd3dc675c98dde52396d5376868be6067.tar.bz2 historical-8263057dd3dc675c98dde52396d5376868be6067.zip |
Version bump for dev channel release. Resolve bug 424023 by Mathieu Zhang.
Package-Manager: portage-2.2.0_alpha116/cvs/Linux x86_64
-rw-r--r-- | www-client/chromium/ChangeLog | 8 | ||||
-rw-r--r-- | www-client/chromium/Manifest | 12 | ||||
-rw-r--r-- | www-client/chromium/chromium-22.0.1201.0.ebuild | 438 | ||||
-rw-r--r-- | www-client/chromium/chromium-9999-r1.ebuild | 45 |
4 files changed, 482 insertions, 21 deletions
diff --git a/www-client/chromium/ChangeLog b/www-client/chromium/ChangeLog index bcd47e6b240d..ec4da6dc6394 100644 --- a/www-client/chromium/ChangeLog +++ b/www-client/chromium/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for www-client/chromium # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.666 2012/07/11 00:04:26 floppym Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.667 2012/07/11 03:00:55 floppym Exp $ + +*chromium-22.0.1201.0 (11 Jul 2012) + + 11 Jul 2012; Mike Gilbert <floppym@gentoo.org> +chromium-22.0.1201.0.ebuild, + chromium-9999-r1.ebuild: + Version bump for dev channel release. Resolve bug 424023 by Mathieu Zhang. 11 Jul 2012; Mike Gilbert <floppym@gentoo.org> files/chromium-alignment-r0.patch: diff --git a/www-client/chromium/Manifest b/www-client/chromium/Manifest index b83e19bb4df6..bfe359b2e7a7 100644 --- a/www-client/chromium/Manifest +++ b/www-client/chromium/Manifest @@ -22,17 +22,19 @@ AUX dot-gclient 253 SHA256 8c5750251ff681044cc584ef3768fe39c56c7877ade5fb9107298 DIST chromium-20.0.1132.43.tar.bz2 185068725 SHA256 c21bdee0ec136102e10c527a0d98e3a29e40406d8f7eb63e8e0ac23801722824 SHA512 dbd209c1bbcaf005155d8c779c4af486189b8313eb9f68e81177ccb7f07b4875439ca34ec2bd40baace45b64e07bb68cced129c3e60ca35e0651c13975be8fe6 WHIRLPOOL 688689d424eaff904a2b04d666fd3c5c9204d8ce56b4094927eec59fe7006e97fb58c552d9259ccb88fe0956e65d02badca96c26b9dc3dc96562cac089bb94a7 DIST chromium-21.0.1180.0.tar.bz2 192677871 SHA256 ca0f4f76764890f58e1a128d9fcc0ae2a62eeea17318848f4ac24ccbb517cb36 SHA512 1afadf2e5f5dbb3b26f09378bf0ae387c6abd8164334cd7a11725986da0a4cf0188574cb0dc643f7327d15c7e2b4b54758e2c9b8db3bb90ebaad49b0623d8674 WHIRLPOOL f0a8b6cb08fa5521dddd9c1a9e85317da5f89d0d919b1a292cb2a1504bd1c0c5655b6cbfd4607a2a72b31401faadde6015d450d62b9f02cd9d949b05d61e1ce7 DIST chromium-21.0.1180.11.tar.bz2 192864327 SHA256 b6c36afb2b9bbed97950fc390d8986ab14b4f3e9949b7aa56b6dcf3f3842a02e SHA512 38bc6cc55a316a5e1e116ab098ec0eed4fdb390b8de1946e3bcddff98bc202663fb76cde95dd22ff266297a21b648879b2c66700171bac5fc1f6cf1334b844f2 WHIRLPOOL 3449cd0547c73ac059f251cb981193fd7c7380f0bf33602bd546fa6a10e9f7af5dcd605831ffc6ffed509ccb7cbf9b9911d3ee938b6fd745f9c73041976b1f9d +DIST chromium-22.0.1201.0.tar.bz2 192832381 SHA256 5f52531cdf63b56fd504a44ad11c55bd71ecbc754c78c2ebe2342ba1eb0b3341 SHA512 ecd7fd5bd4e9ddf47d3a3b7693d2bcb30815a4a0585b5a14e852ef12128ff454f3a1c04cc12cb8d86fe5916109d5934dc121195e21a4c9e001e2180e31bc3ac7 WHIRLPOOL 57497d56ee7b1b556d80ceeee696812d8800bed3f97de90d9a0deaa0df57f8044371b64d1cc5f71b3409f75daf42928b1606b8c1bae04f7cebf6732a274ca6c2 EBUILD chromium-20.0.1132.43.ebuild 13695 SHA256 7da9177f77bf74b6c8f7b83c922390ffebcaef5bef51af67ab9672ddb0972d27 SHA512 3712d3fdaa1c8c38c83f94f0e6282503f27b9d0a7387972fe5ad6d0ab058661bf64c4d901262842f435bd57f258b1b74b3c7ab5376dfa383d797eccf96ac7933 WHIRLPOOL 0fa0b2e163dcd7ffe5b84d8be2fcc72003c139292a5b25d42e038ab7f3f2109dc53626371f5ce369203539d3265478c636bbd21cd9462966ec06dc01b5a346f4 EBUILD chromium-21.0.1180.0.ebuild 13795 SHA256 598cfe97f130045f91974439f5b2a99c973f5266a4deef04fb6b919584048aef SHA512 7a795c4e0216bd21e98e965067103fe5f3182045352e5a9c38cab88b9e3db223ffb0d6c76c05c4e771da513bbf5df37f9e57d5e32c0a2e257cb0e5ab577cc79b WHIRLPOOL 91e5b2ac1f90e9252502463b9f81f0106d33764ac01d4cb4c58ff51b95de7d822da006c7d00351efb57155ead306d9e268dde5f6b07638346f856689cfd89dd7 EBUILD chromium-21.0.1180.11.ebuild 13793 SHA256 36cba7175521708a6f6fe3619c3d5efd5ce45e44e4c0091dbbad171d240de886 SHA512 3f08bdbfd8fd37bbfef2db28b118976ae27284aefaf4aa5c0971fe429561cb94843a1264e27755dcf982f4d4c464163b7d00ef5e0c3cdd2af46f2ccdc961d91c WHIRLPOOL 48325b01aba81d76e05271d3858450751ed62551b35dc230f8b2f9ad9de5ba95ee086e1d3958cadd313c8fefd73ca83915094b02f33e42a86203c7391910582b -EBUILD chromium-9999-r1.ebuild 15346 SHA256 d9c3da4ec03f8346fb1ad7ff7a89ae87f0a77a36baad16227edd5cbb3e606e76 SHA512 0f1d3a6c843103f4b6ba5ecbfeb289be800c909a2b15cf6de65bda54f6040a650e7de5c839fe56e4935eb03802960bbdb5009eed730cb7925f5c572fae7d6fc0 WHIRLPOOL 762689fbc44e4b61a5997e250aa39414b1cae9765225bbc42a84c6f94a66a62759c4c1d16e8705d79e9cd07ab5032b71d2fd9cf45879c092411662580d2f00b3 -MISC ChangeLog 28086 SHA256 3716fb82e860298e82b4d71d8cbb73703184ad0de1f6e6c6a31dcaac0cfd9bf8 SHA512 6e2fae8877e84fb541748b35b4e6da1265440cf4621e8c022ff02316eefae28add22d41f650fed76db5e6dd8be13c0a68eb4f9fd1aeb11e5a85754a9506d7d0f WHIRLPOOL bac00c387a83529a52ab1da8ef97896fa892abff48c507190555e0a324c560f25359d034ee24580645c3ea8354517baba22f9b644027bc48ed3f6dbac8b43200 +EBUILD chromium-22.0.1201.0.ebuild 13764 SHA256 db4560e1f7bdf1879718bfb0eca6b8fd230ecd19760d1a4be4ff85d890d3b56f SHA512 1165ae9a10d58fc8b1fbb85016ac43bf3101aad7c66195a7c920a512f405447f301e3999c2c2ff20d3d8f09c7466968efefc625f314b4f1fde4db1efeea2c479 WHIRLPOOL 9b45d1546f1c09467bcf5773a97bb5c7d9ece9679b8185b45fe0347f1f49d2916b1b3584ab2d212e5d170613c5f47f44dcdefe88b4839cae368de4ad90803014 +EBUILD chromium-9999-r1.ebuild 15315 SHA256 c7c98fce4db257890f98951d663010ba41ad3d9e4d66c4a93a27384d206e5a53 SHA512 de6999180835eaaf658a11cfb0d7f8bc669dc188dbf25e106f35df5a5f88bfca8aa7ec2dac6b83a59639db38106eda1a08ac5643ffafaa5e36b472aee2b1e579 WHIRLPOOL 41f7776779020e3258beb2422d3acf2507d9e2c3e0d8cc6276f8037c350c3948b5144324c9181234c8ea44aaacdef4df4a2e85874073935262a42f1370943790 +MISC ChangeLog 28307 SHA256 f5157459efd3b2a02424a2f9e450fb5336ea55335247edf2c16121da00f0271e SHA512 3613b8ae0bc9f97fad8e9c4de49e294c4bc1a2c6deabeee7ec3d48ea5b9931339016e27f4b5c91dedc6b9e6beda6d2b0c6973e17f9ad4d0f538b5d0efa9ddb9f WHIRLPOOL 74e2d18f18c8306b47c562dbe9314fb6c36968e0c581268bdb9ee8716176cccbfea76f631130a66301710331ca84d84048d0b8c85f0edec0e9ddc7eb77af698d MISC ChangeLog-2011 114031 SHA256 e2c2c75785c5eaf78b6efe01e357279cbb7be0c89d00b4053f475e963916fa54 SHA512 8e14759348333bdbd7c338080472789d7bbb1ece1ca5817bac6306bdcb33dda1e23bf3055cbb3b7bcee9362b6900bba1ace7ba73f353570a74d3ed761c9198cc WHIRLPOOL 810b6423c53f892a4b0964380b8190dec2a8783d560a9cb0baec93a77d879186201055382ca05975ae242e16728529ae85445db003fdd425355292d17817157b MISC metadata.xml 267 SHA256 4e6afae33f60d6752cacf2785f7f9a396b8711cce605b73d0d752a4af7d01fc8 SHA512 f6d64d50bfbfad74db0ca0454fcba335a1744d11a44f921f19545c478219c507994cfcaba13160215cbb5a77d0bc82cdbf64a90a4b1b169184e404e404f9029e WHIRLPOOL 66a5cdeac3a86b910040d4c601fef50465fb0e0a0805e6b1c22cde2a83a63a2a1d441643af5454775becdfc65c71116d00b27703a7dd15ced183fb223c32f075 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) -iF4EAREIAAYFAk/8ww8ACgkQC77qH+pIQ6RY4gEAmgdpa2RD5hwUO0h+YTxKIU7o -7LN+a+hJ/NsPdXg7v2MA/1I9HKgMQ4vPHUX6XhN6MoRvEoUh5RiloGFK6l1S2A4Q -=XghL +iF4EAREIAAYFAk/87G4ACgkQC77qH+pIQ6SdwwEAvLkCAoq7OKe12AcFOlLy8UC8 +731yAc/euOdhpFmhybQA/RyZzNSg0AhRHPrSFqqHD3WQZBUI+8DdywggzP8L4f21 +=lpbA -----END PGP SIGNATURE----- diff --git a/www-client/chromium/chromium-22.0.1201.0.ebuild b/www-client/chromium/chromium-22.0.1201.0.ebuild new file mode 100644 index 000000000000..770e5f0706b8 --- /dev/null +++ b/www-client/chromium/chromium-22.0.1201.0.ebuild @@ -0,0 +1,438 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-22.0.1201.0.ebuild,v 1.1 2012/07/11 03:00:55 floppym Exp $ + +EAPI="4" +PYTHON_DEPEND="2:2.6" + +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 \ + pax-utils portability python toolchain-funcs versionator virtualx + +DESCRIPTION="Open-source version of Google Chrome web browser" +HOMEPAGE="http://chromium.org/" +SRC_URI="http://commondatastorage.googleapis.com/chromium-browser-official/${P}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="bindist cups gnome gnome-keyring kerberos pulseaudio selinux" + +RDEPEND="app-arch/bzip2 + cups? ( + dev-libs/libgcrypt + >=net-print/cups-1.3.11 + ) + >=dev-lang/v8-3.11.10.6 + dev-libs/dbus-glib + dev-libs/elfutils + dev-libs/expat + >=dev-libs/icu-49.1.1-r1 + >=dev-libs/libevent-1.4.13 + dev-libs/libxml2[icu] + dev-libs/libxslt + >=dev-libs/nss-3.12.3 + gnome? ( >=gnome-base/gconf-2.24.0 ) + gnome-keyring? ( >=gnome-base/gnome-keyring-2.28.2 ) + >=media-libs/alsa-lib-1.0.19 + media-libs/flac + >=media-libs/libjpeg-turbo-1.2.0-r1 + media-libs/libpng + media-libs/speex + pulseaudio? ( media-sound/pulseaudio ) + sys-fs/udev + sys-libs/zlib + virtual/libusb:1 + x11-libs/gtk+:2 + x11-libs/libXinerama + x11-libs/libXScrnSaver + x11-libs/libXtst + kerberos? ( virtual/krb5 ) + selinux? ( sys-libs/libselinux )" +DEPEND="${RDEPEND} + >=dev-lang/nacl-toolchain-newlib-0_p7311 + dev-lang/perl + dev-lang/yasm + dev-python/ply + dev-python/simplejson + >=dev-util/gperf-3.0.3 + >=sys-devel/bison-2.4.3 + sys-devel/flex + >=sys-devel/make-3.81-r2 + 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 tools, bug #340795. + tc-export AR CC CXX RANLIB + + # Make sure the build system will use the right python, bug #344367. + python_set_active_version 2 + python_pkg_setup + + if ! use selinux; then + chromium_suid_sandbox_check_kernel_config + fi + + 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() { + ln -s /usr/$(get_libdir)/nacl-toolchain-newlib \ + native_client/toolchain/linux_x86_newlib || die + + # zlib-1.2.5.1-r1 renames the OF macro in zconf.h, bug 383371. + sed -i '1i#define OF(x) x' \ + third_party/zlib/contrib/minizip/{ioapi,{,un}zip}.h || die + + # Fix build without NaCl glibc toolchain. + epatch "${FILESDIR}/${PN}-ppapi-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/*' \ + \! -path 'third_party/cacheinvalidation/*' \ + \! -path 'third_party/cld/*' \ + \! -path 'third_party/ffmpeg/*' \ + \! -path 'third_party/flac/flac.h' \ + \! -path 'third_party/gpsd/*' \ + \! -path 'third_party/harfbuzz/*' \ + \! -path 'third_party/hunspell/*' \ + \! -path 'third_party/iccjpeg/*' \ + \! -path 'third_party/jsoncpp/*' \ + \! -path 'third_party/khronos/*' \ + \! -path 'third_party/launchpad_translations/*' \ + \! -path 'third_party/leveldatabase/*' \ + \! -path 'third_party/libjingle/*' \ + \! -path 'third_party/libphonenumber/*' \ + \! -path 'third_party/libsrtp/*' \ + \! -path 'third_party/libusb/libusb.h' \ + \! -path 'third_party/libva/*' \ + \! -path 'third_party/libvpx/*' \ + \! -path 'third_party/libwebp/*' \ + \! -path 'third_party/libxml/chromium/*' \ + \! -path 'third_party/libXNVCtrl/*' \ + \! -path 'third_party/libyuv/*' \ + \! -path 'third_party/lss/*' \ + \! -path 'third_party/mesa/*' \ + \! -path 'third_party/modp_b64/*' \ + \! -path 'third_party/mongoose/*' \ + \! -path 'third_party/npapi/*' \ + \! -path 'third_party/openmax/*' \ + \! -path 'third_party/ots/*' \ + \! -path 'third_party/protobuf/*' \ + \! -path 'third_party/qcms/*' \ + \! -path 'third_party/scons-2.0.1/*' \ + \! -path 'third_party/sfntly/*' \ + \! -path 'third_party/skia/*' \ + \! -path 'third_party/smhasher/*' \ + \! -path 'third_party/speex/speex.h' \ + \! -path 'third_party/sqlite/*' \ + \! -path 'third_party/tlslite/*' \ + \! -path 'third_party/trace-viewer/*' \ + \! -path 'third_party/undoview/*' \ + \! -path 'third_party/v8-i18n/*' \ + \! -path 'third_party/webdriver/*' \ + \! -path 'third_party/webgl_conformance/*' \ + \! -path 'third_party/webrtc/*' \ + \! -path 'third_party/zlib/contrib/minizip/*' \ + -delete || die + + local v8_bundled="$(chromium_bundled_v8_version)" + local v8_installed="$(chromium_installed_v8_version)" + einfo "V8 version: bundled - ${v8_bundled}; installed - ${v8_installed}" + + # Remove bundled v8. + find v8 -type f \! -iname '*.gyp*' -delete || die + + # The implementation files include v8 headers with full path, + # like #include "v8/include/v8.h". Make sure the system headers + # will be used. + # TODO: find a solution that can be upstreamed. + rmdir v8/include || die + ln -s /usr/include v8/include || die + + # Make sure the build system will use the right python, bug #344367. + # Only convert directories that need it, to save time. + python_convert_shebangs -q -r 2 build tools +} + +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 tcmalloc, it causes problems with e.g. NVIDIA + # drivers, bug #413637. + myconf+=" -Dlinux_use_tcmalloc=0" + + # Disable glibc Native Client toolchain, we don't need it (bug #417019). + myconf+=" -Ddisable_glibc=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_ffmpeg + # TODO: use_system_hunspell (upstream changes needed). + # TODO: use_system_ssl (http://crbug.com/58087). + # TODO: use_system_sqlite (http://crbug.com/22208). + # TODO: use_system_vpx + # TODO: use_system_webp (https://chromiumcodereview.appspot.com/10496016 + # needs to become part of webp release) + myconf+=" + -Duse_system_bzip2=1 + -Duse_system_flac=1 + -Duse_system_icu=1 + -Duse_system_libevent=1 + -Duse_system_libjpeg=1 + -Duse_system_libpng=1 + -Duse_system_libusb=1 + -Duse_system_libxml=1 + -Duse_system_speex=1 + -Duse_system_v8=1 + -Duse_system_xdg_utils=1 + -Duse_system_yasm=1 + -Duse_system_zlib=1" + + # 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 selinux selinux)" + + if ! use selinux; then + # Enable SUID sandbox. + myconf+=" + -Dlinux_sandbox_path=${CHROMIUM_HOME}/chrome_sandbox + -Dlinux_sandbox_chrome_path=${CHROMIUM_HOME}/chrome" + fi + + # Never use bundled gold binary. Disable gold linker flags for now. + myconf+=" + -Dlinux_use_gold_binary=0 + -Dlinux_use_gold_flags=0" + + if ! use bindist; then + # Enable H.624 support in bundled ffmpeg. + myconf+=" -Dproprietary_codecs=1 -Dffmpeg_branding=Chrome" + fi + + local myarch="$(tc-arch)" + if [[ $myarch = amd64 ]] ; then + myconf+=" -Dtarget_arch=x64" + elif [[ $myarch = x86 ]] ; then + myconf+=" -Dtarget_arch=ia32" + 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 + fi + + egyp_chromium ${myconf} || die +} + +src_compile() { + local test_targets + for x in base cacheinvalidation crypto \ + googleurl gpu media net printing sql; do + test_targets+=" ${x}_unittests" + done + + local make_targets="chrome chromedriver" + if ! use selinux; then + make_targets+=" chrome_sandbox" + fi + if use test; then + make_targets+=$test_targets + fi + + # See bug #410883 for more info about the .host mess. + emake ${make_targets} BUILDTYPE=Release V=1 \ + CC.host="$(tc-getCC)" CFLAGS.host="${CFLAGS}" \ + CXX.host="$(tc-getCXX)" CXXFLAGS.host="${CXXFLAGS}" \ + LINK.host="$(tc-getCXX)" LDFLAGS.host="${LDFLAGS}" \ + AR.host="$(tc-getAR)" || 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 mylocale='en_US.utf8' + if ! locale -a | grep -q "$mylocale"; then + eerror "${PN} requires ${mylocale} 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 ${mylocale} is not supported" + fi + + # For more info see bug #370957. + if [[ $UID -eq 0 ]]; then + die "Tests must be run as non-root. Please use FEATURES=userpriv." + fi + + runtest() { + local cmd=$1 + shift + einfo "${cmd}" "$@" + LC_ALL="${mylocale}" VIRTUALX_COMMAND="${cmd}" virtualmake "$@" + } + + # ICUStringConversionsTest: bug #350347. + # MessagePumpLibeventTest: bug #398501. + runtest out/Release/base_unittests \ + '--gtest_filter=-ICUStringConversionsTest.*:MessagePumpLibeventTest.*' + + runtest out/Release/cacheinvalidation_unittests + runtest out/Release/crypto_unittests + runtest out/Release/googleurl_unittests + runtest out/Release/gpu_unittests + runtest out/Release/media_unittests + + # NetUtilTest: bug #361885. + # DnsConfigServiceTest.GetSystemConfig: bug #394883. + # CertDatabaseNSSTest.ImportServerCert_SelfSigned: bug #399269. + runtest out/Release/net_unittests \ + '--gtest_filter=-NetUtilTest.IDNToUnicode*:NetUtilTest.FormatUrl*:DnsConfigServiceTest.GetSystemConfig:CertDatabaseNSSTest.ImportServerCert_SelfSigned:URLFetcher*' + + runtest out/Release/printing_unittests + runtest out/Release/sql_unittests +} + +src_install() { + exeinto "${CHROMIUM_HOME}" + doexe out/Release/chrome || die + + if ! use selinux; then + doexe out/Release/chrome_sandbox || die + fperms 4755 "${CHROMIUM_HOME}/chrome_sandbox" + fi + + doexe out/Release/chromedriver || die + + doexe out/Release/nacl_helper{,_bootstrap} || die + insinto "${CHROMIUM_HOME}" + doins out/Release/nacl_irt_*.nexe || die + doins out/Release/libppGoogleNaClPluginChrome.so || die + + newexe "${FILESDIR}"/chromium-launcher-r2.sh chromium-launcher.sh || die + if [[ "${CHROMIUM_SUFFIX}" != "" ]]; then + sed "s:chromium-browser:chromium-browser${CHROMIUM_SUFFIX}:g" \ + -i "${ED}"/"${CHROMIUM_HOME}"/chromium-launcher.sh || die + sed "s:chromium.desktop:chromium${CHROMIUM_SUFFIX}.desktop:g" \ + -i "${ED}"/"${CHROMIUM_HOME}"/chromium-launcher.sh || die + sed "s:plugins:plugins --user-data-dir=\${HOME}/.config/chromium${CHROMIUM_SUFFIX}:" \ + -i "${ED}"/"${CHROMIUM_HOME}"/chromium-launcher.sh || die + fi + + # 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 + + doexe out/Release/libffmpegsumo.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 +} diff --git a/www-client/chromium/chromium-9999-r1.ebuild b/www-client/chromium/chromium-9999-r1.ebuild index 52cc5bf90f7a..486001e99e1c 100644 --- a/www-client/chromium/chromium-9999-r1.ebuild +++ b/www-client/chromium/chromium-9999-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-9999-r1.ebuild,v 1.121 2012/06/20 13:41:20 phajdan.jr Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-9999-r1.ebuild,v 1.122 2012/07/11 03:00:55 floppym Exp $ EAPI="4" PYTHON_DEPEND="2:2.6" @@ -187,9 +187,11 @@ src_prepare() { \! -path 'third_party/libphonenumber/*' \ \! -path 'third_party/libsrtp/*' \ \! -path 'third_party/libusb/libusb.h' \ + \! -path 'third_party/libva/*' \ \! -path 'third_party/libvpx/*' \ \! -path 'third_party/libwebp/*' \ \! -path 'third_party/libxml/chromium/*' \ + \! -path 'third_party/libXNVCtrl/*' \ \! -path 'third_party/libyuv/*' \ \! -path 'third_party/lss/*' \ \! -path 'third_party/mesa/*' \ @@ -199,6 +201,7 @@ src_prepare() { \! -path 'third_party/openmax/*' \ \! -path 'third_party/ots/*' \ \! -path 'third_party/protobuf/*' \ + \! -path 'third_party/qcms/*' \ \! -path 'third_party/scons-2.0.1/*' \ \! -path 'third_party/sfntly/*' \ \! -path 'third_party/skia/*' \ @@ -372,25 +375,32 @@ src_test() { die "Tests must be run as non-root. Please use FEATURES=userpriv." fi + runtest() { + local cmd=$1 + shift + einfo "${cmd}" "$@" + LC_ALL="${mylocale}" VIRTUALX_COMMAND="${cmd}" virtualmake "$@" + } + # ICUStringConversionsTest: bug #350347. # MessagePumpLibeventTest: bug #398501. - LC_ALL="${mylocale}" VIRTUALX_COMMAND=out/Release/base_unittests virtualmake \ + runtest out/Release/base_unittests \ '--gtest_filter=-ICUStringConversionsTest.*:MessagePumpLibeventTest.*' - LC_ALL="${mylocale}" VIRTUALX_COMMAND=out/Release/cacheinvalidation_unittests virtualmake - LC_ALL="${mylocale}" VIRTUALX_COMMAND=out/Release/crypto_unittests virtualmake - LC_ALL="${mylocale}" VIRTUALX_COMMAND=out/Release/googleurl_unittests virtualmake - LC_ALL="${mylocale}" VIRTUALX_COMMAND=out/Release/gpu_unittests virtualmake - LC_ALL="${mylocale}" VIRTUALX_COMMAND=out/Release/media_unittests virtualmake + runtest out/Release/cacheinvalidation_unittests + runtest out/Release/crypto_unittests + runtest out/Release/googleurl_unittests + runtest out/Release/gpu_unittests + runtest out/Release/media_unittests # NetUtilTest: bug #361885. # DnsConfigServiceTest.GetSystemConfig: bug #394883. # CertDatabaseNSSTest.ImportServerCert_SelfSigned: bug #399269. - LC_ALL="${mylocale}" VIRTUALX_COMMAND=out/Release/net_unittests virtualmake \ - '--gtest_filter=-NetUtilTest.IDNToUnicode*:NetUtilTest.FormatUrl*:DnsConfigServiceTest.GetSystemConfig:CertDatabaseNSSTest.ImportServerCert_SelfSigned' + runtest out/Release/net_unittests \ + '--gtest_filter=-NetUtilTest.IDNToUnicode*:NetUtilTest.FormatUrl*:DnsConfigServiceTest.GetSystemConfig:CertDatabaseNSSTest.ImportServerCert_SelfSigned:URLFetcher*' - LC_ALL="${mylocale}" VIRTUALX_COMMAND=out/Release/printing_unittests virtualmake - LC_ALL="${mylocale}" VIRTUALX_COMMAND=out/Release/sql_unittests virtualmake + runtest out/Release/printing_unittests + runtest out/Release/sql_unittests } src_install() { @@ -446,11 +456,16 @@ src_install() { doexe out/Release/libffmpegsumo.so || die # Install icons and desktop entry. - for SIZE in 16 22 24 32 48 64 128 256 ; do - insinto /usr/share/icons/hicolor/${SIZE}x${SIZE}/apps - newins chrome/app/theme/chromium/product_logo_${SIZE}.png \ - chromium-browser${CHROMIUM_SUFFIX}.png || die + 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 |