commit:     1506b5a78e5b82da08788046791385cce65349eb
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Dec 27 19:29:41 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Dec 27 20:57:07 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1506b5a7

autotools.eclass: avoid deprecated backticks

Signed-off-by: Sam James <sam <AT> gentoo.org>

 eclass/autotools.eclass | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)

diff --git a/eclass/autotools.eclass b/eclass/autotools.eclass
index 7d72565bfe08..5e214686572a 100644
--- a/eclass/autotools.eclass
+++ b/eclass/autotools.eclass
@@ -99,12 +99,17 @@ _automake_atom="sys-devel/automake"
 _autoconf_atom="sys-devel/autoconf"
 if [[ -n ${WANT_AUTOMAKE} ]] ; then
        case ${WANT_AUTOMAKE} in
-               # Even if the package doesn't use automake, we still need to 
depend
-               # on it because we run aclocal to process m4 macros.  This 
matches
-               # the autoreconf tool, so this requirement is correct, bug 
#401605.
-               none) ;;
-               latest) _automake_atom="|| ( `printf 
'>=sys-devel/automake-%s:%s ' ${_LATEST_AUTOMAKE[@]/:/ }` )" ;;
-               *) _automake_atom="=sys-devel/automake-${WANT_AUTOMAKE}*";;
+               none)
+                       # Even if the package doesn't use automake, we still 
need to depend
+                       # on it because we run aclocal to process m4 macros.  
This matches
+                       # the autoreconf tool, so this requirement is correct, 
bug #401605.
+                       ;;
+               latest)
+                       _automake_atom="|| ( $(printf 
'>=sys-devel/automake-%s:%s ' ${_LATEST_AUTOMAKE[@]/:/ }) )"
+                       ;;
+               *)
+                       _automake_atom="=sys-devel/automake-${WANT_AUTOMAKE}*"
+                       ;;
        esac
        export WANT_AUTOMAKE
 fi

Reply via email to