summaryrefslogtreecommitdiff
path: root/gui-wm
diff options
context:
space:
mode:
authorGonçalo Negrier Duarte <gonegrier.duarte@gmail.com>2024-04-07 02:37:04 +0100
committerJames Le Cuirot <chewi@gentoo.org>2024-04-10 23:23:56 +0100
commiteba393ca0736cf36c7aa17157977819ce50a0a4c (patch)
treebb1fbf4aac25582145f60c448ebc8ded68f3d480 /gui-wm
parentgui-libs/libdecor: new package, add 0.2.2, 9999 (diff)
downloadgentoo-eba393ca0736cf36c7aa17157977819ce50a0a4c.tar.gz
gentoo-eba393ca0736cf36c7aa17157977819ce50a0a4c.tar.bz2
gentoo-eba393ca0736cf36c7aa17157977819ce50a0a4c.zip
gui-wm/gamescope: Bump to 3.14.2-r1, drop 3.14.2
* move dev-libs/wayland-protocols to DEPEND * add 9999 logic to the ebuild * future version will require gui-libs/libdecor as (R)DEPEND Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/36064 Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'gui-wm')
-rw-r--r--gui-wm/gamescope/gamescope-3.14.2-r1.ebuild (renamed from gui-wm/gamescope/gamescope-3.14.2.ebuild)33
1 files changed, 24 insertions, 9 deletions
diff --git a/gui-wm/gamescope/gamescope-3.14.2.ebuild b/gui-wm/gamescope/gamescope-3.14.2-r1.ebuild
index be1fd59217bd..ad468106e2c1 100644
--- a/gui-wm/gamescope/gamescope-3.14.2.ebuild
+++ b/gui-wm/gamescope/gamescope-3.14.2-r1.ebuild
@@ -11,9 +11,22 @@ MY_PV="${MY_PV//_/-}"
DESCRIPTION="Efficient micro-compositor for running games"
HOMEPAGE="https://github.com/ValveSoftware/gamescope"
-SRC_URI="https://github.com/ValveSoftware/${PN}/archive/refs/tags/${MY_PV}.tar.gz -> ${P}.tar.gz
- https://github.com/Joshua-Ashton/reshade/archive/${RESHADE_COMMIT}.tar.gz -> reshade-${RESHADE_COMMIT}.tar.gz"
-KEYWORDS="~amd64"
+if [[ ${PV} == "9999" ]]; then
+ EGIT_REPO_URI="https://github.com/ValveSoftware/${PN}.git"
+ # Prevent wlroots and other submodule from being pull
+ # Not messing with system packages
+ EGIT_SUBMODULES=( src/reshade )
+ inherit git-r3
+else
+ SRC_URI="
+ https://github.com/ValveSoftware/${PN}/archive/refs/tags/${MY_PV}.tar.gz -> ${P}.tar.gz
+ https://github.com/Joshua-Ashton/reshade/archive/${RESHADE_COMMIT}.tar.gz -> reshade-${RESHADE_COMMIT}.tar.gz
+ "
+ KEYWORDS="~amd64"
+fi
+
+S="${WORKDIR}/${PN}-${MY_PV}"
+
LICENSE="BSD-2"
SLOT="0"
IUSE="pipewire +wsi-layer"
@@ -21,7 +34,6 @@ IUSE="pipewire +wsi-layer"
RDEPEND="
=dev-libs/libliftoff-0.4*
>=dev-libs/wayland-1.21
- >=dev-libs/wayland-protocols-1.17
=gui-libs/wlroots-0.17*[X,libinput(+)]
>=media-libs/libavif-1.0.0:=
>=media-libs/libdisplay-info-0.1.1
@@ -48,6 +60,7 @@ RDEPEND="
"
DEPEND="
${RDEPEND}
+ >=dev-libs/wayland-protocols-1.34
>=dev-libs/stb-20240201-r1
dev-util/vulkan-headers
media-libs/glm
@@ -60,8 +73,6 @@ BDEPEND="
virtual/pkgconfig
"
-S="${WORKDIR}/${PN}-${MY_PV}"
-
PATCHES=(
"${FILESDIR}"/${PN}-deprecated-stb.patch
)
@@ -75,12 +86,16 @@ src_prepare() {
# ReShade is bundled as a git submodule, but it references an unofficial
# fork, so we cannot unbundle it. Symlink to its extracted sources.
- rmdir src/reshade || die
- ln -snfT ../../reshade-${RESHADE_COMMIT} src/reshade || die
+ # For 9999, use the bundled submodule.
+ if [[ ${PV} != "9999" ]]; then
+ rmdir src/reshade || die
+ ln -snfT ../../reshade-${RESHADE_COMMIT} src/reshade || die
+ fi
# SPIRV-Headers is required by ReShade. It is bundled as a git submodule but
# not wrapped with Meson, so we can symlink to our system-wide headers.
- mkdir thirdparty/SPIRV-Headers/include || die
+ # For 9999, this submodule is not included.
+ mkdir -p thirdparty/SPIRV-Headers/include || die
ln -snf "${ESYSROOT}"/usr/include/spirv thirdparty/SPIRV-Headers/include/ || die
}