aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Burch <eli.burch@burchbytes.com>2024-06-20 06:17:12 -0700
committerEli Burch <eli.burch@burchbytes.com>2024-06-20 06:18:04 -0700
commit813d39805b02a5a8bb656d6412ae3b3294e473e1 (patch)
tree633cadc956a48d13613b9667e4cdc4804536b4a0 /net-news
parentapp-text/vale: add 3.6.0 (diff)
downloadguru-813d39805b02a5a8bb656d6412ae3b3294e473e1.tar.gz
guru-813d39805b02a5a8bb656d6412ae3b3294e473e1.tar.bz2
guru-813d39805b02a5a8bb656d6412ae3b3294e473e1.zip
net-news/newsraft: Fix hardcoded CC, CFLAGS, LDFLAGS
Closes: https://bugs.gentoo.org/show_bug.cgi?id=934555 Closes: https://bugs.gentoo.org/show_bug.cgi?id=934557 Closes: https://bugs.gentoo.org/show_bug.cgi?id=934558 Signed-off-by: Eli Burch <eli.burch@burchbytes.com>
Diffstat (limited to 'net-news')
-rw-r--r--net-news/newsraft/files/newsraft-0.25-hardcoded-CFLAGS-LDFLAGS.patch18
-rw-r--r--net-news/newsraft/newsraft-0.25.ebuild4
2 files changed, 22 insertions, 0 deletions
diff --git a/net-news/newsraft/files/newsraft-0.25-hardcoded-CFLAGS-LDFLAGS.patch b/net-news/newsraft/files/newsraft-0.25-hardcoded-CFLAGS-LDFLAGS.patch
new file mode 100644
index 000000000..e71ae62e5
--- /dev/null
+++ b/net-news/newsraft/files/newsraft-0.25-hardcoded-CFLAGS-LDFLAGS.patch
@@ -0,0 +1,18 @@
+# Fix hardcoded CC, CFLAGS and LDFLAGS
+# Bug: https://bugs.gentoo.org/show_bug.cgi?id=934555
+# Bug: https://bugs.gentoo.org/show_bug.cgi?id=934557
+# Bug: https://bugs.gentoo.org/show_bug.cgi?id=934558
+--- a/makefile
++++ b/makefile
+@@ -1,9 +1,8 @@
+ .POSIX:
+ .PHONY: all install install-newsraft install-man install-examples man html clean check cppcheck clang-tidy
+
+-CC = cc
+-CFLAGS = -O3
+-LDFLAGS =
++CC ?= cc
++CFLAGS ?= -O3
+ CURL_CFLAGS = `pkg-config --cflags libcurl 2>/dev/null`
+ CURL_LIBS = `pkg-config --libs libcurl 2>/dev/null || echo '-lcurl'`
+ CURSES_CFLAGS = `pkg-config --cflags ncursesw 2>/dev/null`
diff --git a/net-news/newsraft/newsraft-0.25.ebuild b/net-news/newsraft/newsraft-0.25.ebuild
index 9118c6cef..48c8f80e0 100644
--- a/net-news/newsraft/newsraft-0.25.ebuild
+++ b/net-news/newsraft/newsraft-0.25.ebuild
@@ -32,6 +32,10 @@ BDEPEND="
virtual/pkgconfig
"
+PATCHES=(
+ "${FILESDIR}/newsraft-0.25-hardcoded-CFLAGS-LDFLAGS.patch"
+)
+
src_install() {
emake PREFIX="/usr" DESTDIR="${D}" install
einstalldocs