From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-commits+bounces-340529-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1QG3wR-00080D-IE
	for garchives@archives.gentoo.org; Sat, 30 Apr 2011 06:46:17 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 7EF7C1C013;
	Sat, 30 Apr 2011 06:45:59 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	by pigeon.gentoo.org (Postfix) with ESMTP id 4F72E1C013
	for <gentoo-commits@lists.gentoo.org>; Sat, 30 Apr 2011 06:45:59 +0000 (UTC)
Received: from pelican.gentoo.org (unknown [66.219.59.40])
	(using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id B19491B4038
	for <gentoo-commits@lists.gentoo.org>; Sat, 30 Apr 2011 06:45:58 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
	by pelican.gentoo.org (Postfix) with ESMTP id D27988050B
	for <gentoo-commits@lists.gentoo.org>; Sat, 30 Apr 2011 06:45:57 +0000 (UTC)
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" <mgorny@gentoo.org>
Message-ID: <332e64d0413a0ef8bec096c2f6c1a04829e4752c.mgorny@gentoo>
Subject: [gentoo-commits] dev/mgorny:master commit in: eclass/
X-VCS-Repository: dev/mgorny
X-VCS-Files: eclass/systemd.eclass
X-VCS-Directories: eclass/
X-VCS-Committer: mgorny
X-VCS-Committer-Name: Michał Górny
X-VCS-Revision: 332e64d0413a0ef8bec096c2f6c1a04829e4752c
Date: Sat, 30 Apr 2011 06:45:57 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: quoted-printable
X-Archives-Salt: 
X-Archives-Hash: 0ed9fd2bbabf0a0fa1ba121b0f660114

commit:     332e64d0413a0ef8bec096c2f6c1a04829e4752c
Author:     Micha=C5=82 G=C3=B3rny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 30 06:36:22 2011 +0000
Commit:     Micha=C5=82 G=C3=B3rny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Apr 30 06:45:15 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=3Ddev/mgorny.git;a=3D=
commit;h=3D332e64d0

[eclass] Introduce systemd_to_myeconfargs().

---
 eclass/systemd.eclass |   17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)

diff --git a/eclass/systemd.eclass b/eclass/systemd.eclass
index 517026a..d392fc3 100644
--- a/eclass/systemd.eclass
+++ b/eclass/systemd.eclass
@@ -64,9 +64,24 @@ systemd_enable_service() {
 # @DESCRIPTION:
 # Output '--with-systemdsystemunitdir' as expected by systemd-aware conf=
igure
 # scripts. This function always succeeds. Its output may be quoted in or=
der
-# to preserve whitespace in paths.
+# to preserve whitespace in paths. systemd_to_myeconfargs() is preferred=
 over
+# this function.
 systemd_with_unitdir() {
 	debug-print-function ${FUNCNAME} "${@}"
=20
 	echo -n --with-systemdsystemunitdir=3D"$(systemd_get_unitdir)"
 }
+
+# @FUNCTION: systemd_to_myeconfargs
+# @DESCRIPTION:
+# Add '--with-systemdsystemunitdir' as expected by systemd-aware configu=
re
+# scripts to the myeconfargs variable used by autotools-utils eclass. Ha=
ndles
+# quoting automatically.
+systemd_to_myeconfargs() {
+	debug-print-function ${FUNCNAME} "${@}"
+
+	myeconfargs=3D(
+		"${myeconfargs[@]}"
+		--with-systemdsystemunitdir=3D"$(systemd_get_unitdir)"
+	)
+}