From 558a76ed84389a60647303c66f6cb8fd8d2f0ab5 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Wed, 11 Sep 2013 08:50:07 +0000 Subject: Deprecate systemd_to_myeconfargs(). It's redundant and unnecessarily confusing. --- eclass/ChangeLog | 6 +++++- eclass/systemd.eclass | 13 ++++++++----- 2 files changed, 13 insertions(+), 6 deletions(-) (limited to 'eclass') diff --git a/eclass/ChangeLog b/eclass/ChangeLog index de5d26f5a2ff..8c00581bf9cf 100644 --- a/eclass/ChangeLog +++ b/eclass/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for eclass directory # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.956 2013/09/11 07:58:00 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.957 2013/09/11 08:50:07 mgorny Exp $ + + 11 Sep 2013; Michał Górny systemd.eclass: + Deprecate systemd_to_myeconfargs(). It's redundant and unnecessarily + confusing. 11 Sep 2013; Michał Górny systemd.eclass: Use subshells instead of "local INSDESTTREE" for doins/newins since that diff --git a/eclass/systemd.eclass b/eclass/systemd.eclass index a6c4f8184405..10c06a293d3f 100644 --- a/eclass/systemd.eclass +++ b/eclass/systemd.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v 1.27 2013/09/11 07:58:00 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v 1.28 2013/09/11 08:50:07 mgorny Exp $ # @ECLASS: systemd.eclass # @MAINTAINER: @@ -12,20 +12,20 @@ # @EXAMPLE: # # @CODE -# inherit autotools-utils systemd +# inherit systemd # # src_configure() { # local myeconfargs=( # --enable-foo # --disable-bar +# "$(systemd_with_unitdir)" # ) # -# systemd_to_myeconfargs -# autotools-utils_src_configure +# econf "${myeconfargs[@]}" # } # @CODE -inherit toolchain-funcs +inherit eutils toolchain-funcs case ${EAPI:-0} in 0|1|2|3|4|5) ;; @@ -227,6 +227,9 @@ systemd_with_utildir() { systemd_to_myeconfargs() { debug-print-function ${FUNCNAME} "${@}" + eqawarn 'systemd_to_myeconfargs() is deprecated and will be removed on 2013-10-11.' + eqawarn 'Please use $(systemd_with_unitdir) instead.' + myeconfargs=( "${myeconfargs[@]}" --with-systemdsystemunitdir="$(systemd_get_unitdir)" -- cgit v1.2.3-65-gdbad