summaryrefslogtreecommitdiff
path: root/gui-wm
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2022-08-08 23:52:39 +0100
committerJames Le Cuirot <chewi@gentoo.org>2022-08-08 23:52:39 +0100
commitf42a55759f7c5dd2837b7a66fc8c86d9a96c09f0 (patch)
tree62d053c744edbe53ed1901552d80e227ce7e2d94 /gui-wm
parentdev-libs/libliftoff: New package at version 0.2.0 (diff)
downloadgentoo-f42a55759f7c5dd2837b7a66fc8c86d9a96c09f0.tar.gz
gentoo-f42a55759f7c5dd2837b7a66fc8c86d9a96c09f0.tar.bz2
gentoo-f42a55759f7c5dd2837b7a66fc8c86d9a96c09f0.zip
gui-wm/gamescope: New package at 3.11.33_beta1
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'gui-wm')
-rw-r--r--gui-wm/gamescope/Manifest1
-rw-r--r--gui-wm/gamescope/gamescope-3.11.33_beta1.ebuild69
-rw-r--r--gui-wm/gamescope/metadata.xml11
3 files changed, 81 insertions, 0 deletions
diff --git a/gui-wm/gamescope/Manifest b/gui-wm/gamescope/Manifest
new file mode 100644
index 000000000000..c2fbded56d82
--- /dev/null
+++ b/gui-wm/gamescope/Manifest
@@ -0,0 +1 @@
+DIST gamescope-3.11.33_beta1.tar.gz 188791 BLAKE2B 9866d6131f7ab4bfa90e564d8cde21ae3fa3913fec9a22bc5fa83e418379814a087adf24207e67b737af243523725108958a3a8c34f245031683710b436144d7 SHA512 0842e52e6e9bac154b6256852866f8bb861256e07fa8b78535f2b8e2946c0ff5379c645fcfae710bd7168be2ddc9e48e77aaf49fc65f4b061e225fbb16b8b78c
diff --git a/gui-wm/gamescope/gamescope-3.11.33_beta1.ebuild b/gui-wm/gamescope/gamescope-3.11.33_beta1.ebuild
new file mode 100644
index 000000000000..d236ff8e6802
--- /dev/null
+++ b/gui-wm/gamescope/gamescope-3.11.33_beta1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit fcaps meson
+
+MY_PV="${PV//_/-}"
+DESCRIPTION="Efficient micro-compositor for running games"
+HOMEPAGE="https://github.com/Plagman/gamescope"
+SRC_URI="https://github.com/Plagman/${PN}/archive/refs/tags/${MY_PV}.tar.gz -> ${P}.tar.gz"
+KEYWORDS="~amd64"
+LICENSE="BSD-2"
+SLOT="0"
+IUSE="pipewire"
+
+RDEPEND="
+ =dev-libs/libliftoff-0.2*
+ dev-libs/wayland
+ >=dev-libs/wayland-protocols-1.17
+ =gui-libs/wlroots-0.15*[X]
+ media-libs/libsdl2[video]
+ media-libs/vulkan-loader
+ sys-libs/libcap
+ x11-libs/libdrm
+ x11-libs/libX11
+ x11-libs/libXcomposite
+ x11-libs/libXdamage
+ x11-libs/libXext
+ x11-libs/libXfixes
+ x11-libs/libxkbcommon
+ x11-libs/libXrender
+ x11-libs/libXres
+ x11-libs/libXtst
+ x11-libs/libXxf86vm
+ pipewire? ( >=media-video/pipewire-0.3:= )
+"
+DEPEND="
+ ${RDEPEND}
+ dev-libs/stb
+ dev-util/vulkan-headers
+"
+BDEPEND="
+ dev-util/glslang
+ dev-util/wayland-scanner
+"
+
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+FILECAPS=(
+ cap_sys_nice usr/bin/${PN}
+)
+
+src_prepare() {
+ default
+
+ # Normally uses stb from a git submodule. Upstream does not ship a
+ # pkg-config file so we don't install one. Work around this using symlinks.
+ mkdir subprojects/stb || die
+ ln -snf "${ESYSROOT}"/usr/include/stb/* "${S}"/subprojects/packagefiles/stb/* subprojects/stb/ || die
+}
+
+src_configure() {
+ local emesonargs=(
+ --force-fallback-for=
+ $(meson_feature pipewire)
+ )
+ meson_src_configure
+}
diff --git a/gui-wm/gamescope/metadata.xml b/gui-wm/gamescope/metadata.xml
new file mode 100644
index 000000000000..c218716acb8a
--- /dev/null
+++ b/gui-wm/gamescope/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM 'https://www.gentoo.org/dtd/metadata.dtd'>
+<pkgmetadata>
+ <maintainer type="person">
+ <email>chewi@gentoo.org</email>
+ <name>James Le Cuirot</name>
+ </maintainer>
+ <use>
+ <flag name="pipewire">Enable screen capture via PipeWire</flag>
+ </use>
+</pkgmetadata>