From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id F182B15817D for ; Sun, 2 Jun 2024 22:11:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A9B71E2BFD; Sun, 2 Jun 2024 22:11:17 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DA126E2BFF for ; Sun, 2 Jun 2024 22:11:16 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BE1ED34097F for ; Sun, 2 Jun 2024 22:11:15 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A3FC21BE8 for ; Sun, 2 Jun 2024 22:11:13 +0000 (UTC) From: "Gonçalo Negrier Duarte" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Gonçalo Negrier Duarte" Message-ID: <1717366267.cf19ee3f779d95be2d5f52752905a6a21f901ffa.gonegrier.duarte@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: games-util/mangohud/, games-util/mangohud/files/ X-VCS-Repository: repo/proj/guru X-VCS-Files: games-util/mangohud/files/mangohud-0.7.1-menson-fix-dep.patch games-util/mangohud/files/mangohud-9999-menson-fix-dep.patch games-util/mangohud/mangohud-0.7.1-r5.ebuild games-util/mangohud/mangohud-0.7.1-r6.ebuild games-util/mangohud/mangohud-9999.ebuild games-util/mangohud/metadata.xml X-VCS-Directories: games-util/mangohud/files/ games-util/mangohud/ X-VCS-Committer: gonegrier.duarte X-VCS-Committer-Name: Gonçalo Negrier Duarte X-VCS-Revision: cf19ee3f779d95be2d5f52752905a6a21f901ffa X-VCS-Branch: dev Date: Sun, 2 Jun 2024 22:11:13 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: a7d9d809-3b56-4033-8427-f36fcee231da X-Archives-Hash: 2245b4589333c2c824877e0e339a0ef9 commit: cf19ee3f779d95be2d5f52752905a6a21f901ffa Author: Gonçalo Negrier Duarte gmail com> AuthorDate: Sun Jun 2 22:09:19 2024 +0000 Commit: Gonçalo Negrier Duarte gmail 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 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?= - -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 ---- - 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?= - -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 ---- - 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 @@ Run mangohud tests Build and install mangoapp and mangoapp layer Build and install mangohudctl + Install mangoplot python script