Bug: https://bugs.gentoo.org/681334
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
fi
DESCRIPTION="The MATE System Monitor"
+
LICENSE="GPL-2"
SLOT="0"
+IUSE="elogind systemd"
-IUSE="systemd"
+REQUIRED_USE="?? ( elogind systemd )"
COMMON_DEPEND="
>=dev-cpp/glibmm-2.26:2
>=x11-libs/gtk+-3.22:3
>=x11-libs/libwnck-3.0:3
virtual/libintl
+ elogind? ( sys-auth/elogind )
systemd? ( sys-apps/systemd )"
RDEPEND="${COMMON_DEPEND}
virtual/pkgconfig:*"
src_configure() {
- mate_src_configure \
- $(use_enable systemd)
+ local myconf=()
+
+ if use elogind || use systemd; then
+ myconf+=( --enable-systemd )
+ if use elogind; then
+ myconf+=(
+ SYSTEMD_CFLAGS=`pkg-config --cflags "libelogind" 2>/dev/null`
+ SYSTEMD_LIBS=`pkg-config --libs "libelogind" 2>/dev/null`
+ )
+ fi
+ else
+ myconf+=( --disable-systemd )
+ fi
+
+ mate_src_configure "${myconf[@]}"
}