public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: net-news/sfeed/, net-news/sfeed/files/
@ 2022-02-20 10:52 Cédric Krier
  0 siblings, 0 replies; only message in thread
From: Cédric Krier @ 2022-02-20 10:52 UTC (permalink / raw
  To: gentoo-commits

commit:     e18f1d984044423ed6ac39b6bb76a831d566328e
Author:     Cédric Krier <cedk <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 20 10:52:02 2022 +0000
Commit:     Cédric Krier <cedk <AT> gentoo <DOT> org>
CommitDate: Sun Feb 20 10:52:32 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e18f1d98

net-news/sfeed: Set RANLIB and AR and patch for LDFLAGS

Closes: https://bugs.gentoo.org/833788
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Cédric Krier <cedk <AT> gentoo.org>

 net-news/sfeed/files/sfeed-1.2-ldflags.patch | 20 ++++++++++++++++++++
 net-news/sfeed/sfeed-1.2.ebuild              | 18 +++++++++---------
 2 files changed, 29 insertions(+), 9 deletions(-)

diff --git a/net-news/sfeed/files/sfeed-1.2-ldflags.patch b/net-news/sfeed/files/sfeed-1.2-ldflags.patch
new file mode 100644
index 000000000000..51f712976e9a
--- /dev/null
+++ b/net-news/sfeed/files/sfeed-1.2-ldflags.patch
@@ -0,0 +1,20 @@
+diff -ru sfeed-1.2.orig/Makefile sfeed-1.2/Makefile
+--- sfeed-1.2.orig/Makefile	2022-02-20 11:43:35.164358731 +0100
++++ sfeed-1.2/Makefile	2022-02-20 11:43:45.874495281 +0100
+@@ -27,14 +27,14 @@
+ SFEED_CURSES_CFLAGS = ${CFLAGS}
+ SFEED_CURSES_CPPFLAGS = -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700 -D_BSD_SOURCE \
+ 	 -DSFEED_THEME=\"themes/${SFEED_THEME}.h\" ${SFEED_CPPFLAGS}
+-SFEED_CURSES_LDFLAGS = ${LDFLAGS} -lcurses
++#SFEED_CURSES_LDFLAGS = ${LDFLAGS} -lcurses
+ 
+ # Linux: some distros use ncurses and require -lncurses.
+ #SFEED_CURSES_LDFLAGS = ${LDFLAGS} -lncurses
+ 
+ # Gentoo Linux: some distros might also require -ltinfo and -D_DEFAULT_SOURCE
+ # to prevent warnings about feature test macros.
+-#SFEED_CURSES_LDFLAGS = ${LDFLAGS} -lcurses -ltinfo
++SFEED_CURSES_LDFLAGS = ${LDFLAGS} -lcurses -ltinfo
+ 
+ # FreeBSD: unset feature test macros for SIGWINCH etc.
+ #SFEED_CURSES_CPPFLAGS =

diff --git a/net-news/sfeed/sfeed-1.2.ebuild b/net-news/sfeed/sfeed-1.2.ebuild
index d4f43e5c5c2b..f70410c8c920 100644
--- a/net-news/sfeed/sfeed-1.2.ebuild
+++ b/net-news/sfeed/sfeed-1.2.ebuild
@@ -25,16 +25,16 @@ RDEPEND="${DEPEND}
 	x11-misc/xdg-utils"
 BDEPEND=""
 
+PATCHES=(
+	"${FILESDIR}/${PN}-1.2-ldflags.patch"
+)
+
 src_compile() {
-	if use ncurses; then
-		emake \
-			CC=$(tc-getCC) \
-			LDFLAGS="$LDFLAGS -lcurses -ltinfo"
-	else
-		emake \
-			CC=$(tc-getCC) \
-			SFEED_CURSES=""
-	fi
+	emake \
+		CC=$(tc-getCC) \
+		RANLIB=$(tc-getRANLIB) \
+		AR=$(tc-getAR) \
+		SFEED_CURSES=$(usex ncurses "sfeed_curses" "")
 }
 
 src_install() {


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-02-20 10:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-20 10:52 [gentoo-commits] repo/gentoo:master commit in: net-news/sfeed/, net-news/sfeed/files/ Cédric Krier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox