aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Tortuyaux <mathieu.tortuyaux@gmail.com>2021-04-23 09:13:53 +0200
committerMathieu Tortuyaux <mathieu.tortuyaux@gmail.com>2021-04-23 09:14:09 +0200
commita1a679c0290acc4c9db11d9024e8a5d5713e52e2 (patch)
treee15b386cdfb0aad1518ad286c77ec41f48b36a76 /app-misc/afetch
parentmedia-video/mpv-mpris: Do not call pkg-config directly. (diff)
downloadguru-a1a679c0290acc4c9db11d9024e8a5d5713e52e2.tar.gz
guru-a1a679c0290acc4c9db11d9024e8a5d5713e52e2.tar.bz2
guru-a1a679c0290acc4c9db11d9024e8a5d5713e52e2.zip
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@gmail.com>
Diffstat (limited to 'app-misc/afetch')
-rw-r--r--app-misc/afetch/afetch-2.1.0.ebuild8
1 files 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
}