summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2021-10-12 13:20:15 -0400
committerIonen Wolkens <ionen@gentoo.org>2021-10-15 11:43:51 -0400
commitfd172713cff3fe36c322fd9718ae972d3270dcd8 (patch)
tree04bef9f4c265b2f094c8322db75aca05e7d7b84a /www-client
parentwww-client/qutebrowser: simplify, use single impl, tighten deps (diff)
downloadgentoo-fd172713cff3fe36c322fd9718ae972d3270dcd8.tar.gz
gentoo-fd172713cff3fe36c322fd9718ae972d3270dcd8.tar.bz2
gentoo-fd172713cff3fe36c322fd9718ae972d3270dcd8.zip
www-client/qutebrowser: add IUSE=widevine
Modifying qtwebengine could be an option instead, but don't want to burden something as big as qtwebengine with more patches. Here it's very trivial to control and rebuild. Closes: https://bugs.gentoo.org/635532 Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'www-client')
-rw-r--r--www-client/qutebrowser/metadata.xml2
-rw-r--r--www-client/qutebrowser/qutebrowser-2.3.1-r2.ebuild10
2 files changed, 10 insertions, 2 deletions
diff --git a/www-client/qutebrowser/metadata.xml b/www-client/qutebrowser/metadata.xml
index c3857041d965..bfc1e23ae3f1 100644
--- a/www-client/qutebrowser/metadata.xml
+++ b/www-client/qutebrowser/metadata.xml
@@ -26,5 +26,7 @@
for improved adblocking</flag>
<flag name="scripts">Installs userscripts from the misc/userscripts
directory to /usr/share/qutebrowser/userscripts.</flag>
+ <flag name="widevine">Unsupported closed-source DRM capability
+ (required by Netflix VOD)</flag>
</use>
</pkgmetadata>
diff --git a/www-client/qutebrowser/qutebrowser-2.3.1-r2.ebuild b/www-client/qutebrowser/qutebrowser-2.3.1-r2.ebuild
index f5481f420b5c..510e711ce98f 100644
--- a/www-client/qutebrowser/qutebrowser-2.3.1-r2.ebuild
+++ b/www-client/qutebrowser/qutebrowser-2.3.1-r2.ebuild
@@ -20,7 +20,7 @@ HOMEPAGE="https://www.qutebrowser.org/"
LICENSE="GPL-3+"
SLOT="0"
-IUSE="+adblock"
+IUSE="+adblock widevine"
# Tests depend (misc/requirements/requirements-tests.txt) on plugins
# we don't have packages for.
RESTRICT="test"
@@ -40,7 +40,8 @@ RDEPEND="
dev-python/typing-extensions[${PYTHON_USEDEP}]
dev-python/zipp[${PYTHON_USEDEP}]
adblock? ( dev-python/adblock[${PYTHON_USEDEP}] )
- ')"
+ ')
+ widevine? ( www-plugins/chrome-binary-plugins )"
BDEPEND="app-text/asciidoc"
distutils_enable_tests pytest
@@ -48,6 +49,11 @@ distutils_enable_tests pytest
python_prepare_all() {
distutils-r1_python_prepare_all
+ if use widevine; then
+ sed "/yield from _qtwebengine_settings_args/a\ yield '--widevine-path=${EPREFIX}/usr/$(get_libdir)/chromium-browser/WidevineCdm/_platform_specific/linux_x64/libwidevinecdm.so'" \
+ -i ${PN}/config/qtargs.py || die
+ fi
+
sed -i '/setup.py/d' misc/Makefile || die
[[ ${PV} != 9999 ]] || ${EPYTHON} scripts/asciidoc2html.py || die