commit:     538863262c9cb2058f9495757bf098f292b39193
Author:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
AuthorDate: Mon Mar  4 15:23:09 2024 +0000
Commit:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Mon Mar  4 15:23:09 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53886326

gui-wm/gamescope: adjusted to the latest stb version

Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>

 .../files/gamescope-3.14.0-deprecated-stb.patch    | 22 ++++++++++++++++++++++
 ...pe-3.14.0.ebuild => gamescope-3.14.0-r1.ebuild} |  4 +++-
 2 files changed, 25 insertions(+), 1 deletion(-)

diff --git a/gui-wm/gamescope/files/gamescope-3.14.0-deprecated-stb.patch 
b/gui-wm/gamescope/files/gamescope-3.14.0-deprecated-stb.patch
new file mode 100644
index 000000000000..9168ed94aa6b
--- /dev/null
+++ b/gui-wm/gamescope/files/gamescope-3.14.0-deprecated-stb.patch
@@ -0,0 +1,22 @@
+--- a/src/reshade_effect_manager.cpp
++++ b/src/reshade_effect_manager.cpp
+@@ -14,7 +14,7 @@
+ 
+ #include <stb_image.h>
+ #define STB_IMAGE_RESIZE_IMPLEMENTATION
+-#include <stb_image_resize.h>
++#include <deprecated/stb_image_resize.h>
+ 
+ #include <unistd.h>
+ #include <sys/types.h>
+--- a/src/steamcompmgr.cpp
++++ b/src/steamcompmgr.cpp
+@@ -108,7 +108,7 @@ static const int g_nBaseCursorScale = 36;
+ #define STB_IMAGE_WRITE_IMPLEMENTATION
+ #include <stb_image.h>
+ #include <stb_image_write.h>
+-#include <stb_image_resize.h>
++#include <deprecated/stb_image_resize.h>
+ 
+ #define GPUVIS_TRACE_IMPLEMENTATION
+ #include "gpuvis_trace_utils.h"

diff --git a/gui-wm/gamescope/gamescope-3.14.0.ebuild 
b/gui-wm/gamescope/gamescope-3.14.0-r1.ebuild
similarity index 96%
rename from gui-wm/gamescope/gamescope-3.14.0.ebuild
rename to gui-wm/gamescope/gamescope-3.14.0-r1.ebuild
index 1d1283d27766..bacc3a1b2891 100644
--- a/gui-wm/gamescope/gamescope-3.14.0.ebuild
+++ b/gui-wm/gamescope/gamescope-3.14.0-r1.ebuild
@@ -48,7 +48,7 @@ RDEPEND="
 "
 DEPEND="
        ${RDEPEND}
-       <dev-libs/stb-20231010
+       >=dev-libs/stb-20240201-r1
        dev-util/vulkan-headers
        <media-libs/glm-1.0.0
        dev-util/spirv-headers
@@ -62,6 +62,8 @@ BDEPEND="
 
 S="${WORKDIR}/${PN}-${MY_PV}"
 
+PATCHES=( "${FILESDIR}/${P}-deprecated-stb.patch" )
+
 FILECAPS=(
        cap_sys_nice usr/bin/${PN}
 )

Reply via email to