Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mate-extra/mate-system-monitor/
Date: Sun, 31 Mar 2019 10:47:59
Message-Id: 1554029251.ff46897d6fa08727f2f8b25f633aafacf854103b.asturm@gentoo
1 commit: ff46897d6fa08727f2f8b25f633aafacf854103b
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 31 09:33:42 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 31 10:47:31 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff46897d
7
8 mate-extra/mate-system-monitor: Add USE elogind
9
10 Bug: https://bugs.gentoo.org/681334
11 Package-Manager: Portage-2.3.62, Repoman-2.3.12
12 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
13
14 .../mate-system-monitor-1.22.0.ebuild | 22 +++++++++++++++++++---
15 1 file changed, 19 insertions(+), 3 deletions(-)
16
17 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
18 index 58b518131b0..2df1fb376d2 100644
19 --- a/mate-extra/mate-system-monitor/mate-system-monitor-1.22.0.ebuild
20 +++ b/mate-extra/mate-system-monitor/mate-system-monitor-1.22.0.ebuild
21 @@ -10,10 +10,12 @@ if [[ ${PV} != 9999 ]]; then
22 fi
23
24 DESCRIPTION="The MATE System Monitor"
25 +
26 LICENSE="GPL-2"
27 SLOT="0"
28 +IUSE="elogind systemd"
29
30 -IUSE="systemd"
31 +REQUIRED_USE="?? ( elogind systemd )"
32
33 COMMON_DEPEND="
34 >=dev-cpp/glibmm-2.26:2
35 @@ -28,6 +30,7 @@ COMMON_DEPEND="
36 >=x11-libs/gtk+-3.22:3
37 >=x11-libs/libwnck-3.0:3
38 virtual/libintl
39 + elogind? ( sys-auth/elogind )
40 systemd? ( sys-apps/systemd )"
41
42 RDEPEND="${COMMON_DEPEND}
43 @@ -41,6 +44,19 @@ DEPEND="${COMMON_DEPEND}
44 virtual/pkgconfig:*"
45
46 src_configure() {
47 - mate_src_configure \
48 - $(use_enable systemd)
49 + local myconf=()
50 +
51 + if use elogind || use systemd; then
52 + myconf+=( --enable-systemd )
53 + if use elogind; then
54 + myconf+=(
55 + SYSTEMD_CFLAGS=`pkg-config --cflags "libelogind" 2>/dev/null`
56 + SYSTEMD_LIBS=`pkg-config --libs "libelogind" 2>/dev/null`
57 + )
58 + fi
59 + else
60 + myconf+=( --disable-systemd )
61 + fi
62 +
63 + mate_src_configure "${myconf[@]}"
64 }