diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-04-05 21:17:31 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-04-05 21:17:31 +0100 |
commit | dc7cbdfa65fd814b3b9aa3c56257da201109e807 (patch) | |
tree | c85d72f6f31f21f178069c9d41d41a7c1ff4b362 /mate-extra/mate-system-monitor/mate-system-monitor-1.22.0.ebuild | |
parent | 0706fc6986773f4e4d391deff4ad5143c464ea4e (diff) |
gentoo resync : 05.04.2019
Diffstat (limited to 'mate-extra/mate-system-monitor/mate-system-monitor-1.22.0.ebuild')
-rw-r--r-- | mate-extra/mate-system-monitor/mate-system-monitor-1.22.0.ebuild | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/mate-extra/mate-system-monitor/mate-system-monitor-1.22.0.ebuild b/mate-extra/mate-system-monitor/mate-system-monitor-1.22.0.ebuild index 58b518131b09..2df1fb376d25 100644 --- a/mate-extra/mate-system-monitor/mate-system-monitor-1.22.0.ebuild +++ b/mate-extra/mate-system-monitor/mate-system-monitor-1.22.0.ebuild @@ -10,10 +10,12 @@ if [[ ${PV} != 9999 ]]; then 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 @@ -28,6 +30,7 @@ COMMON_DEPEND=" >=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} @@ -41,6 +44,19 @@ DEPEND="${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[@]}" } |