commit: a1a679c0290acc4c9db11d9024e8a5d5713e52e2 Author: Mathieu Tortuyaux <mathieu.tortuyaux <AT> gmail <DOT> com> AuthorDate: Fri Apr 23 07:13:53 2021 +0000 Commit: Haelwenn Monnier <contact <AT> hacktivis <DOT> me> CommitDate: Fri Apr 23 07:14:09 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a1a679c0
app-misc/afetch: remove direct CC call Closes: https://bugs.gentoo.org/784809 Package-Manager: Portage-3.0.13, Repoman-3.0.2 Signed-off-by: Mathieu Tortuyaux <mathieu.tortuyaux <AT> gmail.com> app-misc/afetch/afetch-2.1.0.ebuild | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app-misc/afetch/afetch-2.1.0.ebuild b/app-misc/afetch/afetch-2.1.0.ebuild index 166978dbf..377e2194e 100644 --- a/app-misc/afetch/afetch-2.1.0.ebuild +++ b/app-misc/afetch/afetch-2.1.0.ebuild @@ -3,7 +3,7 @@ EAPI=7 -inherit savedconfig +inherit savedconfig toolchain-funcs DESCRIPTION="Simple system info written in C" HOMEPAGE="https://github.com/13-CF/afetch/" @@ -14,12 +14,16 @@ SLOT="0" KEYWORDS="~amd64" IUSE="savedconfig" +src_compile() { + emake CC="$(tc-getCC)" DESTDIR="${ED}" PREFIX="${EPREFIX}"/usr afetch +} + src_prepare() { default restore_config src/config.h } src_install() { - emake DESTDIR="${ED}" PREFIX="${EPREFIX}"/usr install + default save_config src/config.h }