public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andrew Ammerlaan" <andrewammerlaan@riseup.net>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: app-misc/afetch/
Date: Wed, 28 Apr 2021 08:08:15 +0000 (UTC)	[thread overview]
Message-ID: <1619578212.2b0956caa6c4f33cfd6641f783b3bb550fb7ef5a.andrewammerlaan@gentoo> (raw)

commit:     2b0956caa6c4f33cfd6641f783b3bb550fb7ef5a
Author:     Theo Anderson <telans <AT> posteo <DOT> de>
AuthorDate: Wed Apr 28 02:50:12 2021 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Wed Apr 28 02:50:12 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2b0956ca

app-misc/afetch: respect CFLAGS/LDFLAGS

Closes: https://bugs.gentoo.org/780762
Signed-off-by: Theo Anderson <telans <AT> posteo.de>

 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 377e2194e..f8f6f7f09 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
 }


             reply	other threads:[~2021-04-28  8:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-28  8:08 Andrew Ammerlaan [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-01-06 21:35 [gentoo-commits] repo/proj/guru:master commit in: app-misc/afetch/ David Roman
2024-02-13 16:32 David Roman
2021-06-30  7:14 Florian Schmaus
2021-04-23  8:47 Haelwenn Monnier
2021-03-26 18:11 Andrew Ammerlaan
2021-03-26 18:11 [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2021-03-26 18:11 ` [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan

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=1619578212.2b0956caa6c4f33cfd6641f783b3bb550fb7ef5a.andrewammerlaan@gentoo \
    --to=andrewammerlaan@riseup.net \
    --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