commit:     204bfc7dc4be05334957e6ccc4041aa562b6fc5b
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Apr  7 05:12:16 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Apr 13 00:26:11 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=204bfc7d

games-arcade/stardork: 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>

 games-arcade/stardork/stardork-0.7-r1.ebuild | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/games-arcade/stardork/stardork-0.7-r1.ebuild 
b/games-arcade/stardork/stardork-0.7-r1.ebuild
index d2458f6571f..d2b7e070c09 100644
--- a/games-arcade/stardork/stardork-0.7-r1.ebuild
+++ b/games-arcade/stardork/stardork-0.7-r1.ebuild
@@ -1,7 +1,8 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
+
 inherit toolchain-funcs
 
 DESCRIPTION="An ncurses-based space shooter"
@@ -24,7 +25,7 @@ src_prepare() {
 }
 
 src_compile() {
-       emake CC="$(tc-getCC)" LDLIBS="$(pkg-config ncurses --libs)" ${PN}
+       emake CC="$(tc-getCC)" LDLIBS="$($(tc-getPKG_CONFIG) ncurses --libs)" 
${PN}
 }
 
 src_install() {

Reply via email to