* [gentoo-commits] repo/proj/guru:dev commit in: games-util/mangohud/, games-util/mangohud/files/
@ 2023-11-27 19:25 Adel KARA SLIMANE
0 siblings, 0 replies; 4+ messages in thread
From: Adel KARA SLIMANE @ 2023-11-27 19:25 UTC (permalink / raw
To: gentoo-commits
commit: 4131f201451831552549c16225d9709b8006acb3
Author: Adel KARA SLIMANE <adel.ks <AT> zegrapher <DOT> com>
AuthorDate: Mon Nov 27 17:52:38 2023 +0000
Commit: Adel KARA SLIMANE <adel <AT> karaslimane <DOT> com>
CommitDate: Mon Nov 27 19:25:53 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4131f201
games-util/mangohud: add 0.7.0, drop 0.6.9.1
Signed-off-by: Adel KARA SLIMANE <adel.ks <AT> zegrapher.com>
games-util/mangohud/Manifest | 2 +-
.../files/mangohud-v0.7.0-imgui-include-fix.patch | 13 +++++++
...h => mangohud-v0.7.0-meson-fix-imgui-dep.patch} | 0
...ngohud-0.6.9.1.ebuild => mangohud-0.7.0.ebuild} | 45 ++++++++++++++--------
4 files changed, 44 insertions(+), 16 deletions(-)
diff --git a/games-util/mangohud/Manifest b/games-util/mangohud/Manifest
index b02ce6d837..cc06a9c609 100644
--- a/games-util/mangohud/Manifest
+++ b/games-util/mangohud/Manifest
@@ -1,3 +1,3 @@
-DIST mangohud-0.6.9.1.tar.gz 14853039 BLAKE2B e34674dc6877249bdfa8929fec1b337876f6d69c42e5c35c37813adca67232084178247d8bef1bf9c0471f9966474df27b25564644dea55e90b3b3c6b9fbf4d1 SHA512 540fb4d1c5494e1305553600f76c57ba75c465df4b76ddbe1f15c418fa9a7e26c66be7ce64a13bfd7c5073bcb985cd28b2876252cdff7c43793d22a40eb78a87
+DIST mangohud-0.7.0.tar.gz 14892372 BLAKE2B 436a7834743aac3f95d55031194fddd79861061010cf5eb25e81cf5eceacf4015b607a191931a85715ca0d58c8e314841d536ce83e7767a39869ab789d376c7a SHA512 1ed43c2ba8a97c8934895450bf1ce152970031e5a5654db91df02d7b44f5eeacb32167f219735d2f0fb3c8ba24fc4386a8af4da99a3cd736af0b0d50ef2fedd7
DIST vulkan-headers-1.2.158-2-meson-wrap.zip 1107 BLAKE2B 35e4bb1f7410a009243fe7d4a4ba6cede7f01e0b56ad6ff72ad30c00c2452bd6d2a4fb44ab92c296147e2506a92acc6de1f817cb5433b96d66652cbcd8885595 SHA512 30cbbb90580399839e1bba8881b9b8cc33fdeead93f37d5f3398c9d53fb3ab050ca2562fd68f376fa4ee0825ee3787f560d70d55a170c780dd575ff2eeb66efd
DIST vulkan-headers-1.2.158.tar.gz 831647 BLAKE2B 792d7e895e27c4a8fbc93fc4d9c9e696d2ceb946e745709c050c0693b77afbeb6411a4267fc59508ddeb58167d469349fedc1c5d4b4a7415b590c97248b244bc SHA512 f7aa9222f9deb1316d22deacc2c6cd85c409f0f2b2d37ecd55e0fc8466d381bbe3bed287881b993a01c5f33736e1607014f820980b7a54a3721fab6980960c91
diff --git a/games-util/mangohud/files/mangohud-v0.7.0-imgui-include-fix.patch b/games-util/mangohud/files/mangohud-v0.7.0-imgui-include-fix.patch
new file mode 100644
index 0000000000..1d5d32e2f1
--- /dev/null
+++ b/games-util/mangohud/files/mangohud-v0.7.0-imgui-include-fix.patch
@@ -0,0 +1,13 @@
+diff --git a/src/overlay.h b/src/overlay.h
+index 8b53285..127c3db 100644
+--- a/src/overlay.h
++++ b/src/overlay.h
+@@ -7,7 +7,7 @@
+ #include <vector>
+ #include <deque>
+ #include <imgui.h>
+-#include "imgui_internal.h"
++#include "imgui/imgui_internal.h"
+ #include "overlay_params.h"
+ #include "hud_elements.h"
+ #include "engine_types.h"
diff --git a/games-util/mangohud/files/mangohud-0.6.6-meson-fix-imgui-dep.patch b/games-util/mangohud/files/mangohud-v0.7.0-meson-fix-imgui-dep.patch
similarity index 100%
rename from games-util/mangohud/files/mangohud-0.6.6-meson-fix-imgui-dep.patch
rename to games-util/mangohud/files/mangohud-v0.7.0-meson-fix-imgui-dep.patch
diff --git a/games-util/mangohud/mangohud-0.6.9.1.ebuild b/games-util/mangohud/mangohud-0.7.0.ebuild
similarity index 63%
rename from games-util/mangohud/mangohud-0.6.9.1.ebuild
rename to games-util/mangohud/mangohud-0.7.0.ebuild
index 34baf3dabe..8b15d25e4d 100644
--- a/games-util/mangohud/mangohud-0.6.9.1.ebuild
+++ b/games-util/mangohud/mangohud-0.7.0.ebuild
@@ -16,19 +16,23 @@ HOMEPAGE="https://github.com/flightlessmango/MangoHud"
VK_HEADERS_VER="1.2.158"
VK_HEADERS_MESON_WRAP_VER="2"
+SRC_URI="
+ https://github.com/KhronosGroup/Vulkan-Headers/archive/v${VK_HEADERS_VER}.tar.gz
+ -> vulkan-headers-${VK_HEADERS_VER}.tar.gz
+ https://wrapdb.mesonbuild.com/v2/vulkan-headers_${VK_HEADERS_VER}-${VK_HEADERS_MESON_WRAP_VER}/get_patch
+ -> vulkan-headers-${VK_HEADERS_VER}-${VK_HEADERS_MESON_WRAP_VER}-meson-wrap.zip
+"
+
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/flightlessmango/MangoHud.git"
else
- SRC_URI="
+ SRC_URI+="
https://github.com/flightlessmango/MangoHud/archive/v${MY_PV}${MY_PV_REV}.tar.gz
-> ${P}.tar.gz
- https://github.com/KhronosGroup/Vulkan-Headers/archive/v${VK_HEADERS_VER}.tar.gz
- -> vulkan-headers-${VK_HEADERS_VER}.tar.gz
- https://wrapdb.mesonbuild.com/v2/vulkan-headers_${VK_HEADERS_VER}-${VK_HEADERS_MESON_WRAP_VER}/get_patch
- -> vulkan-headers-${VK_HEADERS_VER}-${VK_HEADERS_MESON_WRAP_VER}-meson-wrap.zip
"
KEYWORDS="~amd64"
+ S="${WORKDIR}/MangoHud-${PV}"
fi
LICENSE="MIT"
@@ -45,7 +49,10 @@ BDEPEND="
"
python_check_deps() {
- python_has_version "dev-python/mako[${PYTHON_USEDEP}]"
+ python_has_version "dev-python/mako[${PYTHON_USEDEP}]" ||
+ python_has_version "dev-python/matplotlib[gtk3,${PYTHON_USEDEP}]" ||
+ python_has_version "dev-python/matplotlib[qt5,${PYTHON_USEDEP}]" ||
+ python_has_version "dev-python/matplotlib[wxwidgets,${PYTHON_USEDEP}]"
}
DEPEND="
@@ -53,6 +60,7 @@ DEPEND="
dev-cpp/nlohmann_json
dev-libs/spdlog
dev-util/glslang
+ media-fonts/lato
media-libs/vulkan-loader
media-libs/libglvnd
x11-libs/libdrm
@@ -63,28 +71,35 @@ DEPEND="
xnvctrl? ( x11-drivers/nvidia-drivers[static-libs] )
)
wayland? ( dev-libs/wayland )
+ || (
+ $(python_gen_any_dep '
+ dev-python/matplotlib[gtk3,${PYTHON_USEDEP}]
+ dev-python/matplotlib[qt5,${PYTHON_USEDEP}]
+ dev-python/matplotlib[wxwidgets,${PYTHON_USEDEP}]
+ ')
+ )
"
RDEPEND="${DEPEND}"
-[[ "$PV" != "9999" ]] && S="${WORKDIR}/MangoHud-${PV}"
-
PATCHES=(
- "${FILESDIR}/mangohud-0.6.6-meson-fix-imgui-dep.patch"
+ "${FILESDIR}/mangohud-v0.7.0-meson-fix-imgui-dep.patch"
+ "${FILESDIR}/mangohud-v0.7.0-imgui-include-fix.patch"
)
src_unpack() {
+
default
- if [[ $PV != 9999 ]]; then
- [[ -n "${MY_PV_REV}" ]] && ( mv "${WORKDIR}/MangoHud-${MY_PV}${MY_PV_REV}" "${WORKDIR}/MangoHud-${PV}" || die )
+ [[ -n "${MY_PV_REV}" ]] && ( mv "${WORKDIR}/MangoHud-${MY_PV}${MY_PV_REV}" "${WORKDIR}/MangoHud-${PV}" || die )
- unpack vulkan-headers-${VK_HEADERS_VER}.tar.gz
- unpack vulkan-headers-${VK_HEADERS_VER}-${VK_HEADERS_MESON_WRAP_VER}-meson-wrap.zip
- mv "${WORKDIR}/Vulkan-Headers-${VK_HEADERS_VER}" "${S}/subprojects/" || die
- else
+ if [[ $PV == 9999 ]]; then
git-r3_src_unpack
fi
+
+ unpack vulkan-headers-${VK_HEADERS_VER}.tar.gz
+ unpack vulkan-headers-${VK_HEADERS_VER}-${VK_HEADERS_MESON_WRAP_VER}-meson-wrap.zip
+ mv "${WORKDIR}/Vulkan-Headers-${VK_HEADERS_VER}" "${S}/subprojects/" || die
}
src_prepare() {
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: games-util/mangohud/, games-util/mangohud/files/
@ 2024-02-22 14:12 Gonçalo Negrier Duarte
0 siblings, 0 replies; 4+ messages in thread
From: Gonçalo Negrier Duarte @ 2024-02-22 14:12 UTC (permalink / raw
To: gentoo-commits
commit: 55e51f5ec40d8e0822c108ec8475fb791936fd7f
Author: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Thu Feb 22 13:38:25 2024 +0000
Commit: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
CommitDate: Thu Feb 22 14:12:12 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=55e51f5e
games-util/mangohud: drop 0.7.0-r1, add 0.7.1
* thanks for thomasg to provided a updated ebuild
Closes: https://bugs.gentoo.org/925203
Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail.com>
games-util/mangohud/Manifest | 6 ++---
...h => mangohud-v0.7.1-meson-fix-imgui-dep.patch} | 0
...gohud-0.7.0-r1.ebuild => mangohud-0.7.1.ebuild} | 14 ++++++++++--
games-util/mangohud/mangohud-9999.ebuild | 26 +++++++++-------------
4 files changed, 25 insertions(+), 21 deletions(-)
diff --git a/games-util/mangohud/Manifest b/games-util/mangohud/Manifest
index ad59a61752..f52b926d20 100644
--- a/games-util/mangohud/Manifest
+++ b/games-util/mangohud/Manifest
@@ -1,9 +1,7 @@
-DIST implot-0.16-1-meson-wrap.zip 1226 BLAKE2B 4725661fe2c7f7f05e1702c3a871f9feb9fdefdc2a840cdf8a3d56e7e180e950533f830192f9ad19cba97e8094ab53cf73adda2ed6712a83384d4160f6c06b18 SHA512 6e54beebef8ac4ec0b3e85d30d7570c9a987d69c03b6a564bc67d105d19d2cec45cb3ab8921ebcbda51e7139d93c3c6dae359fa30b3fcce748cdec8953aabbf7
+DIST implot-0.16-1-wrap.zip 1226 BLAKE2B 4725661fe2c7f7f05e1702c3a871f9feb9fdefdc2a840cdf8a3d56e7e180e950533f830192f9ad19cba97e8094ab53cf73adda2ed6712a83384d4160f6c06b18 SHA512 6e54beebef8ac4ec0b3e85d30d7570c9a987d69c03b6a564bc67d105d19d2cec45cb3ab8921ebcbda51e7139d93c3c6dae359fa30b3fcce748cdec8953aabbf7
DIST implot-0.16.tar.gz 137983 BLAKE2B aca328e2fe6049b72601f25a409f313e99971f606e68ca780a1594f8ca42b1606831090add8039fefd013cfb6c057900f0add347d1b80c466a05bd18e455b8d7 SHA512 117cb08122d900e7db857897bfec4c9ac3300a1d429c8f0303415bc693840baa9bbbb91ca3f13853d8efd3a6ebf538b7114401d4fbfe0d067256e58cbdbd4919
-DIST mangohud-0.7.0.tar.gz 14892372 BLAKE2B 436a7834743aac3f95d55031194fddd79861061010cf5eb25e81cf5eceacf4015b607a191931a85715ca0d58c8e314841d536ce83e7767a39869ab789d376c7a SHA512 1ed43c2ba8a97c8934895450bf1ce152970031e5a5654db91df02d7b44f5eeacb32167f219735d2f0fb3c8ba24fc4386a8af4da99a3cd736af0b0d50ef2fedd7
+DIST mangohud-0.7.1.tar.gz 14901139 BLAKE2B 722b1caa21225a15d175e0f83dbb4b4a6ac2be92443628dcfe82fe4e36773174121f95deaf078fae9ed25ea74242f5f9acd3e2a4e94111b4a32fbc7c9a852705 SHA512 981b20f0ca986a8e0ee5349dc3d9a5580c1e3eb0a40a1a0e81c390f85d25e3f175fdcca75cd2f18bf0af9f49c7d144de6d85406b6a3c96bdf204a7557f530300
DIST spdlog-1.13.0-1-wrap.zip 2959 BLAKE2B 13744264cfab96ff51f033300182b8937959e7bf74851d7cff26b7e9c05109518b0623a71bfc326951d86c43d104a1bb1700cd45e69ebd41683726e9764f630b SHA512 59c5d50ee1c14a1b43aa3000a591d9fd2bc4c9ff043b23d25be896ca9a34c1c392c26240ed58a5e877231c09fd1b28012f58b3c403d0370cf5dd9169587a8de4
DIST spdlog-1.13.0.tar.gz 264003 BLAKE2B 8ffeec847f082a0932f406ab44b4653661fdbe95a15f7b736367ee6d8f45ab36ca2182a9e9c6fba5c0688ab5436c16932b130541a8532cc2e5f4980e6340b929 SHA512 44fcb414ad9fbbe2a6d72c29143eeeae477b687ed30ae870d661b032a029ad4214ef43e7ef6350d02791d05504492978ade2d6733fab12ce4884d8f0bc4c6340
-DIST spdlog-1.8.5-1-wrap.zip 2211 BLAKE2B 709d961280d83a82bbd440bdf4bafd7692227ecef38dbfc5380d971c41168017f927972855617cdd1cd36a1b8d1ed7fbb94c50a16265d593cfd132195a6cd5ab SHA512 580c724059306191a2e0decbb733ffa9e667354edb6cb08a72afb7ca4f2ef6eb2d52952a59ede631f3097394373f412179adc3aaf522067980a67bfa03c71b49
-DIST spdlog-1.8.5.tar.gz 321229 BLAKE2B 2cdc1902a9e6f51da5c1af02b2961914a5437cfefec13aaaca8b996166c0990f602c811f69569a8812d880f995b401af44457ec4255bc5a0f9e46b51266d1b43 SHA512 77cc9df0c40bbdbfe1f3e5818dccf121918bfceac28f2608f39e5bf944968b7e8e24a6fc29f01bc58a9bae41b8892d49cfb59c196935ec9868884320b50f130c
DIST vulkan-headers-1.2.158-2-meson-wrap.zip 1107 BLAKE2B 35e4bb1f7410a009243fe7d4a4ba6cede7f01e0b56ad6ff72ad30c00c2452bd6d2a4fb44ab92c296147e2506a92acc6de1f817cb5433b96d66652cbcd8885595 SHA512 30cbbb90580399839e1bba8881b9b8cc33fdeead93f37d5f3398c9d53fb3ab050ca2562fd68f376fa4ee0825ee3787f560d70d55a170c780dd575ff2eeb66efd
DIST vulkan-headers-1.2.158.tar.gz 831647 BLAKE2B 792d7e895e27c4a8fbc93fc4d9c9e696d2ceb946e745709c050c0693b77afbeb6411a4267fc59508ddeb58167d469349fedc1c5d4b4a7415b590c97248b244bc SHA512 f7aa9222f9deb1316d22deacc2c6cd85c409f0f2b2d37ecd55e0fc8466d381bbe3bed287881b993a01c5f33736e1607014f820980b7a54a3721fab6980960c91
diff --git a/games-util/mangohud/files/mangohud-v0.7.0-meson-fix-imgui-dep.patch b/games-util/mangohud/files/mangohud-v0.7.1-meson-fix-imgui-dep.patch
similarity index 100%
rename from games-util/mangohud/files/mangohud-v0.7.0-meson-fix-imgui-dep.patch
rename to games-util/mangohud/files/mangohud-v0.7.1-meson-fix-imgui-dep.patch
diff --git a/games-util/mangohud/mangohud-0.7.0-r1.ebuild b/games-util/mangohud/mangohud-0.7.1.ebuild
similarity index 86%
rename from games-util/mangohud/mangohud-0.7.0-r1.ebuild
rename to games-util/mangohud/mangohud-0.7.1.ebuild
index 46bd8da5c4..5260457e43 100644
--- a/games-util/mangohud/mangohud-0.7.0-r1.ebuild
+++ b/games-util/mangohud/mangohud-0.7.1.ebuild
@@ -15,7 +15,8 @@ HOMEPAGE="https://github.com/flightlessmango/MangoHud"
VK_HEADERS_VER="1.2.158"
VK_HEADERS_MESON_WRAP_VER="2"
-SPDLOG_VER="1.8.5"
+SPDLOG_VER="1.13.0"
+IMPLOT_VER="0.16"
SRC_URI="
https://github.com/KhronosGroup/Vulkan-Headers/archive/v${VK_HEADERS_VER}.tar.gz
@@ -24,6 +25,8 @@ SRC_URI="
-> vulkan-headers-${VK_HEADERS_VER}-${VK_HEADERS_MESON_WRAP_VER}-meson-wrap.zip
https://github.com/gabime/spdlog/archive/refs/tags/v${SPDLOG_VER}.tar.gz -> spdlog-${SPDLOG_VER}.tar.gz
https://wrapdb.mesonbuild.com/v2/spdlog_${SPDLOG_VER}-1/get_patch -> spdlog-${SPDLOG_VER}-1-wrap.zip
+ https://github.com/epezent/implot/archive/refs/tags/v${IMPLOT_VER}.tar.gz -> implot-${IMPLOT_VER}.tar.gz
+ https://wrapdb.mesonbuild.com/v2/implot_${IMPLOT_VER}-1/get_patch -> implot-${IMPLOT_VER}-1-wrap.zip
"
if [[ ${PV} == 9999 ]]; then
@@ -79,7 +82,7 @@ RDEPEND="
"
PATCHES=(
- "${FILESDIR}/mangohud-v0.7.0-meson-fix-imgui-dep.patch"
+ "${FILESDIR}/mangohud-v0.7.1-meson-fix-imgui-dep.patch"
)
src_unpack() {
@@ -100,6 +103,10 @@ src_unpack() {
unpack spdlog-${SPDLOG_VER}.tar.gz
unpack spdlog-${SPDLOG_VER}-1-wrap.zip
mv "${WORKDIR}/spdlog-${SPDLOG_VER}" "${S}/subprojects/" || die
+
+ unpack implot-${IMPLOT_VER}.tar.gz
+ unpack implot-${IMPLOT_VER}-1-wrap.zip
+ mv "${WORKDIR}/implot-${IMPLOT_VER}" "${S}/subprojects/" || die
}
src_prepare() {
@@ -109,6 +116,9 @@ src_prepare() {
find . -type f -exec sed -i 's|"imgui.h"|<imgui/imgui.h>|g' {} \; || die
find . -type f -exec sed -i 's|<imgui_internal.h>|<imgui/imgui_internal.h>|g' {} \; || die
find . -type f -exec sed -i 's|"imgui_internal.h"|<imgui/imgui_internal.h>|g' {} \; || die
+
+ # replace imgui_dep in implot build file
+ sed -i -r -e 's|(imgui_dep = ).*|\1dependency('\'imgui\'')|' -e '/imgui_sp/d' "${S}/subprojects/implot-${IMPLOT_VER}/meson.build" || die
}
multilib_src_configure() {
diff --git a/games-util/mangohud/mangohud-9999.ebuild b/games-util/mangohud/mangohud-9999.ebuild
index a4b465dfec..5260457e43 100644
--- a/games-util/mangohud/mangohud-9999.ebuild
+++ b/games-util/mangohud/mangohud-9999.ebuild
@@ -15,22 +15,18 @@ HOMEPAGE="https://github.com/flightlessmango/MangoHud"
VK_HEADERS_VER="1.2.158"
VK_HEADERS_MESON_WRAP_VER="2"
-
-IMPLOT_VER="0.16"
-IMPLOT_MESON_WRAP_VER="1"
SPDLOG_VER="1.13.0"
+IMPLOT_VER="0.16"
SRC_URI="
https://github.com/KhronosGroup/Vulkan-Headers/archive/v${VK_HEADERS_VER}.tar.gz
-> vulkan-headers-${VK_HEADERS_VER}.tar.gz
https://wrapdb.mesonbuild.com/v2/vulkan-headers_${VK_HEADERS_VER}-${VK_HEADERS_MESON_WRAP_VER}/get_patch
-> vulkan-headers-${VK_HEADERS_VER}-${VK_HEADERS_MESON_WRAP_VER}-meson-wrap.zip
- https://github.com/epezent/implot/archive/refs/tags/v${IMPLOT_VER}.tar.gz
- -> implot-${IMPLOT_VER}.tar.gz
- https://wrapdb.mesonbuild.com/v2/implot_${IMPLOT_VER}-${IMPLOT_MESON_WRAP_VER}/get_patch
- -> implot-${IMPLOT_VER}-${IMPLOT_MESON_WRAP_VER}-meson-wrap.zip
https://github.com/gabime/spdlog/archive/refs/tags/v${SPDLOG_VER}.tar.gz -> spdlog-${SPDLOG_VER}.tar.gz
https://wrapdb.mesonbuild.com/v2/spdlog_${SPDLOG_VER}-1/get_patch -> spdlog-${SPDLOG_VER}-1-wrap.zip
+ https://github.com/epezent/implot/archive/refs/tags/v${IMPLOT_VER}.tar.gz -> implot-${IMPLOT_VER}.tar.gz
+ https://wrapdb.mesonbuild.com/v2/implot_${IMPLOT_VER}-1/get_patch -> implot-${IMPLOT_VER}-1-wrap.zip
"
if [[ ${PV} == 9999 ]]; then
@@ -86,7 +82,7 @@ RDEPEND="
"
PATCHES=(
- "${FILESDIR}/mangohud-v0.7.0-meson-fix-imgui-dep.patch"
+ "${FILESDIR}/mangohud-v0.7.1-meson-fix-imgui-dep.patch"
)
src_unpack() {
@@ -103,17 +99,14 @@ src_unpack() {
unpack vulkan-headers-${VK_HEADERS_VER}-${VK_HEADERS_MESON_WRAP_VER}-meson-wrap.zip
mv "${WORKDIR}/Vulkan-Headers-${VK_HEADERS_VER}" "${S}/subprojects/" || die
- unpack implot-${IMPLOT_VER}.tar.gz
- unpack implot-${IMPLOT_VER}-${IMPLOT_MESON_WRAP_VER}-meson-wrap.zip
- mv "${WORKDIR}/implot-${IMPLOT_VER}" "${S}/subprojects/" || die
-
- cd "${S}/subprojects/implot-${IMPLOT_VER}" || die
- eapply "${FILESDIR}/implot-v0.16-fix-imgui-dep.patch"
-
# fix build error by using upstream submodule version of spdlog
unpack spdlog-${SPDLOG_VER}.tar.gz
unpack spdlog-${SPDLOG_VER}-1-wrap.zip
mv "${WORKDIR}/spdlog-${SPDLOG_VER}" "${S}/subprojects/" || die
+
+ unpack implot-${IMPLOT_VER}.tar.gz
+ unpack implot-${IMPLOT_VER}-1-wrap.zip
+ mv "${WORKDIR}/implot-${IMPLOT_VER}" "${S}/subprojects/" || die
}
src_prepare() {
@@ -123,6 +116,9 @@ src_prepare() {
find . -type f -exec sed -i 's|"imgui.h"|<imgui/imgui.h>|g' {} \; || die
find . -type f -exec sed -i 's|<imgui_internal.h>|<imgui/imgui_internal.h>|g' {} \; || die
find . -type f -exec sed -i 's|"imgui_internal.h"|<imgui/imgui_internal.h>|g' {} \; || die
+
+ # replace imgui_dep in implot build file
+ sed -i -r -e 's|(imgui_dep = ).*|\1dependency('\'imgui\'')|' -e '/imgui_sp/d' "${S}/subprojects/implot-${IMPLOT_VER}/meson.build" || die
}
multilib_src_configure() {
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: games-util/mangohud/, games-util/mangohud/files/
@ 2024-05-09 23:42 Gonçalo Negrier Duarte
0 siblings, 0 replies; 4+ messages in thread
From: Gonçalo Negrier Duarte @ 2024-05-09 23:42 UTC (permalink / raw
To: gentoo-commits
commit: e9a378e04e7098e104d84a13015b4277d0c1dfc6
Author: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Thu May 9 22:46:27 2024 +0000
Commit: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
CommitDate: Thu May 9 23:41:58 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e9a378e0
games-util/mangohud: add mangoapp and mangohudctl
* enable test
Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail.com>
.../mangohud/files/mangohud-0.7.1-menson-fix-dep.patch | 2 +-
.../mangohud/files/mangohud-9999-menson-fix-dep.patch | 2 +-
.../{mangohud-0.7.1-r2.ebuild => mangohud-0.7.1-r3.ebuild} | 14 ++++++++++++--
games-util/mangohud/mangohud-9999.ebuild | 14 ++++++++++++--
games-util/mangohud/metadata.xml | 3 +++
5 files changed, 29 insertions(+), 6 deletions(-)
diff --git a/games-util/mangohud/files/mangohud-0.7.1-menson-fix-dep.patch b/games-util/mangohud/files/mangohud-0.7.1-menson-fix-dep.patch
index e06411f0ed..df2f7eb815 100644
--- a/games-util/mangohud/files/mangohud-0.7.1-menson-fix-dep.patch
+++ b/games-util/mangohud/files/mangohud-0.7.1-menson-fix-dep.patch
@@ -34,7 +34,7 @@ index 3bf3918..329ad6f 100644
+# Commented code can be used if mangohud start using latest SDK Vulkan-Headers
+# Allowing user to build mangohud using system Vulkan-Headers
+#if not dependency('VulkanHeaders').found()
-+ vk_sp = subproject('VulkanHeaders')
++ vkh_sp = subproject('vulkan-headers')
+ vk_api_xml = vkh_sp.get_variable('vulkan_api_xml')
+ dep_vulkan = vkh_sp.get_variable('vulkan_headers_dep')
+#else
diff --git a/games-util/mangohud/files/mangohud-9999-menson-fix-dep.patch b/games-util/mangohud/files/mangohud-9999-menson-fix-dep.patch
index 4cf18e1394..549aecfc13 100644
--- a/games-util/mangohud/files/mangohud-9999-menson-fix-dep.patch
+++ b/games-util/mangohud/files/mangohud-9999-menson-fix-dep.patch
@@ -32,7 +32,7 @@ index 86b5411568..00555c7f97 100644
+# Commented code can be used if mangohud start using latest SDK Vulkan-Headers
+# Allowing user to build mangohud using system Vulkan-Headers
+#if not dependency('VulkanHeaders').found()
-+ vk_sp = subproject('VulkanHeaders')
++ vkh_sp = subproject('vulkan-headers')
+ vk_api_xml = vkh_sp.get_variable('vulkan_api_xml')
+ dep_vulkan = vkh_sp.get_variable('vulkan_headers_dep')
+#else
diff --git a/games-util/mangohud/mangohud-0.7.1-r2.ebuild b/games-util/mangohud/mangohud-0.7.1-r3.ebuild
similarity index 87%
rename from games-util/mangohud/mangohud-0.7.1-r2.ebuild
rename to games-util/mangohud/mangohud-0.7.1-r3.ebuild
index 171ea194b7..143418dc36 100644
--- a/games-util/mangohud/mangohud-0.7.1-r2.ebuild
+++ b/games-util/mangohud/mangohud-0.7.1-r3.ebuild
@@ -37,7 +37,8 @@ fi
LICENSE="MIT"
SLOT="0"
-IUSE="+dbus debug +X xnvctrl wayland video_cards_nvidia video_cards_amdgpu"
+IUSE="+dbus debug +X xnvctrl wayland mangoapp mangohudctl video_cards_nvidia video_cards_amdgpu test"
+RESTRICT="!test? ( test )"
REQUIRED_USE="
${PYTHON_REQUIRED_USE}
@@ -48,6 +49,7 @@ REQUIRED_USE="
BDEPEND="
app-arch/unzip
>=dev-util/vulkan-headers-1.2.158
+ test? ( dev-util/cmocka )
$(python_gen_cond_dep 'dev-python/mako[${PYTHON_USEDEP}]')
"
@@ -68,6 +70,10 @@ RDEPEND="
xnvctrl? ( x11-drivers/nvidia-drivers[static-libs] )
)
wayland? ( dev-libs/wayland[${MULTILIB_USEDEP}] )
+ mangoapp? (
+ >=media-libs/imgui-1.81[glfw]
+ media-libs/glew
+ )
$(python_gen_cond_dep '
|| (
dev-python/matplotlib[gtk3,${PYTHON_USEDEP}]
@@ -103,7 +109,8 @@ src_prepare() {
find . -type f -exec sed -i 's|"imgui.h"|<imgui/imgui.h>|g' {} \; || die
find . -type f -exec sed -i 's|<imgui_internal.h>|<imgui/imgui_internal.h>|g' {} \; || die
find . -type f -exec sed -i 's|"imgui_internal.h"|<imgui/imgui_internal.h>|g' {} \; || die
-
+ find . -type f -exec sed -i 's|"imgui_impl_glfw.h"|<imgui/imgui_impl_glfw.h>|g' {} \; || die
+ find . -type f -exec sed -i 's|"imgui_impl_opengl3.h"|<imgui/imgui_impl_opengl3.h>|g' {} \; || die
}
multilib_src_configure() {
@@ -115,6 +122,9 @@ multilib_src_configure() {
$(meson_feature X with_x11)
$(meson_feature wayland with_wayland)
$(meson_feature dbus with_dbus)
+ $(meson_use mangoapp mangoapp)
+ $(meson_use mangoapp mangoapp_layer)
+ $(meson_use mangohudctl mangohudctl)
)
meson_src_configure
}
diff --git a/games-util/mangohud/mangohud-9999.ebuild b/games-util/mangohud/mangohud-9999.ebuild
index 171ea194b7..143418dc36 100644
--- a/games-util/mangohud/mangohud-9999.ebuild
+++ b/games-util/mangohud/mangohud-9999.ebuild
@@ -37,7 +37,8 @@ fi
LICENSE="MIT"
SLOT="0"
-IUSE="+dbus debug +X xnvctrl wayland video_cards_nvidia video_cards_amdgpu"
+IUSE="+dbus debug +X xnvctrl wayland mangoapp mangohudctl video_cards_nvidia video_cards_amdgpu test"
+RESTRICT="!test? ( test )"
REQUIRED_USE="
${PYTHON_REQUIRED_USE}
@@ -48,6 +49,7 @@ REQUIRED_USE="
BDEPEND="
app-arch/unzip
>=dev-util/vulkan-headers-1.2.158
+ test? ( dev-util/cmocka )
$(python_gen_cond_dep 'dev-python/mako[${PYTHON_USEDEP}]')
"
@@ -68,6 +70,10 @@ RDEPEND="
xnvctrl? ( x11-drivers/nvidia-drivers[static-libs] )
)
wayland? ( dev-libs/wayland[${MULTILIB_USEDEP}] )
+ mangoapp? (
+ >=media-libs/imgui-1.81[glfw]
+ media-libs/glew
+ )
$(python_gen_cond_dep '
|| (
dev-python/matplotlib[gtk3,${PYTHON_USEDEP}]
@@ -103,7 +109,8 @@ src_prepare() {
find . -type f -exec sed -i 's|"imgui.h"|<imgui/imgui.h>|g' {} \; || die
find . -type f -exec sed -i 's|<imgui_internal.h>|<imgui/imgui_internal.h>|g' {} \; || die
find . -type f -exec sed -i 's|"imgui_internal.h"|<imgui/imgui_internal.h>|g' {} \; || die
-
+ find . -type f -exec sed -i 's|"imgui_impl_glfw.h"|<imgui/imgui_impl_glfw.h>|g' {} \; || die
+ find . -type f -exec sed -i 's|"imgui_impl_opengl3.h"|<imgui/imgui_impl_opengl3.h>|g' {} \; || die
}
multilib_src_configure() {
@@ -115,6 +122,9 @@ multilib_src_configure() {
$(meson_feature X with_x11)
$(meson_feature wayland with_wayland)
$(meson_feature dbus with_dbus)
+ $(meson_use mangoapp mangoapp)
+ $(meson_use mangoapp mangoapp_layer)
+ $(meson_use mangohudctl mangohudctl)
)
meson_src_configure
}
diff --git a/games-util/mangohud/metadata.xml b/games-util/mangohud/metadata.xml
index 81225ee755..113dd15042 100644
--- a/games-util/mangohud/metadata.xml
+++ b/games-util/mangohud/metadata.xml
@@ -15,5 +15,8 @@
</upstream>
<use>
<flag name="xnvctrl">Use XNVctrl as fall back for older Nvidia devices.</flag>
+ <flag name="test">Run mangohud tests</flag>
+ <flag name="mangoapp">Build and install mangoapp and mangoapp layer</flag>
+ <flag name="mangohudctl">Build and install mangohudctl</flag>
</use>
</pkgmetadata>
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: games-util/mangohud/, games-util/mangohud/files/
@ 2024-06-02 22:11 Gonçalo Negrier Duarte
0 siblings, 0 replies; 4+ messages in thread
From: Gonçalo Negrier Duarte @ 2024-06-02 22:11 UTC (permalink / raw
To: gentoo-commits
commit: cf19ee3f779d95be2d5f52752905a6a21f901ffa
Author: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Sun Jun 2 22:09:19 2024 +0000
Commit: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
CommitDate: Sun Jun 2 22:11:07 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=cf19ee3f
games-util/mangohud: add 0.7.1-r6, drop 0.7.1-r5
* add missing mangoplot useflag (thanks nillerusr)
Closes: https://github.com/gentoo/guru/pull/195
Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail.com>
.../files/mangohud-0.7.1-menson-fix-dep.patch | 116 ---------------------
.../files/mangohud-9999-menson-fix-dep.patch | 108 -------------------
...ud-0.7.1-r5.ebuild => mangohud-0.7.1-r6.ebuild} | 12 +--
games-util/mangohud/mangohud-9999.ebuild | 12 +--
games-util/mangohud/metadata.xml | 1 +
5 files changed, 11 insertions(+), 238 deletions(-)
diff --git a/games-util/mangohud/files/mangohud-0.7.1-menson-fix-dep.patch b/games-util/mangohud/files/mangohud-0.7.1-menson-fix-dep.patch
deleted file mode 100644
index df2f7eb81..000000000
--- a/games-util/mangohud/files/mangohud-0.7.1-menson-fix-dep.patch
+++ /dev/null
@@ -1,116 +0,0 @@
-From c98df705d2a52dcc0322e6ce8626ee1cf8ad87dd Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Gon=C3=A7alo=20Negrier=20Duarte?=
- <gonegrier.duarte@gmail.com>
-Date: Thu, 9 May 2024 21:52:21 +0100
-Subject: [PATCH] meson: verify if system lib are present before fallback to
- submodules
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-* removed use_system_spdlog feature
-* System vulkan-headers cant be use since mangohud don't use latest SDK
-* The code is commented out for future use
-* This is a backport for mangohud-0.7.1 of: aa7875942f5a0b7fdd187916b898b0b63c9a886c
-* (see: https://github.com/flightlessmango/MangoHud/pull/1321)
-
-Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte@gmail.com>
----
- meson.build | 45 ++++++++++++++++++++++++---------------------
- meson_options.txt | 1 -
- 2 files changed, 24 insertions(+), 22 deletions(-)
-
-diff --git a/meson.build b/meson.build
-index 3bf3918..329ad6f 100644
---- a/meson.build
-+++ b/meson.build
-@@ -164,9 +164,16 @@ else
- dep_rt = null_dep
- endif
-
--vkh_sp = subproject('vulkan-headers')
--vk_api_xml = vkh_sp.get_variable('vulkan_api_xml')
--dep_vulkan = vkh_sp.get_variable('vulkan_headers_dep')
-+# Commented code can be used if mangohud start using latest SDK Vulkan-Headers
-+# Allowing user to build mangohud using system Vulkan-Headers
-+#if not dependency('VulkanHeaders').found()
-+ vkh_sp = subproject('vulkan-headers')
-+ vk_api_xml = vkh_sp.get_variable('vulkan_api_xml')
-+ dep_vulkan = vkh_sp.get_variable('vulkan_headers_dep')
-+#else
-+# dep_vulkan = dependency('VulkanHeaders', required: true)
-+# vk_api_xml = files('/usr/share/vulkan/registry/vk.xml')
-+#endif
-
- vk_enum_to_str = custom_target(
- 'vk_enum_to_str',
-@@ -212,31 +219,25 @@ if get_option('mangoapp')
- ]
- endif
-
--dearimgui_sp = subproject('imgui', default_options: imgui_options)
--dearimgui_dep = dearimgui_sp.get_variable('imgui_dep')
-+dearimgui_dep = dependency('imgui', fallback: ['imgui', 'dearimgui_dep'], required: true, default_options: imgui_options)
-
- if is_unixy
--implot_sp = subproject('implot', default_options: ['default_library=static'])
--implot_dep = implot_sp.get_variable('implot_dep')
-+implot_dep = dependency('implot', fallback: ['implot', 'implot_deb'], required: true, default_options: ['default_library=static'])
- else
- implot_dep = null_dep
- implot_lib = static_library('nulllib', [])
- endif
-
--spdlog_dep = cpp.find_library('spdlog', required: get_option('use_system_spdlog'))
--if not spdlog_dep.found()
-- spdlog_sp = subproject('spdlog', default_options: [
-- 'default_library=static',
-- 'compile_library=true',
-- 'werror=false',
-- 'tests=disabled',
-- 'external_fmt=disabled',
-- 'std_format=disabled'
-- ])
-- spdlog_dep = spdlog_sp.get_variable('spdlog_dep')
--else
-- spdlog_dep = dependency('spdlog', required: true)
--endif
-+spdlog_options = [
-+ 'default_library=static',
-+ 'compile_library=true',
-+ 'werror=false',
-+ 'tests=disabled',
-+ 'external_fmt=disabled',
-+ 'std_format=disabled'
-+]
-+
-+spdlog_dep = dependency('spdlog', fallback: ['spdlog', 'spdlog_dep'], required: true, default_options: spdlog_options)
-
- if ['windows', 'mingw'].contains(host_machine.system())
- minhook_sp = subproject('minhook')
-@@ -275,6 +276,7 @@ if get_option('tests').enabled()
- dependencies: [
- cmocka_dep,
- spdlog_dep,
-+ implot_dep,
- dearimgui_dep
- ],
- include_directories: inc_common)
-@@ -287,3 +289,4 @@ endif
- if get_option('mangoplot').enabled()
- subdir('bin')
- endif
-+
-diff --git a/meson_options.txt b/meson_options.txt
-index c82ae15..2984dfe 100644
---- a/meson_options.txt
-+++ b/meson_options.txt
-@@ -1,5 +1,4 @@
- option('glibcxx_asserts', type : 'boolean', value : false)
--option('use_system_spdlog', type : 'feature', value : 'disabled', description: 'Use system spdlog library')
- option('append_libdir_mangohud', type : 'boolean', value : true, description: 'Append "mangohud" to libdir path or not.')
- option('include_doc', type : 'boolean', value : true, description: 'Include the example config, man pages, appstream files etc.')
- option('with_nvml', type : 'combo', value : 'enabled', choices: ['enabled', 'system', 'disabled'], description: 'Enable NVML support')
---
-2.45.0
-
diff --git a/games-util/mangohud/files/mangohud-9999-menson-fix-dep.patch b/games-util/mangohud/files/mangohud-9999-menson-fix-dep.patch
deleted file mode 100644
index 549aecfc1..000000000
--- a/games-util/mangohud/files/mangohud-9999-menson-fix-dep.patch
+++ /dev/null
@@ -1,108 +0,0 @@
-From aa7875942f5a0b7fdd187916b898b0b63c9a886c Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Gon=C3=A7alo=20Negrier=20Duarte?=
- <gonegrier.duarte@gmail.com>
-Date: Thu, 9 May 2024 21:52:21 +0100
-Subject: [PATCH] meson: verify if system lib are present before fallback to
- submodules
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-* removed use_system_spdlog feature
-* System vulkan-headers cant be use since mangohud don't use latest SDK
-* The code is commented out for future use
-
-Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte@gmail.com>
----
- meson.build | 46 +++++++++++++++++++++++++---------------------
- meson_options.txt | 1 -
- 2 files changed, 25 insertions(+), 22 deletions(-)
-
-diff --git a/meson.build b/meson.build
-index 86b5411568..00555c7f97 100644
---- a/meson.build
-+++ b/meson.build
-@@ -166,9 +166,18 @@ else
- dep_rt = null_dep
- endif
-
--vkh_sp = subproject('vulkan-headers')
--vk_api_xml = vkh_sp.get_variable('vulkan_api_xml')
--dep_vulkan = vkh_sp.get_variable('vulkan_headers_dep')
-+# Commented code can be used if mangohud start using latest SDK Vulkan-Headers
-+# Allowing user to build mangohud using system Vulkan-Headers
-+#if not dependency('VulkanHeaders').found()
-+ vkh_sp = subproject('vulkan-headers')
-+ vk_api_xml = vkh_sp.get_variable('vulkan_api_xml')
-+ dep_vulkan = vkh_sp.get_variable('vulkan_headers_dep')
-+#else
-+# dep_vulkan = dependency('VulkanHeaders', required: true)
-+# vk_api_xml = files('/usr/share/vulkan/registry/vk.xml')
-+#endif
-+
-+
-
- vk_enum_to_str = custom_target(
- 'vk_enum_to_str',
-@@ -213,31 +222,25 @@ if get_option('mangoapp')
- 'glfw=enabled',
- ]
- endif
--
--dearimgui_sp = subproject('imgui', default_options: imgui_options)
--dearimgui_dep = dearimgui_sp.get_variable('imgui_dep')
-+dearimgui_dep = dependency('imgui', fallback: ['imgui', 'dearimgui_dep'], required: true, default_options: imgui_options)
-
- if is_unixy
--implot_sp = subproject('implot', default_options: ['default_library=static'])
--implot_dep = implot_sp.get_variable('implot_dep')
-+implot_dep = dependency('implot', fallback: ['implot', 'implot_deb'], required: true, default_options: ['default_library=static'])
- else
- implot_dep = null_dep
- implot_lib = static_library('nulllib', [])
- endif
-
--if not cpp.find_library('spdlog', required: false).found()
-- spdlog_sp = subproject('spdlog', default_options: [
-- 'default_library=static',
-- 'compile_library=true',
-- 'werror=false',
-- 'tests=disabled',
-- 'external_fmt=disabled',
-- 'std_format=disabled'
-- ])
-- spdlog_dep = spdlog_sp.get_variable('spdlog_dep')
--else
-- spdlog_dep = dependency('spdlog', fallback: ['spdlog', 'spdlog_dep'], required: true)
--endif
-+spdlog_options = [
-+ 'default_library=static',
-+ 'compile_library=true',
-+ 'werror=false',
-+ 'tests=disabled',
-+ 'external_fmt=disabled',
-+ 'std_format=disabled'
-+]
-+
-+spdlog_dep = dependency('spdlog', fallback: ['spdlog', 'spdlog_dep'], required: true, default_options: spdlog_options)
-
- if ['windows', 'mingw'].contains(host_machine.system())
- minhook_sp = subproject('minhook')
-@@ -277,6 +280,7 @@ if get_option('tests').enabled()
- dep_vulkan,
- cmocka_dep,
- spdlog_dep,
-+ implot_dep,
- dearimgui_dep
- ],
- include_directories: inc_common)
-diff --git a/meson_options.txt b/meson_options.txt
-index b6f127e635..d5c0a567b3 100644
---- a/meson_options.txt
-+++ b/meson_options.txt
-@@ -1,5 +1,4 @@
- option('glibcxx_asserts', type : 'boolean', value : false)
--option('use_system_spdlog', type : 'feature', value : 'disabled', description: 'Use system spdlog library')
- option('append_libdir_mangohud', type : 'boolean', value : true, description: 'Append "mangohud" to libdir path or not.')
- option('include_doc', type : 'boolean', value : true, description: 'Include the example config, man pages, appstream files etc.')
- option('with_nvml', type : 'combo', value : 'enabled', choices: ['enabled', 'system', 'disabled'], description: 'Enable NVML support')
diff --git a/games-util/mangohud/mangohud-0.7.1-r5.ebuild b/games-util/mangohud/mangohud-0.7.1-r6.ebuild
similarity index 94%
rename from games-util/mangohud/mangohud-0.7.1-r5.ebuild
rename to games-util/mangohud/mangohud-0.7.1-r6.ebuild
index c3fcffcd4..a7f88f4cc 100644
--- a/games-util/mangohud/mangohud-0.7.1-r5.ebuild
+++ b/games-util/mangohud/mangohud-0.7.1-r6.ebuild
@@ -37,7 +37,7 @@ fi
LICENSE="MIT"
SLOT="0"
-IUSE="+dbus debug +X xnvctrl wayland mangoapp mangohudctl video_cards_nvidia video_cards_amdgpu test"
+IUSE="+dbus debug +X xnvctrl wayland mangoapp mangohudctl mangoplot video_cards_nvidia video_cards_amdgpu test"
RESTRICT="!test? ( test )"
REQUIRED_USE="
@@ -77,19 +77,15 @@ RDEPEND="
media-libs/glfw[X]
media-libs/glew
)
- $(python_gen_cond_dep '
+ mangoplot? ( $(python_gen_cond_dep '
|| (
dev-python/matplotlib[gtk3,${PYTHON_USEDEP}]
dev-python/matplotlib[qt5,${PYTHON_USEDEP}]
dev-python/matplotlib[wxwidgets,${PYTHON_USEDEP}]
)
- ')
+ ') )
"
-PATCHES=(
- "${FILESDIR}/${P}-menson-fix-dep.patch"
-)
-
src_unpack() {
default
@@ -120,6 +116,7 @@ multilib_src_configure() {
local emesonargs=(
-Dappend_libdir_mangohud=false
-Dinclude_doc=false
+ -Duse_system_spdlog=enabled
$(meson_feature video_cards_nvidia with_nvml)
$(meson_feature xnvctrl with_xnvctrl)
$(meson_feature X with_x11)
@@ -128,6 +125,7 @@ multilib_src_configure() {
$(meson_use mangoapp mangoapp)
$(meson_use mangoapp mangoapp_layer)
$(meson_use mangohudctl mangohudctl)
+ $(meson_feature mangoplot mangoplot)
)
meson_src_configure
}
diff --git a/games-util/mangohud/mangohud-9999.ebuild b/games-util/mangohud/mangohud-9999.ebuild
index c3fcffcd4..a7f88f4cc 100644
--- a/games-util/mangohud/mangohud-9999.ebuild
+++ b/games-util/mangohud/mangohud-9999.ebuild
@@ -37,7 +37,7 @@ fi
LICENSE="MIT"
SLOT="0"
-IUSE="+dbus debug +X xnvctrl wayland mangoapp mangohudctl video_cards_nvidia video_cards_amdgpu test"
+IUSE="+dbus debug +X xnvctrl wayland mangoapp mangohudctl mangoplot video_cards_nvidia video_cards_amdgpu test"
RESTRICT="!test? ( test )"
REQUIRED_USE="
@@ -77,19 +77,15 @@ RDEPEND="
media-libs/glfw[X]
media-libs/glew
)
- $(python_gen_cond_dep '
+ mangoplot? ( $(python_gen_cond_dep '
|| (
dev-python/matplotlib[gtk3,${PYTHON_USEDEP}]
dev-python/matplotlib[qt5,${PYTHON_USEDEP}]
dev-python/matplotlib[wxwidgets,${PYTHON_USEDEP}]
)
- ')
+ ') )
"
-PATCHES=(
- "${FILESDIR}/${P}-menson-fix-dep.patch"
-)
-
src_unpack() {
default
@@ -120,6 +116,7 @@ multilib_src_configure() {
local emesonargs=(
-Dappend_libdir_mangohud=false
-Dinclude_doc=false
+ -Duse_system_spdlog=enabled
$(meson_feature video_cards_nvidia with_nvml)
$(meson_feature xnvctrl with_xnvctrl)
$(meson_feature X with_x11)
@@ -128,6 +125,7 @@ multilib_src_configure() {
$(meson_use mangoapp mangoapp)
$(meson_use mangoapp mangoapp_layer)
$(meson_use mangohudctl mangohudctl)
+ $(meson_feature mangoplot mangoplot)
)
meson_src_configure
}
diff --git a/games-util/mangohud/metadata.xml b/games-util/mangohud/metadata.xml
index 113dd1504..59686cbd7 100644
--- a/games-util/mangohud/metadata.xml
+++ b/games-util/mangohud/metadata.xml
@@ -18,5 +18,6 @@
<flag name="test">Run mangohud tests</flag>
<flag name="mangoapp">Build and install mangoapp and mangoapp layer</flag>
<flag name="mangohudctl">Build and install mangohudctl</flag>
+ <flag name="mangoplot">Install mangoplot python script</flag>
</use>
</pkgmetadata>
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-06-02 22:11 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-27 19:25 [gentoo-commits] repo/proj/guru:dev commit in: games-util/mangohud/, games-util/mangohud/files/ Adel KARA SLIMANE
-- strict thread matches above, loose matches on Subject: below --
2024-02-22 14:12 Gonçalo Negrier Duarte
2024-05-09 23:42 Gonçalo Negrier Duarte
2024-06-02 22:11 Gonçalo Negrier Duarte
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox