mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
gui-libs/wlroots: add 0.20.2
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
@@ -12,3 +12,5 @@ DIST wlroots-0.20.0.tar.gz 700447 BLAKE2B 3844a9dfd5168fd4484115a826d240bc685fd8
|
||||
DIST wlroots-0.20.0.tar.gz.sig 566 BLAKE2B ec1361cf826a6e7c3c584d99d6049331bc12d49745bf0dfe89ff883dbea238ba043ef0268535ea4e06ce7b9aa65ed24e5f99dc442ac249066ac645dd7bc97394 SHA512 9241568120700b7dadd92ee212ee7c78d1d1fcfe3873250d09c97b9207a7cb8687b393ce8ce9f258698c17caf924ff2c91571e235580fcd7b8618d68e87e690b
|
||||
DIST wlroots-0.20.1.tar.gz 700814 BLAKE2B c322c10c8056b269f17f5444479b5c998b5d8856fe9a9311c4003bf4657ff30c368d32f564c062ed2fd9aa93b944a3bd9b754095e638687a221e0ca337406e39 SHA512 9114dd1638cbe2f4762eeae099aa7d92f28a0895ea495c34ff23e581c7fd400ec91c53fc573dab433fc7558b8c56bcef9d9c96a09dacd01b1c55b47356e82ea1
|
||||
DIST wlroots-0.20.1.tar.gz.sig 566 BLAKE2B 1530b4bab7d33fe814f5a76499164220e496070ac26eccab97045a5a2fee72354e9429598f430c4c9b5b06cc4c2c60db137a0fdfa257996bd3f51f316fa5b787 SHA512 882536ebe9e8d0684a58b453674bfe10a6effe553be0201cc2abd46e388d7fb08d726ac751918bde73c15585a08285c6482d01c7c8b6a951411900b581e6215f
|
||||
DIST wlroots-0.20.2.tar.gz 701254 BLAKE2B 0e7ee8e6547c70e14a1fc6838350b15d3670b152f178079e8c7c3d4f6be975aa2a48b2f18d73af248ad924a2c85fcef351b52904c20e0677f06369d5b9e37f87 SHA512 634345e23d0b6c28cb501c0dd0ef9c50d529a92ae5c8455e99e876f3f37ee244ac19dd097f76416b2ae4fd7c3f02e39a92a9322cf5a0caf8da21c31cd900e508
|
||||
DIST wlroots-0.20.2.tar.gz.sig 566 BLAKE2B 9974a9d6611bd3ec2a43321fead83a50e61df6dc46b1fd0a8a58540b1ace307323a813a992c7d326d487c0ebdb261ec5bd730bd6577b45174dabb09d55d2aa83 SHA512 e74dc0abfabed7f40ba4f0e5edfc30ef92b95ebcf4a6aca3b2a605b04b5f2345a6a842cdf56819ce1f050c6181b646eae19dbef835354df7b09562cebbdaa474
|
||||
|
||||
114
gui-libs/wlroots/wlroots-0.20.2.ebuild
Normal file
114
gui-libs/wlroots/wlroots-0.20.2.ebuild
Normal file
@@ -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-20260503 )"
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user