2022-02-26 23:24:01 +03:00
|
|
|
# Copyright 1999-2022 Gentoo Authors
|
2018-10-31 00:34:30 +03:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2022-02-26 23:24:01 +03:00
|
|
|
EAPI=8
|
2018-10-31 00:34:30 +03:00
|
|
|
|
2021-04-21 10:37:46 +03:00
|
|
|
inherit meson
|
2018-10-31 00:34:30 +03:00
|
|
|
|
|
|
|
DESCRIPTION="Pluggable, composable, unopinionated modules for building a Wayland compositor"
|
2021-11-19 12:58:05 +03:00
|
|
|
HOMEPAGE="https://gitlab.freedesktop.org/wlroots/wlroots"
|
2018-10-31 00:34:30 +03:00
|
|
|
|
2019-02-13 10:08:55 +03:00
|
|
|
if [[ ${PV} == 9999 ]]; then
|
2021-11-19 12:58:05 +03:00
|
|
|
EGIT_REPO_URI="https://gitlab.freedesktop.org/${PN}/${PN}.git"
|
2019-02-13 10:08:55 +03:00
|
|
|
inherit git-r3
|
2021-04-21 10:37:46 +03:00
|
|
|
SLOT="0/9999"
|
2019-02-13 10:08:55 +03:00
|
|
|
else
|
2022-02-26 23:24:01 +03:00
|
|
|
SRC_URI="https://gitlab.freedesktop.org/${PN}/${PN}/-/archive/${PV}/${P}.tar.gz"
|
2022-05-26 09:45:07 +03:00
|
|
|
KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~riscv ~x86"
|
2022-02-26 23:24:01 +03:00
|
|
|
SLOT="0/$(ver_cut 2)"
|
2019-02-13 10:08:55 +03:00
|
|
|
fi
|
|
|
|
|
2018-10-31 00:34:30 +03:00
|
|
|
LICENSE="MIT"
|
2021-11-01 18:02:00 +03:00
|
|
|
IUSE="vulkan x11-backend X"
|
2018-10-31 00:34:30 +03:00
|
|
|
|
2019-02-13 10:08:55 +03:00
|
|
|
DEPEND="
|
2021-04-09 09:15:21 +03:00
|
|
|
>=dev-libs/libinput-1.14.0:0=
|
2021-12-25 14:27:22 +03:00
|
|
|
>=dev-libs/wayland-1.20.0
|
2021-12-15 10:54:40 +03:00
|
|
|
>=dev-libs/wayland-protocols-1.24
|
2021-10-31 10:15:43 +03:00
|
|
|
media-libs/mesa[egl(+),gles2,gbm(+)]
|
2021-04-21 10:37:46 +03:00
|
|
|
sys-auth/seatd:=
|
2018-10-31 00:34:30 +03:00
|
|
|
virtual/libudev
|
2021-11-01 18:02:00 +03:00
|
|
|
vulkan? (
|
|
|
|
dev-util/glslang:0=
|
|
|
|
dev-util/vulkan-headers:0=
|
|
|
|
media-libs/vulkan-loader:0=
|
|
|
|
)
|
2021-12-25 14:27:22 +03:00
|
|
|
>=x11-libs/libdrm-2.4.109:0=
|
2018-10-31 00:34:30 +03:00
|
|
|
x11-libs/libxkbcommon
|
|
|
|
x11-libs/pixman
|
2018-12-03 00:02:44 +03:00
|
|
|
x11-backend? ( x11-libs/libxcb:0= )
|
2018-10-31 00:34:30 +03:00
|
|
|
X? (
|
2021-07-27 08:29:52 +03:00
|
|
|
x11-base/xwayland
|
2018-10-31 00:34:30 +03:00
|
|
|
x11-libs/libxcb:0=
|
2019-02-13 10:08:55 +03:00
|
|
|
x11-libs/xcb-util-image
|
2021-04-21 10:37:46 +03:00
|
|
|
x11-libs/xcb-util-wm
|
2019-02-13 10:08:55 +03:00
|
|
|
)
|
|
|
|
"
|
|
|
|
RDEPEND="
|
|
|
|
${DEPEND}
|
|
|
|
"
|
|
|
|
BDEPEND="
|
2021-12-15 10:54:40 +03:00
|
|
|
>=dev-libs/wayland-protocols-1.24
|
|
|
|
>=dev-util/meson-0.60.0
|
2019-02-13 10:08:55 +03:00
|
|
|
virtual/pkgconfig
|
|
|
|
"
|
2018-10-31 00:34:30 +03:00
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
# xcb-util-errors is not on Gentoo Repository (and upstream seems inactive?)
|
|
|
|
local emesonargs=(
|
|
|
|
"-Dxcb-errors=disabled"
|
|
|
|
"-Dexamples=false"
|
2021-11-01 18:02:00 +03:00
|
|
|
-Drenderers=$(usex vulkan 'gles2,vulkan' gles2)
|
2021-04-21 10:37:46 +03:00
|
|
|
-Dxwayland=$(usex X enabled disabled)
|
2021-11-01 18:02:00 +03:00
|
|
|
-Dbackends=drm,libinput$(usex x11-backend ',x11' '')
|
2018-10-31 00:34:30 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
meson_src_configure
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postinst() {
|
|
|
|
elog "You must be in the input group to allow your compositor"
|
|
|
|
elog "to access input devices via libinput."
|
|
|
|
}
|