1 |
commit: f7289cf91664bed749fdac2ff6ac6ed7615f8911 |
2 |
Author: Adel KARA SLIMANE <adel.ks <AT> zegrapher <DOT> com> |
3 |
AuthorDate: Wed May 11 19:06:04 2022 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 11 19:06:04 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f7289cf9 |
7 |
|
8 |
games-util/mangohud: properly uses python-any-r1 eclass |
9 |
|
10 |
Using https://projects.gentoo.org/python/guide/any.html |
11 |
Thanks @ionenwks @arthurzam |
12 |
|
13 |
Signed-off-by: Adel KARA SLIMANE <adel.ks <AT> zegrapher.com> |
14 |
|
15 |
games-util/mangohud/mangohud-0.6.6.1-r3.ebuild | 10 +++++++--- |
16 |
1 file changed, 7 insertions(+), 3 deletions(-) |
17 |
|
18 |
diff --git a/games-util/mangohud/mangohud-0.6.6.1-r3.ebuild b/games-util/mangohud/mangohud-0.6.6.1-r3.ebuild |
19 |
index ca29f2673..99f91b86a 100644 |
20 |
--- a/games-util/mangohud/mangohud-0.6.6.1-r3.ebuild |
21 |
+++ b/games-util/mangohud/mangohud-0.6.6.1-r3.ebuild |
22 |
@@ -5,10 +5,10 @@ EAPI=8 |
23 |
|
24 |
PYTHON_COMPAT=( python3_{8..10} ) |
25 |
|
26 |
-inherit python-any-r1 distutils-r1 meson |
27 |
+inherit python-any-r1 meson |
28 |
|
29 |
MY_PV=$(ver_cut 1-3) |
30 |
-[ -n "$(ver_cut 4)" ] && MY_PV_REV="-$(ver_cut 4)" |
31 |
+[[ -n "$(ver_cut 4)" ]] && MY_PV_REV="-$(ver_cut 4)" |
32 |
|
33 |
IMGUI_VER="1.81" |
34 |
IMGUI_MESON_WRAP_VER="1" |
35 |
@@ -34,9 +34,13 @@ REQUIRED_USE=" |
36 |
|
37 |
BDEPEND=" |
38 |
app-arch/unzip |
39 |
- dev-python/mako[${PYTHON_USEDEP}] |
40 |
+ $(python_gen_any_dep 'dev-python/mako[${PYTHON_USEDEP}]') |
41 |
" |
42 |
|
43 |
+python_check_deps() { |
44 |
+ python_has_version "dev-python/mako[${PYTHON_USEDEP}]" |
45 |
+} |
46 |
+ |
47 |
DEPEND=" |
48 |
dev-libs/spdlog |
49 |
dev-util/glslang |