aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>2024-02-17 11:39:01 +0100
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>2024-02-17 11:39:53 +0100
commit82246f1e39d1f222ccce4edd8bede0fbb79b69f1 (patch)
tree4cca5914f8e436ba0ec8d410642e4f48c4dfaea4 /net-news/newsraft
parentnet-news/newsraft: Fix tests without native-symlinks (diff)
downloadguru-82246f1e39d1f222ccce4edd8bede0fbb79b69f1.tar.gz
guru-82246f1e39d1f222ccce4edd8bede0fbb79b69f1.tar.bz2
guru-82246f1e39d1f222ccce4edd8bede0fbb79b69f1.zip
net-news/newsraft: use toolchain-funcs for default $CC
Closes: https://bugs.gentoo.org/911243 Closes: https://bugs.gentoo.org/911242 Closes: https://bugs.gentoo.org/911241 Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Diffstat (limited to 'net-news/newsraft')
-rw-r--r--net-news/newsraft/newsraft-0.19.ebuild5
-rw-r--r--net-news/newsraft/newsraft-9999.ebuild2
2 files changed, 5 insertions, 2 deletions
diff --git a/net-news/newsraft/newsraft-0.19.ebuild b/net-news/newsraft/newsraft-0.19.ebuild
index f2923dc3f..462c5323d 100644
--- a/net-news/newsraft/newsraft-0.19.ebuild
+++ b/net-news/newsraft/newsraft-0.19.ebuild
@@ -1,8 +1,10 @@
-# Copyright 2023 Gentoo Authors
+# Copyright 2023-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
+inherit toolchain-funcs
+
DESCRIPTION="A lightweight feed reader with ncurses user interface inspired by Newsboat."
HOMEPAGE="https://codeberg.org/grisha/newsraft"
@@ -33,6 +35,7 @@ BDEPEND="
"
src_compile() {
+ tc-getCC
emake CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
}
diff --git a/net-news/newsraft/newsraft-9999.ebuild b/net-news/newsraft/newsraft-9999.ebuild
index 4808d8d11..5ba5912af 100644
--- a/net-news/newsraft/newsraft-9999.ebuild
+++ b/net-news/newsraft/newsraft-9999.ebuild
@@ -35,11 +35,11 @@ BDEPEND="
"
src_compile() {
+ tc-getCC
emake CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
}
src_test() {
- tc-export CC # For run-check.sh
emake CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" check
}