commit:     3db28eb5c6b781f5f24b2d15fcd40174bba4f7da
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Wed Mar 27 18:08:55 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Mar 29 02:28:23 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3db28eb5

dev-libs/apr: simplify defining tool names to their basename

This logic is copied from dev-build/libtool. Sync it with the recent
change to libtool.

Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-libs/apr/apr-1.7.4-r2.ebuild | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/dev-libs/apr/apr-1.7.4-r2.ebuild b/dev-libs/apr/apr-1.7.4-r2.ebuild
index d74a3b41b387..1a50b553b4c1 100644
--- a/dev-libs/apr/apr-1.7.4-r2.ebuild
+++ b/dev-libs/apr/apr-1.7.4-r2.ebuild
@@ -56,12 +56,12 @@ src_configure() {
        # cause problems for people who switch /bin/sh on the fly to other
        # shells, so just force libtool to use /bin/bash all the time.
        export CONFIG_SHELL="${EPREFIX}"/bin/bash
-       export ac_cv_path_SED="$(basename "$(type -P sed)")"
-       export ac_cv_path_EGREP="$(basename "$(type -P grep)") -E"
-       export ac_cv_path_EGREP_TRADITIONAL="$(basename "$(type -P grep)") -E"
-       export ac_cv_path_FGREP="$(basename "$(type -P grep)") -F"
-       export ac_cv_path_GREP="$(basename "$(type -P grep)")"
-       export ac_cv_path_lt_DD="$(basename "$(type -P dd)")"
+       export ac_cv_path_SED="sed"
+       export ac_cv_path_EGREP="grep -E"
+       export ac_cv_path_EGREP_TRADITIONAL="grep -E"
+       export ac_cv_path_FGREP="grep -F"
+       export ac_cv_path_GREP="grep"
+       export ac_cv_path_lt_DD="dd"
 
        local myconf=(
                --enable-layout=gentoo

Reply via email to