--- old/chromium-44.0.2403.89.ebuild 2015-07-23 02:01:17.000000000 -0400 +++ new/chromium-44.0.2403.89.ebuild 2015-07-28 05:13:26.235742325 -0400 @@ -19,7 +19,7 @@ LICENSE="BSD hotwording? ( no-source-code )" SLOT="0" KEYWORDS="amd64 ~arm x86" -IUSE="cups gnome gnome-keyring hidpi hotwording kerberos neon pic +proprietary-codecs pulseaudio selinux +tcmalloc" +IUSE="cups gnome gnome-keyring hidpi hotwording kerberos neon pic +proprietary-codecs pulseaudio selinux +tcmalloc +widevine" RESTRICT="proprietary-codecs? ( bindist )" # Native Client binaries are compiled with different set of flags, bug #452066. @@ -91,7 +91,8 @@ sys-apps/hwids[usb(+)] >=sys-devel/bison-2.4.3 sys-devel/flex - virtual/pkgconfig" + virtual/pkgconfig + widevine? ( www-plugins/chrome-binary-plugins[widevine] )" # For nvidia-drivers blocker, see bug #413637 . RDEPEND+=" @@ -122,6 +123,9 @@ EBUILD_DEATH_HOOKS+=" chromium_pkg_die"; fi +# TODO: flag-mask widevine in non-intel profiles in lieu of this +REQUIRED_USE="|| ( x86 amd64 !widevine )" + DISABLE_AUTOFORMATTING="yes" DOC_CONTENTS=" Some web pages may require additional fonts to display properly. @@ -188,6 +192,9 @@ epatch "${FILESDIR}/${PN}-system-jinja-r7.patch" + # Retrieve the widevine CDM version from the widevine.version file + epatch "${FILESDIR}/${PN}-widevine-version.patch" + epatch_user # Remove most bundled libraries. Some are still needed. @@ -362,7 +369,8 @@ $(gyp_use hotwording enable_hotwording) $(gyp_use kerberos) $(gyp_use pulseaudio) - $(gyp_use tcmalloc use_allocator tcmalloc none)" + $(gyp_use tcmalloc use_allocator tcmalloc none) + $(gyp_use widevine enable_widevine)" # Use explicit library dependencies instead of dlopen. # This makes breakages easier to detect by revdep-rebuild. @@ -582,6 +590,10 @@ newman out/Release/chrome.1 chromium${CHROMIUM_SUFFIX}.1 || die newman out/Release/chrome.1 chromium-browser${CHROMIUM_SUFFIX}.1 || die + if use widevine; then + doexe out/Release/libwidevinecdmadapter.so + fi + # Install icons and desktop entry. local branding size for size in 16 22 24 32 48 64 128 256 ; do