1 |
commit: fd172713cff3fe36c322fd9718ae972d3270dcd8 |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 12 17:20:15 2021 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 15 15:43:51 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd172713 |
7 |
|
8 |
www-client/qutebrowser: add IUSE=widevine |
9 |
|
10 |
Modifying qtwebengine could be an option instead, but don't |
11 |
want to burden something as big as qtwebengine with more |
12 |
patches. Here it's very trivial to control and rebuild. |
13 |
|
14 |
Closes: https://bugs.gentoo.org/635532 |
15 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
16 |
|
17 |
profiles/arch/arm64/package.use.mask | 1 + |
18 |
profiles/arch/x86/package.use.mask | 1 + |
19 |
www-client/qutebrowser/metadata.xml | 2 ++ |
20 |
www-client/qutebrowser/qutebrowser-2.3.1-r2.ebuild | 10 ++++++++-- |
21 |
4 files changed, 12 insertions(+), 2 deletions(-) |
22 |
|
23 |
diff --git a/profiles/arch/arm64/package.use.mask b/profiles/arch/arm64/package.use.mask |
24 |
index ddc7dccfcf5..b240d240249 100644 |
25 |
--- a/profiles/arch/arm64/package.use.mask |
26 |
+++ b/profiles/arch/arm64/package.use.mask |
27 |
@@ -299,6 +299,7 @@ net-fs/samba dmapi |
28 |
sci-libs/gdal armadillo netcdf |
29 |
sys-fs/btrfs-progs reiserfs |
30 |
www-client/chromium widevine |
31 |
+www-client/qutebrowser widevine |
32 |
www-client/vivaldi widevine |
33 |
www-client/vivaldi-snapshot widevine |
34 |
|
35 |
|
36 |
diff --git a/profiles/arch/x86/package.use.mask b/profiles/arch/x86/package.use.mask |
37 |
index ba6a25a1b82..a72391fac54 100644 |
38 |
--- a/profiles/arch/x86/package.use.mask |
39 |
+++ b/profiles/arch/x86/package.use.mask |
40 |
@@ -307,6 +307,7 @@ dev-db/mariadb -jdbc |
41 |
# Mike Gilbert <floppym@g.o> (2016-03-03) |
42 |
# chrome-binary-plugins dropped x86 support |
43 |
www-client/chromium widevine |
44 |
+www-client/qutebrowser widevine |
45 |
www-client/vivaldi widevine |
46 |
www-client/vivaldi-snapshot widevine |
47 |
|
48 |
|
49 |
diff --git a/www-client/qutebrowser/metadata.xml b/www-client/qutebrowser/metadata.xml |
50 |
index c3857041d96..bfc1e23ae3f 100644 |
51 |
--- a/www-client/qutebrowser/metadata.xml |
52 |
+++ b/www-client/qutebrowser/metadata.xml |
53 |
@@ -26,5 +26,7 @@ |
54 |
for improved adblocking</flag> |
55 |
<flag name="scripts">Installs userscripts from the misc/userscripts |
56 |
directory to /usr/share/qutebrowser/userscripts.</flag> |
57 |
+ <flag name="widevine">Unsupported closed-source DRM capability |
58 |
+ (required by Netflix VOD)</flag> |
59 |
</use> |
60 |
</pkgmetadata> |
61 |
|
62 |
diff --git a/www-client/qutebrowser/qutebrowser-2.3.1-r2.ebuild b/www-client/qutebrowser/qutebrowser-2.3.1-r2.ebuild |
63 |
index f5481f420b5..510e711ce98 100644 |
64 |
--- a/www-client/qutebrowser/qutebrowser-2.3.1-r2.ebuild |
65 |
+++ b/www-client/qutebrowser/qutebrowser-2.3.1-r2.ebuild |
66 |
@@ -20,7 +20,7 @@ HOMEPAGE="https://www.qutebrowser.org/" |
67 |
|
68 |
LICENSE="GPL-3+" |
69 |
SLOT="0" |
70 |
-IUSE="+adblock" |
71 |
+IUSE="+adblock widevine" |
72 |
# Tests depend (misc/requirements/requirements-tests.txt) on plugins |
73 |
# we don't have packages for. |
74 |
RESTRICT="test" |
75 |
@@ -40,7 +40,8 @@ RDEPEND=" |
76 |
dev-python/typing-extensions[${PYTHON_USEDEP}] |
77 |
dev-python/zipp[${PYTHON_USEDEP}] |
78 |
adblock? ( dev-python/adblock[${PYTHON_USEDEP}] ) |
79 |
- ')" |
80 |
+ ') |
81 |
+ widevine? ( www-plugins/chrome-binary-plugins )" |
82 |
BDEPEND="app-text/asciidoc" |
83 |
|
84 |
distutils_enable_tests pytest |
85 |
@@ -48,6 +49,11 @@ distutils_enable_tests pytest |
86 |
python_prepare_all() { |
87 |
distutils-r1_python_prepare_all |
88 |
|
89 |
+ if use widevine; then |
90 |
+ sed "/yield from _qtwebengine_settings_args/a\ yield '--widevine-path=${EPREFIX}/usr/$(get_libdir)/chromium-browser/WidevineCdm/_platform_specific/linux_x64/libwidevinecdm.so'" \ |
91 |
+ -i ${PN}/config/qtargs.py || die |
92 |
+ fi |
93 |
+ |
94 |
sed -i '/setup.py/d' misc/Makefile || die |
95 |
|
96 |
[[ ${PV} != 9999 ]] || ${EPYTHON} scripts/asciidoc2html.py || die |