1 |
commit: 6495b87e48192ea0c022026b80c60607b851ec7b |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jun 22 16:59:52 2022 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 22 18:26:22 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6495b87e |
7 |
|
8 |
www-client/qutebrowser: add 2.5.2 |
9 |
|
10 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
11 |
|
12 |
www-client/qutebrowser/Manifest | 1 + |
13 |
www-client/qutebrowser/qutebrowser-2.5.2.ebuild | 125 ++++++++++++++++++++++++ |
14 |
2 files changed, 126 insertions(+) |
15 |
|
16 |
diff --git a/www-client/qutebrowser/Manifest b/www-client/qutebrowser/Manifest |
17 |
index 6e8d0cec438b..b326e61f842a 100644 |
18 |
--- a/www-client/qutebrowser/Manifest |
19 |
+++ b/www-client/qutebrowser/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST qutebrowser-2.5.1.tar.gz 6089389 BLAKE2B e26be42742795b22c34d131a5c9046e0223cef2fd461d8aa3c656a8182bf0127e17e55a7e0a79e1ade76c883094d841a822864e995365b0217ef1b422272e6e0 SHA512 27eca3e987e4c2a662fc863840d3ea697da65f55c7b9180e892466aeb5a2753f1eca424bbf8705670fe8cd9363e3297e03f9f9cc0d4f85f0198a4e3312d32f3c |
22 |
+DIST qutebrowser-2.5.2.tar.gz 6114611 BLAKE2B 5f56e1e2c390bb2f36c95e25a2dae9e5203020ff6b2cf1e13092cf493efa950b24b8ff8f23af6eed93ca8b316e30f86715ecd2f2eb28c341210de0b25c9f67ad SHA512 4751ea1a5b1776f085fcd1f9ab5ff805155fca34d0272ba8eb6574f9074257929c3fb5b50c9053a522bfb346aee1a2551b58cf933c6ff7c5c84fd10559ec36fc |
23 |
|
24 |
diff --git a/www-client/qutebrowser/qutebrowser-2.5.2.ebuild b/www-client/qutebrowser/qutebrowser-2.5.2.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..8e1dcf48ee29 |
27 |
--- /dev/null |
28 |
+++ b/www-client/qutebrowser/qutebrowser-2.5.2.ebuild |
29 |
@@ -0,0 +1,125 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+DISTUTILS_SINGLE_IMPL=1 |
36 |
+DISTUTILS_USE_PEP517=setuptools |
37 |
+# py3.11: wait for https://github.com/python/cpython/issues/93252 |
38 |
+PYTHON_COMPAT=( python3_{8..10} ) |
39 |
+inherit distutils-r1 optfeature xdg |
40 |
+ |
41 |
+if [[ ${PV} == 9999 ]]; then |
42 |
+ inherit git-r3 |
43 |
+ EGIT_REPO_URI="https://github.com/qutebrowser/qutebrowser.git" |
44 |
+else |
45 |
+ SRC_URI="https://github.com/qutebrowser/qutebrowser/releases/download/v${PV}/${P}.tar.gz" |
46 |
+ KEYWORDS="~amd64 ~arm64 ~x86" |
47 |
+fi |
48 |
+ |
49 |
+DESCRIPTION="Keyboard-driven, vim-like browser based on PyQt5 and QtWebEngine" |
50 |
+HOMEPAGE="https://www.qutebrowser.org/" |
51 |
+ |
52 |
+LICENSE="GPL-3+" |
53 |
+SLOT="0" |
54 |
+IUSE="+adblock widevine" |
55 |
+ |
56 |
+RDEPEND=" |
57 |
+ dev-qt/qtcore:5[icu] |
58 |
+ dev-qt/qtgui:5[png] |
59 |
+ $(python_gen_cond_dep 'dev-python/importlib_resources[${PYTHON_USEDEP}]' 3.8) |
60 |
+ $(python_gen_cond_dep ' |
61 |
+ dev-python/colorama[${PYTHON_USEDEP}] |
62 |
+ >=dev-python/jinja-3.0.2[${PYTHON_USEDEP}] |
63 |
+ >=dev-python/markupsafe-2.0.1[${PYTHON_USEDEP}] |
64 |
+ dev-python/pygments[${PYTHON_USEDEP}] |
65 |
+ dev-python/PyQt5[${PYTHON_USEDEP},dbus,declarative,multimedia,gui,network,opengl,printsupport,sql,widgets] |
66 |
+ dev-python/PyQtWebEngine[${PYTHON_USEDEP}] |
67 |
+ dev-python/pyyaml[${PYTHON_USEDEP},libyaml(+)] |
68 |
+ dev-python/zipp[${PYTHON_USEDEP}] |
69 |
+ adblock? ( dev-python/adblock[${PYTHON_USEDEP}] )') |
70 |
+ widevine? ( www-plugins/chrome-binary-plugins )" |
71 |
+BDEPEND=" |
72 |
+ $(python_gen_cond_dep ' |
73 |
+ test? ( |
74 |
+ dev-python/beautifulsoup4[${PYTHON_USEDEP}] |
75 |
+ dev-python/cheroot[${PYTHON_USEDEP}] |
76 |
+ dev-python/flask[${PYTHON_USEDEP}] |
77 |
+ dev-python/hypothesis[${PYTHON_USEDEP}] |
78 |
+ dev-python/pytest-bdd[${PYTHON_USEDEP}] |
79 |
+ dev-python/pytest-mock[${PYTHON_USEDEP}] |
80 |
+ dev-python/pytest-qt[${PYTHON_USEDEP}] |
81 |
+ dev-python/pytest-rerunfailures[${PYTHON_USEDEP}] |
82 |
+ dev-python/pytest-xvfb[${PYTHON_USEDEP}] |
83 |
+ dev-python/tldextract[${PYTHON_USEDEP}] |
84 |
+ )')" |
85 |
+[[ ${PV} != 9999 ]] || BDEPEND+=" app-text/asciidoc" |
86 |
+ |
87 |
+distutils_enable_tests pytest |
88 |
+ |
89 |
+src_prepare() { |
90 |
+ distutils-r1_src_prepare |
91 |
+ |
92 |
+ if use widevine; then |
93 |
+ local widevine=${EPREFIX}/usr/$(get_libdir)/chromium-browser/WidevineCdm/_platform_specific/linux_x64/libwidevinecdm.so |
94 |
+ sed "/yield from _qtwebengine_settings_args/a\ yield '--widevine-path=${widevine}'" \ |
95 |
+ -i ${PN}/config/qtargs.py || die |
96 |
+ fi |
97 |
+ |
98 |
+ # let eclass handle python |
99 |
+ sed -i '/setup.py/d' misc/Makefile || die |
100 |
+ |
101 |
+ [[ ${PV} != 9999 ]] || ${EPYTHON} scripts/asciidoc2html.py || die |
102 |
+ |
103 |
+ # these plugins/tests are unnecessary here and have extra dependencies |
104 |
+ sed -e '/pytest-benchmark/d;s/--benchmark[^ ]*//' \ |
105 |
+ -e '/pytest-instafail/d;s/--instafail//' \ |
106 |
+ -i pytest.ini || die |
107 |
+ [[ ${PV} == 9999 ]] || rm tests/unit/scripts/test_problemmatchers.py || die |
108 |
+ [[ ${PV} != 9999 ]] || rm tests/unit/scripts/test_run_vulture.py || die |
109 |
+} |
110 |
+ |
111 |
+python_test() { |
112 |
+ local EPYTEST_DESELECT=( |
113 |
+ # end2end and other IPC tests are broken with "Name error" if |
114 |
+ # socket path is over 104 characters (=124 in /var/tmp/portage) |
115 |
+ # https://github.com/qutebrowser/qutebrowser/issues/888 (not just OSX) |
116 |
+ tests/end2end |
117 |
+ tests/unit/misc/test_ipc.py |
118 |
+ # tests that don't know about our newer qtwebengine |
119 |
+ tests/unit/browser/webengine/test_webenginedownloads.py::TestDataUrlWorkaround |
120 |
+ tests/unit/utils/test_version.py::TestChromiumVersion |
121 |
+ # may misbehave depending on installed old python versions |
122 |
+ tests/unit/misc/test_checkpyver.py::test_old_python |
123 |
+ # bug 819393 |
124 |
+ tests/unit/commands/test_userscripts.py::test_custom_env[_POSIXUserscriptRunner] |
125 |
+ # not worth running dbus over |
126 |
+ tests/unit/browser/test_notification.py::TestDBus |
127 |
+ ) |
128 |
+ use widevine && EPYTEST_DESELECT+=( tests/unit/config/test_qtargs.py ) |
129 |
+ |
130 |
+ # skip benchmarks (incl. _tree), and warning tests broken by -Wdefault |
131 |
+ epytest -k 'not _bench and not _matches_tree and not _warning' |
132 |
+} |
133 |
+ |
134 |
+python_install_all() { |
135 |
+ emake -f misc/Makefile DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install |
136 |
+ |
137 |
+ rm "${ED}"/usr/share/${PN}/scripts/{mkvenv,utils}.py || die |
138 |
+ fperms -x /usr/share/${PN}/{scripts/cycle-inputs.js,userscripts/README.md} |
139 |
+ python_fix_shebang "${ED}"/usr/share/${PN} |
140 |
+ |
141 |
+ einstalldocs |
142 |
+} |
143 |
+ |
144 |
+pkg_postinst() { |
145 |
+ xdg_pkg_postinst |
146 |
+ |
147 |
+ optfeature "PDF display support" www-plugins/pdfjs |
148 |
+ |
149 |
+ if [[ ! ${REPLACING_VERSIONS} ]]; then |
150 |
+ elog "Note that optional scripts in ${EROOT}/usr/share/${PN}/{user,}scripts" |
151 |
+ elog "have additional dependencies not covered by this ebuild, for example" |
152 |
+ elog "view_in_mpv needs media-video/mpv[lua] and net-misc/yt-dlp." |
153 |
+ fi |
154 |
+} |