public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Takuya Wakazono" <pastalian46@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-misc/afetch/
Date: Mon, 06 Jan 2025 13:38:46 +0000 (UTC)	[thread overview]
Message-ID: <1736170555.96b436c14adac217a523cafd2a1be605ee401a50.pastalian46@gentoo> (raw)

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
 }


             reply	other threads:[~2025-01-06 13:38 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-06 13:38 Takuya Wakazono [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-02-12 23:35 [gentoo-commits] repo/proj/guru:dev commit in: app-misc/afetch/ Piotr Kubaj
2021-06-29 12:46 Mathieu Tortuyaux
2021-04-28  3:15 Theo Anderson
2021-04-23  7:16 Mathieu Tortuyaux
2021-03-28  9:39 Andrew Ammerlaan
2021-03-27 18:36 Mathieu Tortuyaux
2021-03-26 18:11 Andrew Ammerlaan
2021-03-26 16:38 Mathieu Tortuyaux

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1736170555.96b436c14adac217a523cafd2a1be605ee401a50.pastalian46@gentoo \
    --to=pastalian46@gmail.com \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox