summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-04-19 09:15:18 +0100
committerSam James <sam@gentoo.org>2021-04-19 20:11:00 +0100
commitffc0437117ddde9c59ffa70a6aa90eca7464020c (patch)
treeb44aa8e5287c6fa9cf05ea30b3500f5fb0e7e9ff /net-analyzer/nagircbot
parentmedia-video/xine-ui: clean up patch (diff)
downloadgentoo-ffc0437117ddde9c59ffa70a6aa90eca7464020c.tar.gz
gentoo-ffc0437117ddde9c59ffa70a6aa90eca7464020c.tar.bz2
gentoo-ffc0437117ddde9c59ffa70a6aa90eca7464020c.zip
net-analyzer/nagircbot: respect PKG_CONFIG
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-analyzer/nagircbot')
-rw-r--r--net-analyzer/nagircbot/nagircbot-0.0.33.ebuild8
1 files changed, 5 insertions, 3 deletions
diff --git a/net-analyzer/nagircbot/nagircbot-0.0.33.ebuild b/net-analyzer/nagircbot/nagircbot-0.0.33.ebuild
index 6d748bc63809..02bca18241bb 100644
--- a/net-analyzer/nagircbot/nagircbot-0.0.33.ebuild
+++ b/net-analyzer/nagircbot/nagircbot-0.0.33.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=5
@@ -23,14 +23,16 @@ RDEPEND="net-analyzer/nagios-core
${CDEPEND}"
src_prepare() {
-cp -av Makefile{,.org}
+ cp -av Makefile{,.org}
+
sed -i Makefile \
- -e 's:-lcrypto -lssl:$(shell pkg-config --libs openssl):g' \
+ -e 's:-lcrypto -lssl:$(shell ${PKG_CONFIG} --libs openssl):g' \
-e 's:-O2::g;s:-g::g' \
|| die
}
src_compile() {
+ tc-export PKG_CONFIG
emake CC=$(tc-getCC) CXX=$(tc-getCXX)
}