commit: 96b436c14adac217a523cafd2a1be605ee401a50 Author: Takuya Wakazono <pastalian46 <AT> gmail <DOT> com> AuthorDate: Mon Jan 6 13:35:48 2025 +0000 Commit: Takuya Wakazono <pastalian46 <AT> gmail <DOT> com> CommitDate: Mon Jan 6 13:35:55 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=96b436c1
app-misc/afetch: fix CFLAGS CFLAGS needs to be preserved as upstream assumes compilation with -std=c99. Closes: https://bugs.gentoo.org/945003 Signed-off-by: Takuya Wakazono <pastalian46 <AT> gmail.com> app-misc/afetch/afetch-2.2.0.ebuild | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/app-misc/afetch/afetch-2.2.0.ebuild b/app-misc/afetch/afetch-2.2.0.ebuild index 11fcd6361..89d7a834b 100644 --- a/app-misc/afetch/afetch-2.2.0.ebuild +++ b/app-misc/afetch/afetch-2.2.0.ebuild @@ -1,7 +1,7 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 inherit savedconfig @@ -16,11 +16,15 @@ IUSE="savedconfig" src_prepare() { default - sed -e '/^CFLAGS/d' -e 's/LDFLAGS =/LDFLAGS +=/' -i Makefile || die + sed -e 's/-O2//' \ + -e 's/-Wextra//' \ + -e 's/CFLAGS =/CFLAGS +=/' \ + -e 's/LDFLAGS =/LDFLAGS +=/' -i Makefile || die + restore_config src/config.h } src_install() { - emake DESTDIR="${D}" PREFIX="/usr" install + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install save_config src/config.h }
