Gentoo Archives: gentoo-commits

From: "Cédric Krier" <cedk@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-news/newsboat/, net-news/newsboat/files/
Date: Sat, 02 May 2020 21:30:28
Message-Id: 1588454998.a8585d9e0cafd27a8a454d66ea995ca347daad85.cedk@gentoo
1 commit: a8585d9e0cafd27a8a454d66ea995ca347daad85
2 Author: Cédric Krier <cedk <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 2 21:29:35 2020 +0000
4 Commit: Cédric Krier <cedk <AT> gentoo <DOT> org>
5 CommitDate: Sat May 2 21:29:58 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8585d9e
7
8 net-news/newsboat: Add support json-c 0.14.0
9
10 Apply patch from
11 https://github.com/newsboat/newsboat/commit/db70049f436a965767e8a1273389e1be92e946fa
12
13 Closes: https://bugs.gentoo.org/720444
14 Package-Manager: Portage-2.3.89, Repoman-2.3.20
15 Signed-off-by: Cédric Krier <cedk <AT> gentoo.org>
16
17 .../files/newsboat-2.19-json-c-0.14.0.patch | 34 ++++++++++++++++++++++
18 ...ewsboat-2.19.ebuild => newsboat-2.19-r1.ebuild} | 1 +
19 2 files changed, 35 insertions(+)
20
21 diff --git a/net-news/newsboat/files/newsboat-2.19-json-c-0.14.0.patch b/net-news/newsboat/files/newsboat-2.19-json-c-0.14.0.patch
22 new file mode 100644
23 index 00000000000..79c4da5e726
24 --- /dev/null
25 +++ b/net-news/newsboat/files/newsboat-2.19-json-c-0.14.0.patch
26 @@ -0,0 +1,34 @@
27 +From db70049f436a965767e8a1273389e1be92e946fa Mon Sep 17 00:00:00 2001
28 +From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= <besser82@×××××××××××××.org>
29 +Date: Mon, 13 Apr 2020 12:52:46 +0200
30 +Subject: [PATCH] Add support for upcoming json-c 0.14.0.
31 +
32 +TRUE/FALSE are not defined anymore. 1 and 0 are used instead.
33 +---
34 + src/newsblurapi.cpp | 13 +++++++++++++
35 + 1 file changed, 13 insertions(+)
36 +
37 +diff --git a/src/newsblurapi.cpp b/src/newsblurapi.cpp
38 +index 2d1acdae..e124852d 100644
39 +--- a/src/newsblurapi.cpp
40 ++++ b/src/newsblurapi.cpp
41 +@@ -9,6 +9,19 @@
42 + #include "strprintf.h"
43 + #include "utils.h"
44 +
45 ++/* json-c 0.13.99 does not define TRUE/FALSE anymore
46 ++ * the json-c maintainers replaced them with pure 1/0
47 ++ * https://github.com/json-c/json-c/commit/0992aac61f8b
48 ++ */
49 ++#if defined JSON_C_VERSION_NUM && JSON_C_VERSION_NUM >= ((13 << 8) | 99)
50 ++#ifndef FALSE
51 ++#define FALSE 0
52 ++#endif
53 ++#ifndef TRUE
54 ++#define TRUE 1
55 ++#endif
56 ++#endif
57 ++
58 + #define NEWSBLUR_ITEMS_PER_PAGE 6
59 +
60 + namespace newsboat {
61
62 diff --git a/net-news/newsboat/newsboat-2.19.ebuild b/net-news/newsboat/newsboat-2.19-r1.ebuild
63 similarity index 98%
64 rename from net-news/newsboat/newsboat-2.19.ebuild
65 rename to net-news/newsboat/newsboat-2.19-r1.ebuild
66 index 8c33dbb0061..2729ac49920 100644
67 --- a/net-news/newsboat/newsboat-2.19.ebuild
68 +++ b/net-news/newsboat/newsboat-2.19-r1.ebuild
69 @@ -143,6 +143,7 @@ DEPEND="${RDEPEND}
70 PATCHES=(
71 "${FILESDIR}/${PN}-2.11-flags.patch"
72 "${FILESDIR}/${PN}-2.19-libressl.patch"
73 + "${FILESDIR}/${PN}-2.19-json-c-0.14.0.patch"
74 )
75
76 src_configure() {