commit:     7451453fe804eeecce9bb644f2ec89414b0c9052
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Apr  7 05:14:14 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Apr 13 00:26:26 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7451453f

sci-mathematics/calc: call pkg-config via toolchain-funcs.eclass helper

This ensures we call the correct pkg-config in e.g. cross.

Package-Manager: Portage-3.0.14-prefix, Repoman-3.0.2
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sci-mathematics/calc/calc-2.12.5.4.ebuild | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/sci-mathematics/calc/calc-2.12.5.4.ebuild 
b/sci-mathematics/calc/calc-2.12.5.4.ebuild
index c8ebd6a8570..d2a43a0ad77 100644
--- a/sci-mathematics/calc/calc-2.12.5.4.ebuild
+++ b/sci-mathematics/calc/calc-2.12.5.4.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -13,8 +13,6 @@ SLOT="0"
 LICENSE="LGPL-2"
 KEYWORDS="~alpha amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
 
-IUSE=""
-
 RDEPEND="
        sys-libs/ncurses:0=
        sys-libs/readline:0="
@@ -39,7 +37,7 @@ src_compile() {
                LDFLAGS="${LDFLAGS}" \
                CALCPAGER="${PAGER}" \
                USE_READLINE="-DUSE_READLINE" \
-               READLINE_LIB="-lreadline -lhistory $(pkg-config --libs ncurses) 
-L\"${S}\"/custom -lcustcalc" \
+               READLINE_LIB="-lreadline -lhistory $(tc-getPKG_CONFIG --libs 
ncurses) -L\"${S}\"/custom -lcustcalc" \
                all
 }
 

Reply via email to