diff --git a/gui-libs/wlroots/Manifest b/gui-libs/wlroots/Manifest index 0f28ed9b5070a..13acf74fe9ca2 100644 --- a/gui-libs/wlroots/Manifest +++ b/gui-libs/wlroots/Manifest @@ -8,3 +8,5 @@ DIST wlroots-0.19.1.tar.gz 670534 BLAKE2B 09903c35420edf98b8a4e42b098c23ac1603dc DIST wlroots-0.19.1.tar.gz.sig 566 BLAKE2B 3ff9aa20b3b18d0da5db9fb560e8159b29c64980d879317036cab52b6ad83b0466940d0a923c3144ef0edfc72da8dd4ba19826763bdd0fa9ba2006273a97adc7 SHA512 60f53a1304106c8fb694048101c6ad881c52213681285cfd17505446659d90c033c5d79fe574a2296dd4a6e6cde71cb9737d030374f254b44407f853196ed475 DIST wlroots-0.19.2.tar.gz 670983 BLAKE2B b1feba85ea31a1ded7ab13429aeac7d7f8aa44ee831b0031b9befa9354e9c3eadc82d7ecb7f2362c2a1d6bcaf92c14844491e5cc3256bbb06835b2861370c7dd SHA512 8228bdd463f3b79c02cc36311f93eb3a2fe2c8406222316a9996abebfbefa39cc4a9587ea800d677961d59b27c82ae906e538dceaf565403bbb3f2b1ae19eff1 DIST wlroots-0.19.2.tar.gz.sig 566 BLAKE2B abe564e95a94f2b331513e3711ac97b9fb335de377b9c84c512248f6227ce5a9826587341213a63f8aebc21c7ce4bcc7cd2164d16c4102c0691c4bc8dd043398 SHA512 c9f2bc6413c19e1fd52f151779a80513a72f0b9d1df706ad3d77df74f0736c22e12122fe08c3f24c908649ca1f3adad5aee8f8cc65fa0b24155353ca66f6e240 +DIST wlroots-0.20.0.tar.gz 700447 BLAKE2B 3844a9dfd5168fd4484115a826d240bc685fd8d39b48fe96a686cb6463b5cf1a124ae7bbe1bb84db2513b6ab9038fb519145bb3f5f1baf9ca3757f9167070acf SHA512 c951c9f6f9d720f994ee49a937ae8ed63f733a4fa1ce71f7e6ce1513f2cd91616ce8bd8cbb844aa1e46e62f3b46b028f3004bab94eca5ef8899cbaa3134ac314 +DIST wlroots-0.20.0.tar.gz.sig 566 BLAKE2B ec1361cf826a6e7c3c584d99d6049331bc12d49745bf0dfe89ff883dbea238ba043ef0268535ea4e06ce7b9aa65ed24e5f99dc442ac249066ac645dd7bc97394 SHA512 9241568120700b7dadd92ee212ee7c78d1d1fcfe3873250d09c97b9207a7cb8687b393ce8ce9f258698c17caf924ff2c91571e235580fcd7b8618d68e87e690b diff --git a/gui-libs/wlroots/wlroots-0.20.0.ebuild b/gui-libs/wlroots/wlroots-0.20.0.ebuild new file mode 100644 index 0000000000000..245aa80ebd365 --- /dev/null +++ b/gui-libs/wlroots/wlroots-0.20.0.ebuild @@ -0,0 +1,114 @@ +# Copyright 1999-2026 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.21" +else + inherit verify-sig + SRC_URI="https://gitlab.freedesktop.org/${PN}/${PN}/-/releases/${PV}/downloads/${P}.tar.gz + https://gitlab.freedesktop.org/${PN}/${PN}/-/releases/${PV}/downloads/${P}.tar.gz.sig" + 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.24.0 + media-libs/libglvnd + >=media-libs/mesa-24.1.0_rc1[opengl] + >=x11-libs/libdrm-2.4.129 + >=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.47 + dev-util/wayland-scanner + virtual/pkgconfig +" + +if [[ ${PV} != 9999 ]]; then + BDEPEND+=" verify-sig? ( sec-keys/openpgp-keys-emersion )" + VERIFY_SIG_OPENPGP_KEY_PATH="/usr/share/openpgp-keys/emersion.asc" +fi + +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 +}