1 |
commit: 4636e479e98f107273cecb1565c4198a149d3284 |
2 |
Author: Adel KARA SLIMANE <adel.ks <AT> zegrapher <DOT> com> |
3 |
AuthorDate: Sat Aug 27 19:22:23 2022 +0000 |
4 |
Commit: Adel KARA SLIMANE <adel <AT> karaslimane <DOT> com> |
5 |
CommitDate: Sat Aug 27 19:22:48 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4636e479 |
7 |
|
8 |
games-util/mangohud: version bump to 0.6.8 |
9 |
|
10 |
use imgui-1.81 ebuild instead of bundling it |
11 |
|
12 |
Signed-off-by: Adel KARA SLIMANE <adel.ks <AT> zegrapher.com> |
13 |
|
14 |
games-util/mangohud/Manifest | 1 + |
15 |
games-util/mangohud/mangohud-0.6.8.ebuild | 100 ++++++++++++++++++++++++++++++ |
16 |
games-util/mangohud/mangohud-9999.ebuild | 92 +++++++++++++++++++++++++++ |
17 |
3 files changed, 193 insertions(+) |
18 |
|
19 |
diff --git a/games-util/mangohud/Manifest b/games-util/mangohud/Manifest |
20 |
index 16dbf2e48..97ecf7cc5 100644 |
21 |
--- a/games-util/mangohud/Manifest |
22 |
+++ b/games-util/mangohud/Manifest |
23 |
@@ -2,3 +2,4 @@ DIST imgui-1.81-1-meson-wrap.zip 1850 BLAKE2B 325f84fd57a896ec9aceb83a54752e8dba |
24 |
DIST imgui-1.81.tar.gz 1413443 BLAKE2B 6f2e63777821b2767da92d9f40f4de7b4313c38817413e959e612c0ce67701645cf29f0748a3b86cfbd41e0b4b2c8099e9a0ca786c637ca1661fffd7b0de0629 SHA512 d7a2b66dea77359f78068a595607d7668e09ddd0b91910f67fc6463cb920b91b0cc1855984bd4d41e6a880b69ca7cd5e3adc064dcf461c0629b9f8c845a4fc3e |
25 |
DIST mangohud-0.6.6.1.tar.gz 14839055 BLAKE2B e0e27e62bf688b80611461ecab1bf4cf2c39f8359a9dc2cc1362555bfca55db30a72684da4e07e03970d8e5dee1d26f1d7a1fa30ff47aa86ec653dba273f24cf SHA512 c097dede7e534641f12a9c7f0a2ce049611e17732c7d232251b38d5c50bbcee53b2b22e548ff27f514fa57a45c563d883a1a9382c2c0ee9ac6832a2775e8f221 |
26 |
DIST mangohud-0.6.7.1.tar.gz 14834501 BLAKE2B 6fdd91309531f32d663a0bec4f3edd26095781290ce40294f4ea87297855ce210efbc57443710aa180652bc555887519a12166c76dec19cdf3037bbdc384db15 SHA512 7d5250cc6a50215430cc79c7d11ad18219be374966383ab3f6cba9626fa045c973245d74bc32d75649adebf0fdc7acd086f5afdf5e1708e35da1f7a920a54f1d |
27 |
+DIST mangohud-0.6.8.tar.gz 14844076 BLAKE2B 0da41ecac5e608e755cd1f3bbb3cff698e55a59adb3a5e5c42d1b8b19b1c0666c572016c29db11992ff72abaa80b756bbd50687ce17409380e89a2554f13dee1 SHA512 c2344c21dedebce0c56e88db476177eef29bab9e418a3c5ba13d1059d81f3ee23718e2f9257e32f9f62dcaf6554c65cbf36dac691b2bb3c355def2c9de0a52cc |
28 |
|
29 |
diff --git a/games-util/mangohud/mangohud-0.6.8.ebuild b/games-util/mangohud/mangohud-0.6.8.ebuild |
30 |
new file mode 100644 |
31 |
index 000000000..e77071978 |
32 |
--- /dev/null |
33 |
+++ b/games-util/mangohud/mangohud-0.6.8.ebuild |
34 |
@@ -0,0 +1,100 @@ |
35 |
+# Copyright 1999-2022 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=8 |
39 |
+ |
40 |
+PYTHON_COMPAT=( python3_{8..10} ) |
41 |
+ |
42 |
+inherit python-any-r1 meson |
43 |
+ |
44 |
+MY_PV=$(ver_cut 1-3) |
45 |
+[[ -n "$(ver_cut 4)" ]] && MY_PV_REV="-$(ver_cut 4)" |
46 |
+ |
47 |
+DESCRIPTION="A Vulkan and OpenGL overlay for monitoring FPS, temperatures, CPU/GPU load and more" |
48 |
+HOMEPAGE="https://github.com/flightlessmango/MangoHud" |
49 |
+ |
50 |
+SRC_URI=" |
51 |
+ https://github.com/flightlessmango/MangoHud/archive/v${MY_PV}${MY_PV_REV}.tar.gz -> ${P}.tar.gz |
52 |
+" |
53 |
+ |
54 |
+KEYWORDS="~amd64 ~x86" |
55 |
+ |
56 |
+LICENSE="MIT" |
57 |
+SLOT="0" |
58 |
+IUSE="+dbus debug +X xnvctrl wayland video_cards_nvidia" |
59 |
+ |
60 |
+REQUIRED_USE=" |
61 |
+ || ( X wayland ) |
62 |
+ xnvctrl? ( video_cards_nvidia )" |
63 |
+ |
64 |
+BDEPEND=" |
65 |
+ app-arch/unzip |
66 |
+ $(python_gen_any_dep 'dev-python/mako[${PYTHON_USEDEP}]') |
67 |
+" |
68 |
+ |
69 |
+python_check_deps() { |
70 |
+ python_has_version "dev-python/mako[${PYTHON_USEDEP}]" |
71 |
+} |
72 |
+ |
73 |
+DEPEND=" |
74 |
+ ~media-libs/imgui-1.81 |
75 |
+ dev-libs/spdlog |
76 |
+ dev-util/glslang |
77 |
+ >=dev-util/vulkan-headers-1.2 |
78 |
+ media-libs/vulkan-loader |
79 |
+ media-libs/libglvnd |
80 |
+ x11-libs/libdrm |
81 |
+ dbus? ( sys-apps/dbus ) |
82 |
+ X? ( x11-libs/libX11 ) |
83 |
+ video_cards_nvidia? ( |
84 |
+ x11-drivers/nvidia-drivers |
85 |
+ xnvctrl? ( x11-drivers/nvidia-drivers[static-libs] ) |
86 |
+ ) |
87 |
+ wayland? ( dev-libs/wayland ) |
88 |
+" |
89 |
+ |
90 |
+RDEPEND="${DEPEND}" |
91 |
+ |
92 |
+S="${WORKDIR}/MangoHud-${PV}" |
93 |
+ |
94 |
+PATCHES=( |
95 |
+ "${FILESDIR}/mangohud-0.6.6-meson-fix-imgui-dep.patch" |
96 |
+) |
97 |
+ |
98 |
+src_unpack() { |
99 |
+ default |
100 |
+ [[ -n "${MY_PV_REV}" ]] && ( mv ${WORKDIR}/MangoHud-${MY_PV}${MY_PV_REV} ${WORKDIR}/MangoHud-${PV} || die ) |
101 |
+} |
102 |
+ |
103 |
+src_prepare() { |
104 |
+ default |
105 |
+ # replace all occurences of "#include <imgui.h>" to "#include <imgui/imgui.h>" |
106 |
+ find . -type f -exec sed -i 's/#include <imgui.h>/#include <imgui\/imgui.h>/g' {} \; |
107 |
+ find . -type f -exec sed -i 's/#include "imgui.h"/#include <imgui\/imgui.h>/g' {} \; |
108 |
+} |
109 |
+ |
110 |
+src_configure() { |
111 |
+ local emesonargs=( |
112 |
+ -Dappend_libdir_mangohud=false |
113 |
+ -Duse_system_spdlog=enabled |
114 |
+ -Duse_system_vulkan=enabled |
115 |
+ -Dinclude_doc=false |
116 |
+ $(meson_feature video_cards_nvidia with_nvml) |
117 |
+ $(meson_feature xnvctrl with_xnvctrl) |
118 |
+ $(meson_feature X with_x11) |
119 |
+ $(meson_feature wayland with_wayland) |
120 |
+ $(meson_feature dbus with_dbus) |
121 |
+ ) |
122 |
+ meson_src_configure |
123 |
+} |
124 |
+ |
125 |
+pkg_postinst() { |
126 |
+ if ! use xnvctrl; then |
127 |
+ einfo "" |
128 |
+ einfo "If mangohud can't get GPU load, or other GPU information," |
129 |
+ einfo "and you have an older Nvidia device." |
130 |
+ einfo "" |
131 |
+ einfo "Try enabling the 'xnvctrl' useflag." |
132 |
+ einfo "" |
133 |
+ fi |
134 |
+} |
135 |
|
136 |
diff --git a/games-util/mangohud/mangohud-9999.ebuild b/games-util/mangohud/mangohud-9999.ebuild |
137 |
new file mode 100644 |
138 |
index 000000000..1bbdaead5 |
139 |
--- /dev/null |
140 |
+++ b/games-util/mangohud/mangohud-9999.ebuild |
141 |
@@ -0,0 +1,92 @@ |
142 |
+# Copyright 1999-2022 Gentoo Authors |
143 |
+# Distributed under the terms of the GNU General Public License v2 |
144 |
+ |
145 |
+EAPI=8 |
146 |
+ |
147 |
+PYTHON_COMPAT=( python3_{8..10} ) |
148 |
+ |
149 |
+inherit git-r3 python-any-r1 meson |
150 |
+ |
151 |
+MY_PV=$(ver_cut 1-3) |
152 |
+[[ -n "$(ver_cut 4)" ]] && MY_PV_REV="-$(ver_cut 4)" |
153 |
+ |
154 |
+DESCRIPTION="A Vulkan and OpenGL overlay for monitoring FPS, temperatures, CPU/GPU load and more" |
155 |
+HOMEPAGE="https://github.com/flightlessmango/MangoHud" |
156 |
+ |
157 |
+inherit meson git-r3 |
158 |
+EGIT_REPO_URI="https://github.com/flightlessmango/MangoHud.git" |
159 |
+ |
160 |
+KEYWORDS="~amd64 ~x86" |
161 |
+ |
162 |
+LICENSE="MIT" |
163 |
+SLOT="0" |
164 |
+IUSE="+dbus debug +X xnvctrl wayland video_cards_nvidia" |
165 |
+ |
166 |
+REQUIRED_USE=" |
167 |
+ || ( X wayland ) |
168 |
+ xnvctrl? ( video_cards_nvidia )" |
169 |
+ |
170 |
+BDEPEND=" |
171 |
+ app-arch/unzip |
172 |
+ $(python_gen_any_dep 'dev-python/mako[${PYTHON_USEDEP}]') |
173 |
+" |
174 |
+ |
175 |
+python_check_deps() { |
176 |
+ python_has_version "dev-python/mako[${PYTHON_USEDEP}]" |
177 |
+} |
178 |
+ |
179 |
+DEPEND=" |
180 |
+ ~media-libs/imgui-1.81 |
181 |
+ dev-libs/spdlog |
182 |
+ dev-util/glslang |
183 |
+ >=dev-util/vulkan-headers-1.2 |
184 |
+ media-libs/vulkan-loader |
185 |
+ media-libs/libglvnd |
186 |
+ x11-libs/libdrm |
187 |
+ dbus? ( sys-apps/dbus ) |
188 |
+ X? ( x11-libs/libX11 ) |
189 |
+ video_cards_nvidia? ( |
190 |
+ x11-drivers/nvidia-drivers |
191 |
+ xnvctrl? ( x11-drivers/nvidia-drivers[static-libs] ) |
192 |
+ ) |
193 |
+ wayland? ( dev-libs/wayland ) |
194 |
+" |
195 |
+ |
196 |
+RDEPEND="${DEPEND}" |
197 |
+ |
198 |
+PATCHES=( |
199 |
+ "${FILESDIR}/mangohud-0.6.6-meson-fix-imgui-dep.patch" |
200 |
+) |
201 |
+ |
202 |
+src_prepare() { |
203 |
+ default |
204 |
+ # replace all occurences of "#include <imgui.h>" to "#include <imgui/imgui.h>" |
205 |
+ find . -type f -exec sed -i 's/#include <imgui.h>/#include <imgui\/imgui.h>/g' {} \; |
206 |
+ find . -type f -exec sed -i 's/#include "imgui.h"/#include <imgui\/imgui.h>/g' {} \; |
207 |
+} |
208 |
+ |
209 |
+src_configure() { |
210 |
+ local emesonargs=( |
211 |
+ -Dappend_libdir_mangohud=false |
212 |
+ -Duse_system_spdlog=enabled |
213 |
+ -Duse_system_vulkan=enabled |
214 |
+ -Dinclude_doc=false |
215 |
+ $(meson_feature video_cards_nvidia with_nvml) |
216 |
+ $(meson_feature xnvctrl with_xnvctrl) |
217 |
+ $(meson_feature X with_x11) |
218 |
+ $(meson_feature wayland with_wayland) |
219 |
+ $(meson_feature dbus with_dbus) |
220 |
+ ) |
221 |
+ meson_src_configure |
222 |
+} |
223 |
+ |
224 |
+pkg_postinst() { |
225 |
+ if ! use xnvctrl; then |
226 |
+ einfo "" |
227 |
+ einfo "If mangohud can't get GPU load, or other GPU information," |
228 |
+ einfo "and you have an older Nvidia device." |
229 |
+ einfo "" |
230 |
+ einfo "Try enabling the 'xnvctrl' useflag." |
231 |
+ einfo "" |
232 |
+ fi |
233 |
+} |