public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: mate-extra/mate-system-monitor/
Date: Sun, 31 Mar 2019 10:47:53 +0000 (UTC)	[thread overview]
Message-ID: <1554029251.ff46897d6fa08727f2f8b25f633aafacf854103b.asturm@gentoo> (raw)

commit:     ff46897d6fa08727f2f8b25f633aafacf854103b
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 31 09:33:42 2019 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Mar 31 10:47:31 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff46897d

mate-extra/mate-system-monitor: Add USE elogind

Bug: https://bugs.gentoo.org/681334
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 .../mate-system-monitor-1.22.0.ebuild              | 22 +++++++++++++++++++---
 1 file 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 58b518131b0..2df1fb376d2 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[@]}"
 }


             reply	other threads:[~2019-03-31 10:47 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-31 10:47 Andreas Sturmlechner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-11-26  3:17 [gentoo-commits] repo/gentoo:master commit in: mate-extra/mate-system-monitor/ Sam James
2024-09-17 17:50 Andreas Sturmlechner
2024-06-18  8:06 Joonas Niilola
2024-04-09 17:28 Arthur Zamarin
2024-04-09 17:28 Arthur Zamarin
2024-02-07 14:45 Joonas Niilola
2024-01-19 10:53 Sam James
2023-12-21 11:55 Sam James
2022-12-21 10:00 Andreas Sturmlechner
2022-12-16 20:39 Arthur Zamarin
2022-10-04 11:46 Sam James
2022-01-09 15:48 Andreas Sturmlechner
2021-12-10 20:10 Jakov Smolić
2021-12-10 11:35 Jakov Smolić
2021-06-30 22:43 Adam Feldman
2020-12-14 16:47 Mike Gilbert
2020-09-25 20:32 Adam Feldman
2020-09-02  6:02 Adam Feldman
2019-05-12 21:04 Göktürk Yüksek
2019-04-14 21:24 Mikle Kolyada
2019-04-14 16:24 Mikle Kolyada
2019-04-14 15:27 Mikle Kolyada
2019-03-17 11:11 Mikle Kolyada
2019-03-17 11:11 Mikle Kolyada
2018-10-06 20:25 Mart Raudsepp
2018-09-10 16:19 Mikle Kolyada
2018-09-09 23:53 Thomas Deutschmann
2018-02-11 15:03 Ettore Di Giacinto
2017-12-21 21:16 Patrice Clement
2017-09-27  3:23 NP Hardass
2017-06-04 15:18 Ettore Di Giacinto
2016-12-08 15:31 Ettore Di Giacinto
2016-08-12  5:13 NP Hardass
2016-08-06  2:12 NP Hardass
2016-07-25 18:36 NP Hardass
2016-05-30 19:18 Mikle Kolyada
2015-12-25 16:25 Pacho Ramos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1554029251.ff46897d6fa08727f2f8b25f633aafacf854103b.asturm@gentoo \
    --to=asturm@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox