1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit linux-info meson
8 DESCRIPTION="Realtime Policy and Watchdog Daemon"
9 HOMEPAGE="https://github.com/heftig/rtkit"
10 SRC_URI="https://github.com/heftig/${PN}/releases/download/v${PV}/${P}.tar.xz"
14 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
17 BDEPEND="virtual/pkgconfig"
18 DEPEND="acct-group/rtkit
23 systemd? ( sys-apps/systemd )"
27 "${FILESDIR}"/${PN}-0.13_meson_rtkitctl_dir.patch
28 "${FILESDIR}"/${PN}-0.13_meson_xxd_optional.patch
32 if use kernel_linux; then
33 CONFIG_CHECK="~!RT_GROUP_SCHED"
34 ERROR_RT_GROUP_SCHED="CONFIG_RT_GROUP_SCHED is enabled. rtkit-daemon (or any other "
35 ERROR_RT_GROUP_SCHED+="real-time task) will not work unless run as root. Please consider "
36 ERROR_RT_GROUP_SCHED+="unsetting this option."
43 -Dinstalled_tests=false
44 $(meson_feature systemd libsystemd)