]> Liquid.me.uk: Repositories - local/commitdiff
Changes to be committed:
authorroot <root@admin.liquid.me.uk>
Sun, 19 Jan 2025 01:44:00 +0000 (01:44 +0000)
committerroot <root@admin.liquid.me.uk>
Sun, 19 Jan 2025 01:44:00 +0000 (01:44 +0000)
deleted:    dev-libs/randomx/Manifest
deleted:    dev-libs/randomx/randomx-1.1.8.ebuild
new file:   games-util/mangohud/Manifest
new file:   games-util/mangohud/mangohud-0.7.2.ebuild
modified:   media-plugins/eq10q/Manifest
modified:   media-plugins/eq10q/eq10q-2.2_p1.ebuild

dev-libs/randomx/Manifest [deleted file]
dev-libs/randomx/randomx-1.1.8.ebuild [deleted file]
games-util/mangohud/Manifest [new file with mode: 0644]
games-util/mangohud/mangohud-0.7.2.ebuild [new file with mode: 0644]
media-plugins/eq10q/Manifest
media-plugins/eq10q/eq10q-2.2_p1.ebuild

diff --git a/dev-libs/randomx/Manifest b/dev-libs/randomx/Manifest
deleted file mode 100644 (file)
index f58119e..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-DIST randomx-1.1.8.tar.gz 163477 BLAKE2B 482f38a7e9f7b03ec5bd40ff923a1a1e575ed0c30431dcbecfe1072cdb10ccc93b61cf9d2177f4549e284125e17386e0314cb39734b22dc150193bd5d28bb813 SHA512 f41f13ba7b979a969e9d60e6c44cf289802e7459d6d817a64377428c3e833ea2f71a8a1e6559682ecc0ec2a33f958bb5b727d7faa28cb6ff69a524d713969bce
-EBUILD randomx-1.1.8.ebuild 503 BLAKE2B 2d909d0463d33f657d25e1b1b13aa7d4a3c16319f10fd7526ae20134bc90df37bfd6a8718e3631034468ab1c0fd3a0a0980f0f64cf2af3567c7f8420455f20f2 SHA512 d299cdba9c28a3e09d58b17f57334ce13b310e4ef95719b36f49758c58f9fe14f14203456f5eccfee5e0fe7c6351b684e0dfbd53ad8104e0a20cc1b9bc32b4c6
diff --git a/dev-libs/randomx/randomx-1.1.8.ebuild b/dev-libs/randomx/randomx-1.1.8.ebuild
deleted file mode 100644 (file)
index ed8925f..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit cmake flag-o-matic
-
-DESCRIPTION="Proof of work algorithm based on random code execution"
-HOMEPAGE="https://github.com/tevador/RandomX"
-SRC_URI="https://github.com/tevador/RandomX/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="amd64 ~arm ~arm64 ~x86"
-
-S="${WORKDIR}"/RandomX-${PV}
-
-src_configure() {
-       append-ldflags -Wl,-z,noexecstack
-       cmake_src_configure
-}
diff --git a/games-util/mangohud/Manifest b/games-util/mangohud/Manifest
new file mode 100644 (file)
index 0000000..69be168
--- /dev/null
@@ -0,0 +1,4 @@
+DIST mangohud-0.7.2.tar.gz 14906751 BLAKE2B a88e6497d8a8bcd899fc41d555dec429a69c864a10476c1d549acead58a7fc7c5f5d14d901b75bd2aed1d8c8088a027417a74480b89501d947333d665d0567c0 SHA512 edc3e380f9f58b65ae04c970e84eec9ff3458eafb2d89b2208c0afa6978a745a634aab6b0e025996175981e80c66475ef92ffe326d31a67055895b8fd1213e63
+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
+EBUILD mangohud-0.7.2.ebuild 4381 BLAKE2B 39617093bfd2785c655083e8ff278efe69dc1c4b5e10da7fb6c747127afa07ee30d7afeb9ace5d5e19f4987c6e2bf85d9ccbff8134f9701320fc5a58580f3ad3 SHA512 aad1745a9b38d9387af88b0acfbcece570395f8de50afca69e9570405f106ad8e3a9a902eca17a02fe345c74e994a6fcea0b70348e3e6cee7e8c597af7ff7f45
diff --git a/games-util/mangohud/mangohud-0.7.2.ebuild b/games-util/mangohud/mangohud-0.7.2.ebuild
new file mode 100644 (file)
index 0000000..122f285
--- /dev/null
@@ -0,0 +1,146 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+
+inherit flag-o-matic python-single-r1 meson-multilib
+
+MY_PV=$(ver_cut 1-3)
+[[ -n "$(ver_cut 4)" ]] && MY_PV_REV="-$(ver_cut 4)"
+
+DESCRIPTION="Vulkan and OpenGL overlay for monitoring FPS, sensors, system load and more"
+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+="
+               https://github.com/flightlessmango/MangoHud/archive/v${MY_PV}${MY_PV_REV}.tar.gz
+                       -> ${P}.tar.gz
+       "
+       KEYWORDS="~amd64"
+       S="${WORKDIR}/MangoHud-${PV}"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+IUSE="+dbus debug +X xnvctrl wayland mangoapp mangohudctl mangoplot video_cards_nvidia video_cards_amdgpu test"
+RESTRICT="!test? ( test )"
+
+REQUIRED_USE="
+       ${PYTHON_REQUIRED_USE}
+       || ( X wayland )
+       xnvctrl? ( video_cards_nvidia )
+"
+
+BDEPEND="
+       app-arch/unzip
+       >=dev-util/vulkan-headers-1.2.158
+       test? ( dev-util/cmocka )
+       $(python_gen_cond_dep 'dev-python/mako[${PYTHON_USEDEP}]')
+"
+
+RDEPEND="
+       ${PYTHON_DEPS}
+       =media-libs/imgui-1.89.9*[opengl,vulkan,${MULTILIB_USEDEP}]
+       =media-libs/implot-0.16*[${MULTILIB_USEDEP}]
+       dev-libs/spdlog[${MULTILIB_USEDEP}]
+       dev-libs/libfmt[${MULTILIB_USEDEP}]
+       dev-cpp/nlohmann_json
+       dev-util/glslang
+       media-fonts/lato
+       media-libs/vulkan-loader[${MULTILIB_USEDEP}]
+       media-libs/libglvnd[${MULTILIB_USEDEP}]
+       x11-libs/libdrm[${MULTILIB_USEDEP}]
+       dbus? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
+       X? ( x11-libs/libX11[${MULTILIB_USEDEP}] )
+       video_cards_nvidia? (
+               x11-drivers/nvidia-drivers[${MULTILIB_USEDEP}]
+               xnvctrl? ( x11-drivers/nvidia-drivers[static-libs] )
+       )
+       wayland? ( dev-libs/wayland[${MULTILIB_USEDEP}] )
+       mangoapp? (
+               =media-libs/imgui-1.89.9*[glfw]
+               media-libs/glfw[X(+)]
+               media-libs/glew
+       )
+       mangoplot? ( $(python_gen_cond_dep '
+               || (
+                       dev-python/matplotlib[gtk3,${PYTHON_USEDEP}]
+                       dev-python/matplotlib[qt5,${PYTHON_USEDEP}]
+                       dev-python/matplotlib[wxwidgets,${PYTHON_USEDEP}]
+               )
+       ') )
+"
+
+src_unpack() {
+
+       default
+
+       [[ -n "${MY_PV_REV}" ]] && ( mv "${WORKDIR}/MangoHud-${MY_PV}${MY_PV_REV}" "${WORKDIR}/MangoHud-${PV}" || die )
+
+       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() {
+       default
+       # replace all occurences of "#include <imgui.h>" to "#include <imgui/imgui.h>"
+       find . -type f -exec sed -i 's|<imgui.h>|<imgui/imgui.h>|g' {} \; || die
+       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() {
+       # workaround for lld
+       # https://github.com/flightlessmango/MangoHud/issues/1240
+       append-ldflags $(test-flags-CCLD -Wl,--undefined-version)
+
+       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)
+               $(meson_feature wayland with_wayland)
+               $(meson_feature dbus with_dbus)
+               $(meson_use mangoapp mangoapp)
+               $(meson_use mangoapp mangoapp_layer)
+               $(meson_use mangohudctl mangohudctl)
+               $(meson_feature mangoplot mangoplot)
+       )
+       meson_src_configure
+}
+
+pkg_postinst() {
+       if ! use xnvctrl; then
+               einfo ""
+               einfo "If mangohud can't get GPU load, or other GPU information,"
+               einfo "and you have an older Nvidia device."
+               einfo ""
+               einfo "Try enabling the 'xnvctrl' useflag."
+               einfo ""
+       fi
+}
index 197dac62282d321bf4c042875737e4be98fdf72c..437bf0a6d48e26b9323cfe749ee20f4f70e8b5ee 100644 (file)
@@ -1,3 +1,3 @@
 AUX eq10q-2.2_p1.patch 6249 BLAKE2B 0e736648e3e0f2ca403e1f84da1d861393b65878dee1cd2610615fac49757e47d8a3abcf7534f8c17b4ebe81642e39d58c3d1a4ca38d5d658f03d5c2001405fb SHA512 0192d672d61cfcbe78f6f9fbd3ebd694c177136f5aa469f1f347d2da7ac3f3773fbf659f216af16b176c025808c160ec7ad6c9c4cb29c819ae5ff017cbea553c
 DIST eq10q-2.2.tar.gz 797991 BLAKE2B 453cf8e0dcb330e92dfa6be65a83c63c05450956ea9dcef49206d83758c8ea0746cde7d26932e709116a44eb2ce30bb29fa5a4753f5597e71128767b462cb024 SHA512 4c6a79e9f1faeb431abd4e94b6bfa153b1ff5f55b3c2734d35a865ba23e3a7786ee45ee122cdcc26c9a8de915f1c4e2ec588a4c219ad6daf0ccf4a2b474b1e24
-EBUILD eq10q-2.2_p1.ebuild 591 BLAKE2B 68301e525e9c437c76ba2990cc7a877e6a03241f628adf9df0139f31571f91fdfaad0ef311930764a8513f85be228ea9775f8831ba959042d8f5913ea4c5e1fd SHA512 7ed15bff85d4f12b5750b2fd7b81398598ddabcc7e182fc39054fabdd300f68d1119068d79a58ea44d3846bb0f91c9f415945d43be726e0dc0212308e95d57fa
+EBUILD eq10q-2.2_p1.ebuild 592 BLAKE2B 14c8ff565d4afa3f673986fc3135d9a0a4b6b254232f875a67dd09d5fb21de4a8b2ecae8f8b0193240707aecdec8e63d86b862b688d518de2c86a5cf53aba182 SHA512 7d1db741084ef19fe26ae545ff8474865c6332e5fde5af1ea619eb6a03e7620c5c1b706b2aa7e2eda37f032270895b6a6d8028020f5d8de3e454075142dc0086
index eff2d251d8c917b19d61c12ee2cea02833befc13..7179d12cf360418e7c167d55357bbf53388d00bb 100644 (file)
@@ -11,7 +11,7 @@ KEYWORDS="amd64"
 IUSE=""
 
 S="${WORKDIR}/${PN}-${PV%_*}"
-BDEPEND="      >=dev-util/cmake-2.8.2"
+BDEPEND="      >=dev-build/cmake-2.8.2"
 RDEPEND="      >=sci-libs/fftw-3.0.0
                        media-libs/lv2
                        >=dev-cpp/gtkmm-2.4.0"