commit:     232e336e2759b52e0fb1237fbd0c141658cf036f
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 24 12:39:10 2025 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri Oct 24 12:39:31 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=232e336e

gui-libs/wlroots: add 0.19.2

Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 gui-libs/wlroots/Manifest              |   1 +
 gui-libs/wlroots/wlroots-0.19.2.ebuild | 107 +++++++++++++++++++++++++++++++++
 2 files changed, 108 insertions(+)

diff --git a/gui-libs/wlroots/Manifest b/gui-libs/wlroots/Manifest
index c238dd06c41c..e6b641d25d87 100644
--- a/gui-libs/wlroots/Manifest
+++ b/gui-libs/wlroots/Manifest
@@ -2,3 +2,4 @@ DIST wlroots-0.17.4.tar.gz 609179 BLAKE2B 
dc5a7749533ab54631d4a26be554b86e5b08b2
 DIST wlroots-0.18.2.tar.gz 629379 BLAKE2B 
db88626c208085f5e3744ab90427469f828a602d3842d8fefd8fa35efa10928e5ff1f38bfc40fee69106dfb60d84847ddf3fee380fd71535482aff5a2e567dfb
 SHA512 
a03826f51dbca287ecbb217aadc361a1dedbbe5e225ee7b9ca22779456156c1035acaea7301ca509c410bfef9d0c33cf94cba140bba25d979608b14a99be8c8a
 DIST wlroots-0.19.0.tar.gz 669326 BLAKE2B 
7f98bab6c21dee7d1634042c8d430c77b572dc760913fae8d4ae6defc525909b6eb65174ed21a84eda1d4da9dceb91b2029cf754775ec15df8cbca6f23c4d581
 SHA512 
f48055b9bf480f05c97d1d65597697ac9a68cc0529f09bd8667e86555eea5c4635613045076017f87dee6a1b72419b9828d3493991e563ac7b9e614684d7bcde
 DIST wlroots-0.19.1.tar.gz 670534 BLAKE2B 
09903c35420edf98b8a4e42b098c23ac1603dc5a4020a6645c658eee13ddbcf8d525dca9e9c3690ec9629fe100ec49583cd70da64dc992989503757fd849c060
 SHA512 
2aac7ca61d6bae71268b114a2348fcd4d5b5734e245c1e6decf5d8230ea24245e30e48f79634aaea2743b89a89721a8fb2d74cd5e9c8da8f1525f30d410b420c
+DIST wlroots-0.19.2.tar.gz 670983 BLAKE2B 
b1feba85ea31a1ded7ab13429aeac7d7f8aa44ee831b0031b9befa9354e9c3eadc82d7ecb7f2362c2a1d6bcaf92c14844491e5cc3256bbb06835b2861370c7dd
 SHA512 
8228bdd463f3b79c02cc36311f93eb3a2fe2c8406222316a9996abebfbefa39cc4a9587ea800d677961d59b27c82ae906e538dceaf565403bbb3f2b1ae19eff1

diff --git a/gui-libs/wlroots/wlroots-0.19.2.ebuild 
b/gui-libs/wlroots/wlroots-0.19.2.ebuild
new file mode 100644
index 000000000000..bb1a66cf79b7
--- /dev/null
+++ b/gui-libs/wlroots/wlroots-0.19.2.ebuild
@@ -0,0 +1,107 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit meson
+
+DESCRIPTION="Pluggable, composable, unopinionated modules for building a 
Wayland compositor"
+HOMEPAGE="https://gitlab.freedesktop.org/wlroots/wlroots";
+
+if [[ ${PV} == 9999 ]]; then
+       EGIT_REPO_URI="https://gitlab.freedesktop.org/${PN}/${PN}.git";
+       inherit git-r3
+       SLOT="0.19"
+else
+       
SRC_URI="https://gitlab.freedesktop.org/${PN}/${PN}/-/releases/${PV}/downloads/${P}.tar.gz";
+       KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86"
+       SLOT="$(ver_cut 1-2)"
+fi
+
+LICENSE="MIT"
+IUSE="liftoff +libinput +drm +session lcms vulkan x11-backend xcb-errors X"
+REQUIRED_USE="
+       drm? ( session )
+       libinput? ( session )
+       liftoff? ( drm )
+       xcb-errors? ( || ( x11-backend X ) )
+"
+
+DEPEND="
+       >=dev-libs/wayland-1.23.1
+       media-libs/libglvnd
+       >=media-libs/mesa-24.1.0_rc1[opengl]
+       >=x11-libs/libdrm-2.4.122
+       >=x11-libs/libxkbcommon-1.8.0
+       >=x11-libs/pixman-0.43.0
+       drm? (
+               media-libs/libdisplay-info:=
+               sys-apps/hwdata
+               liftoff? ( >=dev-libs/libliftoff-0.4 )
+       )
+       lcms? ( media-libs/lcms:2 )
+       libinput? ( >=dev-libs/libinput-1.19.0:= )
+       session? (
+               sys-auth/seatd:=
+               virtual/libudev
+       )
+       vulkan? (
+               dev-util/glslang:=
+               dev-util/vulkan-headers
+               media-libs/vulkan-loader
+       )
+       xcb-errors? ( x11-libs/xcb-util-errors )
+       x11-backend? (
+               x11-libs/libxcb:=
+               x11-libs/xcb-util-renderutil
+       )
+       X? (
+               x11-libs/libxcb:=
+               x11-libs/xcb-util-wm
+               x11-base/xwayland
+       )
+"
+RDEPEND="
+       ${DEPEND}
+"
+BDEPEND="
+       >=dev-libs/wayland-protocols-1.41
+       dev-util/wayland-scanner
+       virtual/pkgconfig
+"
+
+src_configure() {
+       # assert SLOT matches the version
+       grep -q -e "version.*${SLOT}" meson.build || die "SLOT ${SLOT} does not 
match the version in meson.build"
+
+       local backends=(
+               $(usev drm)
+               $(usev libinput)
+               $(usev x11-backend 'x11')
+       )
+       local meson_backends=$(IFS=','; echo "${backends[*]}")
+       local emesonargs=(
+               $(meson_feature xcb-errors)
+               -Dexamples=false
+               -Drenderers=$(usex vulkan 'gles2,vulkan' gles2)
+               $(meson_feature X xwayland)
+               -Dbackends=${meson_backends}
+               $(meson_feature session)
+               $(meson_feature lcms color-management)
+               $(meson_feature liftoff libliftoff)
+       )
+
+       meson_src_configure
+}
+
+src_install() {
+       meson_src_install
+       dodoc docs/*
+}
+
+pkg_postinst() {
+       if use !session; then
+               elog "You must be in the input group to allow your compositor"
+               elog "to access input devices via libinput."
+       fi
+}

Reply via email to