From: "Rui Huang" <vowstar@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: net-news/newsraft/files/, net-news/newsraft/
Date: Sat, 17 Feb 2024 12:11:53 +0000 (UTC) [thread overview]
Message-ID: <1708166794.528ea8992ac1f2322daf9c1689e465e45ee8c8b5.vowstar@gentoo> (raw)
commit: 528ea8992ac1f2322daf9c1689e465e45ee8c8b5
Author: Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me>
AuthorDate: Sat Feb 17 10:46:34 2024 +0000
Commit: Rui Huang <vowstar <AT> gmail <DOT> com>
CommitDate: Sat Feb 17 10:46:34 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=528ea899
net-news/newsraft: add 0.23, drop 0.19
Closes: https://bugs.gentoo.org/922032
Signed-off-by: Haelwenn (lanodan) Monnier <contact <AT> hacktivis.me>
net-news/newsraft/Manifest | 2 +-
.../files/newsraft-0.23-hardcoded-CC.patch | 25 ++++++++++++++++++++++
.../{newsraft-0.19.ebuild => newsraft-0.23.ebuild} | 8 +++++++
3 files changed, 34 insertions(+), 1 deletion(-)
diff --git a/net-news/newsraft/Manifest b/net-news/newsraft/Manifest
index 12e2284641..0c66e2a827 100644
--- a/net-news/newsraft/Manifest
+++ b/net-news/newsraft/Manifest
@@ -1 +1 @@
-DIST newsraft-0.19.tar.gz 175794 BLAKE2B 6d665c0bf56da68e123e4662cbdc857599206f9a90e753c7d0f16ffdea2b0f67d4a338f7954eb5f5f2426e1ae7238f64623939f11e5a07e37846e7c11d76c293 SHA512 d9f59f500891b37ef15796a8ec66a5249c3ef3cc5112d2230bf1f606d78f7332ccc17d5846bf9c30a268951059d3a805de651c2b8c3a607572f59126b3d308f0
+DIST newsraft-0.23.tar.gz 139740 BLAKE2B 5a98c25b120f79d7ccf518545146ab8ec4e2c86772cc0fb9723b225ff15a8e86761f4d79ce25bdf5182a5fbf282b0ffa9b618e9265e589fc9fcbeac8fb75c325 SHA512 e55acd637d55dc5566fa5aed1b7c74b8f7f1b61b8ad4de0db08d0ab32a99d68bbbce2f5f47fdc0c43d7601cc1221fe7ae5ca41b1c3d2d7e44a3621d577dc4edc
diff --git a/net-news/newsraft/files/newsraft-0.23-hardcoded-CC.patch b/net-news/newsraft/files/newsraft-0.23-hardcoded-CC.patch
new file mode 100644
index 0000000000..5b04de4c99
--- /dev/null
+++ b/net-news/newsraft/files/newsraft-0.23-hardcoded-CC.patch
@@ -0,0 +1,25 @@
+From 5484f2df40aa362f01859049782a467439325c20 Mon Sep 17 00:00:00 2001
+From: "Haelwenn (lanodan) Monnier" <contact@hacktivis.me>
+Date: Sat, 17 Feb 2024 11:11:48 +0100
+Subject: [PATCH] run-check.sh: Don't hardcode cc, don't assume a.out output
+
+---
+ tests/run-check.sh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tests/run-check.sh b/tests/run-check.sh
+index c152289..c24973b 100755
+--- a/tests/run-check.sh
++++ b/tests/run-check.sh
+@@ -12,7 +12,7 @@
+ for test_file in *.c
+ do
+ tests_count="$((tests_count + 1))"
+- if cc -Isrc -L. "$test_file" -l:libnewsraft.so && env LD_LIBRARY_PATH=. ./a.out; then
++ if ${CC:-cc} -Isrc -o ./a.out "$test_file" -L. -l:libnewsraft.so && env LD_LIBRARY_PATH=. ./a.out; then
+ echo "[OKAY] $test_file"
+ okays_count="$((okays_count + 1))"
+ else
+--
+2.43.0
+
diff --git a/net-news/newsraft/newsraft-0.19.ebuild b/net-news/newsraft/newsraft-0.23.ebuild
similarity index 86%
rename from net-news/newsraft/newsraft-0.19.ebuild
rename to net-news/newsraft/newsraft-0.23.ebuild
index 462c5323d8..baeac03acc 100644
--- a/net-news/newsraft/newsraft-0.19.ebuild
+++ b/net-news/newsraft/newsraft-0.23.ebuild
@@ -34,11 +34,19 @@ BDEPEND="
virtual/pkgconfig
"
+PATCHES=(
+ "${FILESDIR}/newsraft-0.23-hardcoded-CC.patch"
+)
+
src_compile() {
tc-getCC
emake CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
}
+src_test() {
+ emake CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" check
+}
+
src_install() {
emake PREFIX="/usr" DESTDIR="${D}" install
einstalldocs
next reply other threads:[~2024-02-17 12:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-17 12:11 Rui Huang [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-06-25 9:10 [gentoo-commits] repo/proj/guru:master commit in: net-news/newsraft/files/, net-news/newsraft/ David Roman
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=1708166794.528ea8992ac1f2322daf9c1689e465e45ee8c8b5.vowstar@gentoo \
--to=vowstar@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