Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/libebook/, app-text/libebook/files/
Date: Sat, 31 Oct 2020 11:05:18
Message-Id: 1604142292.a228bb748aa2c136269471a8efe74bee45a17af0.soap@gentoo
1 commit: a228bb748aa2c136269471a8efe74bee45a17af0
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 31 11:04:52 2020 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 31 11:04:52 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a228bb74
7
8 app-text/libebook: Add patch for icu 68.1
9
10 Closes: https://bugs.gentoo.org/751925
11 Package-Manager: Portage-3.0.8, Repoman-3.0.2
12 Signed-off-by: David Seifert <soap <AT> gentoo.org>
13
14 app-text/libebook/files/libebook-0.1.3-icu68.patch | 28 ++++++++++++++++++++++
15 app-text/libebook/libebook-0.1.3.ebuild | 2 ++
16 2 files changed, 30 insertions(+)
17
18 diff --git a/app-text/libebook/files/libebook-0.1.3-icu68.patch b/app-text/libebook/files/libebook-0.1.3-icu68.patch
19 new file mode 100644
20 index 00000000000..5fef619fbf9
21 --- /dev/null
22 +++ b/app-text/libebook/files/libebook-0.1.3-icu68.patch
23 @@ -0,0 +1,28 @@
24 +From 9ea3b4c2552770b66b83d44b6e6ccdd338296316 Mon Sep 17 00:00:00 2001
25 +From: Lars Wendler <polynomial-c@g.o>
26 +Date: Fri, 30 Oct 2020 10:52:10 +0100
27 +Subject: [PATCH] Fix build with icu-68.0
28 +
29 +icu-68.1 removed public macro definitions for TRUE and FALSE
30 +
31 +Signed-off-by: Lars Wendler <polynomial-c@g.o>
32 +---
33 + src/lib/EBOOKCharsetConverter.cpp | 2 +-
34 + 1 file changed, 1 insertion(+), 1 deletion(-)
35 +
36 +diff --git a/src/lib/EBOOKCharsetConverter.cpp b/src/lib/EBOOKCharsetConverter.cpp
37 +index 0d85fa3..c9f8be0 100644
38 +--- a/src/lib/EBOOKCharsetConverter.cpp
39 ++++ b/src/lib/EBOOKCharsetConverter.cpp
40 +@@ -124,7 +124,7 @@ bool EBOOKCharsetConverter::convertBytes(const char *const in, const unsigned le
41 + m_converterToUTF8.get(), m_converterToUnicode.get(),
42 + &outText, outText + out.size(), &inText, inText + length,
43 + nullptr, nullptr, nullptr, nullptr,
44 +- TRUE, TRUE, &status)
45 ++ true, true, &status)
46 + ;
47 + if (status==U_BUFFER_OVERFLOW_ERROR)
48 + {
49 +--
50 +2.29.2
51 +
52
53 diff --git a/app-text/libebook/libebook-0.1.3.ebuild b/app-text/libebook/libebook-0.1.3.ebuild
54 index ebf1a337366..227b6d2509c 100644
55 --- a/app-text/libebook/libebook-0.1.3.ebuild
56 +++ b/app-text/libebook/libebook-0.1.3.ebuild
57 @@ -36,6 +36,8 @@ RDEPEND="${RDEPEND}"
58
59 S="${WORKDIR}/${MY_P}"
60
61 +PATCHES=( "${FILESDIR}"/${P}-icu68.patch )
62 +
63 src_prepare() {
64 default
65 eautoreconf