commit:     5d586db58f70f21c44b84e7ef9e9051be8502ef7
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Apr  7 05:15:01 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Apr 13 00:26:30 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d586db5

x11-plugins/pidgin-xmpp-receipts: 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>

 x11-plugins/pidgin-xmpp-receipts/pidgin-xmpp-receipts-0.8.ebuild | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/x11-plugins/pidgin-xmpp-receipts/pidgin-xmpp-receipts-0.8.ebuild 
b/x11-plugins/pidgin-xmpp-receipts/pidgin-xmpp-receipts-0.8.ebuild
index 601b7d04adf..f16b5e0b5d7 100644
--- a/x11-plugins/pidgin-xmpp-receipts/pidgin-xmpp-receipts-0.8.ebuild
+++ b/x11-plugins/pidgin-xmpp-receipts/pidgin-xmpp-receipts-0.8.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
@@ -19,12 +19,12 @@ DEPEND="${RDEPEND}
        virtual/pkgconfig"
 
 src_compile() {
-       GTK_PIDGIN_INCLUDES=$(pkg-config --cflags gtk+-2.0 pidgin)
+       GTK_PIDGIN_INCLUDES=$($(tc-getPKG_CONFIG) --cflags gtk+-2.0 pidgin)
        $(tc-getCC) ${LDFLAGS} -shared ${CFLAGS} -fpic ${GTK_PIDGIN_INCLUDES} 
-o ${PN/pidgin-/}.so ${PN/pidgin-/}.c || die
 }
 
 src_install() {
-       PLUGIN_DIR_PIDGIN=$(pkg-config --variable=plugindir pidgin)
+       PLUGIN_DIR_PIDGIN=$($(tc-getPKG_CONFIG) --variable=plugindir pidgin)
        dodir "${PLUGIN_DIR_PIDGIN}"
        insinto "${PLUGIN_DIR_PIDGIN}"
        doins ${PN/pidgin-/}.so

Reply via email to