From 2b0956caa6c4f33cfd6641f783b3bb550fb7ef5a Mon Sep 17 00:00:00 2001 From: Theo Anderson Date: Wed, 28 Apr 2021 14:50:12 +1200 Subject: [PATCH] app-misc/afetch: respect CFLAGS/LDFLAGS Closes: https://bugs.gentoo.org/780762 Signed-off-by: Theo Anderson --- app-misc/afetch/afetch-2.1.0.ebuild | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/app-misc/afetch/afetch-2.1.0.ebuild b/app-misc/afetch/afetch-2.1.0.ebuild index 377e2194e2..f8f6f7f095 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 toolchain-funcs +inherit savedconfig DESCRIPTION="Simple system info written in C" HOMEPAGE="https://github.com/13-CF/afetch/" @@ -14,16 +14,13 @@ SLOT="0" KEYWORDS="~amd64" IUSE="savedconfig" -src_compile() { - emake CC="$(tc-getCC)" DESTDIR="${ED}" PREFIX="${EPREFIX}"/usr afetch -} - src_prepare() { default + sed -e '/^CFLAGS/d' -e 's/LDFLAGS =/LDFLAGS +=/' -i Makefile || die restore_config src/config.h } src_install() { - default + emake DESTDIR="${D}" PREFIX="/usr" install save_config src/config.h }