1 |
commit: c20eaf5374d83c9b837fc364bbfae05206495863 |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 21 06:00:21 2021 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 21 06:32:54 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c20eaf53 |
7 |
|
8 |
www-client/qutebrowser: EAPI7->8, migrate to xdg eclass, tidy a bit |
9 |
|
10 |
Trying not to change too much here (unless I end up officially |
11 |
maintaining this), but removed some unnecessary quotes, add + to |
12 |
GPL-3 (as indicated in .py files), and cleanup python3.7 which |
13 |
wasn't usable anymore either way. |
14 |
|
15 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
16 |
|
17 |
www-client/qutebrowser/qutebrowser-2.3.1.ebuild | 39 ++++++++++--------------- |
18 |
www-client/qutebrowser/qutebrowser-9999.ebuild | 23 +++++---------- |
19 |
2 files changed, 24 insertions(+), 38 deletions(-) |
20 |
|
21 |
diff --git a/www-client/qutebrowser/qutebrowser-2.3.1.ebuild b/www-client/qutebrowser/qutebrowser-2.3.1.ebuild |
22 |
index dd61b8b7158..e11338abf31 100644 |
23 |
--- a/www-client/qutebrowser/qutebrowser-2.3.1.ebuild |
24 |
+++ b/www-client/qutebrowser/qutebrowser-2.3.1.ebuild |
25 |
@@ -1,24 +1,24 @@ |
26 |
# Copyright 1999-2021 Gentoo Authors |
27 |
# Distributed under the terms of the GNU General Public License v2 |
28 |
|
29 |
-EAPI=7 |
30 |
+EAPI=8 |
31 |
|
32 |
-PYTHON_COMPAT=( python3_{7,8,9} ) |
33 |
+PYTHON_COMPAT=( python3_{8..9} ) |
34 |
|
35 |
-inherit desktop distutils-r1 optfeature xdg-utils |
36 |
+inherit desktop distutils-r1 optfeature xdg |
37 |
|
38 |
-DESCRIPTION="A keyboard-driven, vim-like browser based on PyQt5 and QtWebEngine" |
39 |
+DESCRIPTION="Keyboard-driven, vim-like browser based on PyQt5 and QtWebEngine" |
40 |
HOMEPAGE="https://www.qutebrowser.org/ https://github.com/qutebrowser/qutebrowser" |
41 |
SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.gz" |
42 |
|
43 |
-LICENSE="GPL-3" |
44 |
+LICENSE="GPL-3+" |
45 |
SLOT="0" |
46 |
KEYWORDS="~amd64 ~arm64 ~x86" |
47 |
IUSE="+adblock test" |
48 |
|
49 |
BDEPEND="app-text/asciidoc" |
50 |
RDEPEND=">=dev-python/colorama-0.4.4[${PYTHON_USEDEP}] |
51 |
- $(python_gen_cond_dep 'dev-python/importlib_resources[${PYTHON_USEDEP}]' python3_{7,8}) |
52 |
+ $(python_gen_cond_dep 'dev-python/importlib_resources[${PYTHON_USEDEP}]' python3_8) |
53 |
>=dev-python/jinja-3.0.1[${PYTHON_USEDEP}] |
54 |
>=dev-python/markupsafe-2.0.1[${PYTHON_USEDEP}] |
55 |
dev-python/pygments[${PYTHON_USEDEP}] |
56 |
@@ -53,7 +53,7 @@ python_install_all() { |
57 |
doins misc/userscripts/README.md |
58 |
exeinto /usr/share/qutebrowser/userscripts |
59 |
for f in misc/userscripts/*; do |
60 |
- if [[ "${f}" == "__pycache__" ]]; then |
61 |
+ if [[ ${f} == __pycache__ ]]; then |
62 |
continue |
63 |
fi |
64 |
doexe "${f}" |
65 |
@@ -61,13 +61,13 @@ python_install_all() { |
66 |
|
67 |
exeinto /usr/share/qutebrowser/scripts |
68 |
for f in scripts/*; do |
69 |
- if [[ "${f}" == "scripts/__init__.py" || \ |
70 |
- "${f}" == "scripts/__pycache__" || \ |
71 |
- "${f}" == "scripts/dev" || \ |
72 |
- "${f}" == "scripts/testbrowser" || \ |
73 |
- "${f}" == "scripts/asciidoc2html.py" || \ |
74 |
- "${f}" == "scripts/setupcommon.py" || \ |
75 |
- "${f}" == "scripts/link_pyqt.py" ]]; then |
76 |
+ if [[ ${f} == scripts/__init__.py || |
77 |
+ ${f} == scripts/__pycache__ || |
78 |
+ ${f} == scripts/dev || |
79 |
+ ${f} == scripts/testbrowser || |
80 |
+ ${f} == scripts/asciidoc2html.py || |
81 |
+ ${f} == scripts/setupcommon.py || |
82 |
+ ${f} == scripts/link_pyqt.py ]]; then |
83 |
continue |
84 |
fi |
85 |
doexe "${f}" |
86 |
@@ -77,14 +77,7 @@ python_install_all() { |
87 |
} |
88 |
|
89 |
pkg_postinst() { |
90 |
- optfeature "PDF display support" www-plugins/pdfjs |
91 |
- xdg_desktop_database_update |
92 |
- xdg_icon_cache_update |
93 |
- xdg_mimeinfo_database_update |
94 |
-} |
95 |
+ xdg_pkg_postinst |
96 |
|
97 |
-pkg_postrm() { |
98 |
- xdg_desktop_database_update |
99 |
- xdg_icon_cache_update |
100 |
- xdg_mimeinfo_database_update |
101 |
+ optfeature "PDF display support" www-plugins/pdfjs |
102 |
} |
103 |
|
104 |
diff --git a/www-client/qutebrowser/qutebrowser-9999.ebuild b/www-client/qutebrowser/qutebrowser-9999.ebuild |
105 |
index 8ed082ba920..b9c6a309b37 100644 |
106 |
--- a/www-client/qutebrowser/qutebrowser-9999.ebuild |
107 |
+++ b/www-client/qutebrowser/qutebrowser-9999.ebuild |
108 |
@@ -1,18 +1,18 @@ |
109 |
# Copyright 1999-2021 Gentoo Authors |
110 |
# Distributed under the terms of the GNU General Public License v2 |
111 |
|
112 |
-EAPI=7 |
113 |
+EAPI=8 |
114 |
|
115 |
-PYTHON_COMPAT=( python3_{7,8,9} ) |
116 |
+PYTHON_COMPAT=( python3_{8..9} ) |
117 |
DISTUTILS_USE_SETUPTOOLS="rdepend" |
118 |
|
119 |
-inherit desktop distutils-r1 git-r3 optfeature xdg-utils |
120 |
+inherit desktop distutils-r1 git-r3 optfeature xdg |
121 |
|
122 |
-DESCRIPTION="A keyboard-driven, vim-like browser based on PyQt5 and QtWebEngine" |
123 |
+DESCRIPTION="Keyboard-driven, vim-like browser based on PyQt5 and QtWebEngine" |
124 |
HOMEPAGE="https://www.qutebrowser.org/ https://github.com/qutebrowser/qutebrowser" |
125 |
EGIT_REPO_URI="https://github.com/${PN}/${PN}.git" |
126 |
|
127 |
-LICENSE="GPL-3" |
128 |
+LICENSE="GPL-3+" |
129 |
SLOT="0" |
130 |
IUSE="scripts test" |
131 |
|
132 |
@@ -22,7 +22,7 @@ RDEPEND=" |
133 |
dev-python/attrs[${PYTHON_USEDEP}] |
134 |
dev-python/colorama[${PYTHON_USEDEP}] |
135 |
dev-python/cssutils[${PYTHON_USEDEP}] |
136 |
- $(python_gen_cond_dep 'dev-python/importlib_resources[${PYTHON_USEDEP}]' python3_{7,8}) |
137 |
+ $(python_gen_cond_dep 'dev-python/importlib_resources[${PYTHON_USEDEP}]' python3_8) |
138 |
dev-python/jinja[${PYTHON_USEDEP}] |
139 |
dev-python/markupsafe[${PYTHON_USEDEP}] |
140 |
dev-python/pygments[${PYTHON_USEDEP}] |
141 |
@@ -88,14 +88,7 @@ python_install_all() { |
142 |
} |
143 |
|
144 |
pkg_postinst() { |
145 |
- optfeature "PDF display support" www-plugins/pdfjs |
146 |
- xdg_desktop_database_update |
147 |
- xdg_icon_cache_update |
148 |
- xdg_mimeinfo_database_update |
149 |
-} |
150 |
+ xdg_pkg_postinst |
151 |
|
152 |
-pkg_postrm() { |
153 |
- xdg_desktop_database_update |
154 |
- xdg_icon_cache_update |
155 |
- xdg_mimeinfo_database_update |
156 |
+ optfeature "PDF display support" www-plugins/pdfjs |
157 |
} |