--- /usr/portage/www-client/chromium/chromium-44.0.2403.89.ebuild 2015-07-23 02:01:17.000000000 -0400 +++ /usr/local/portage/www-client/chromium/chromium-44.0.2403.89.ebuild 2015-08-04 09:04:48.357238740 -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. @@ -362,7 +366,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. @@ -463,6 +468,8 @@ fi fi + append-cppflags '-DWIDEVINE_CDM_VERSION_STRING=\"DRMSUCKS\"' + # Make sure the build system will use the right tools, bug #340795. tc-export AR CC CXX RANLIB @@ -582,6 +589,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