diff options
author | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2024-02-17 11:46:34 +0100 |
---|---|---|
committer | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2024-02-17 11:46:34 +0100 |
commit | 528ea8992ac1f2322daf9c1689e465e45ee8c8b5 (patch) | |
tree | fc60e805e56f4325a9591efa34a5d10706a84f5e /net-news | |
parent | net-news/newsraft: use toolchain-funcs for default $CC (diff) | |
download | guru-528ea8992ac1f2322daf9c1689e465e45ee8c8b5.tar.gz guru-528ea8992ac1f2322daf9c1689e465e45ee8c8b5.tar.bz2 guru-528ea8992ac1f2322daf9c1689e465e45ee8c8b5.zip |
net-news/newsraft: add 0.23, drop 0.19
Closes: https://bugs.gentoo.org/922032
Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Diffstat (limited to 'net-news')
-rw-r--r-- | net-news/newsraft/Manifest | 2 | ||||
-rw-r--r-- | net-news/newsraft/files/newsraft-0.23-hardcoded-CC.patch | 25 | ||||
-rw-r--r-- | net-news/newsraft/newsraft-0.23.ebuild (renamed from net-news/newsraft/newsraft-0.19.ebuild) | 8 |
3 files changed, 34 insertions, 1 deletions
diff --git a/net-news/newsraft/Manifest b/net-news/newsraft/Manifest index 12e228464..0c66e2a82 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 000000000..5b04de4c9 --- /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 index 462c5323d..baeac03ac 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 |