1 |
commit: c4299b3cde284d01ff0ddc2741f53717f8ce9c57 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 30 16:29:25 2020 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 31 09:20:31 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4299b3c |
7 |
|
8 |
app-text/libebook: Fix build with ICU-68, EAPI-7 bump |
9 |
|
10 |
Thanks-to: Lars Wendler <polynomial-c <AT> gentoo.org> |
11 |
Closes: https://bugs.gentoo.org/751925 |
12 |
Package-Manager: Portage-3.0.8, Repoman-3.0.2 |
13 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
14 |
|
15 |
.../libebook/files/libebook-0.1.3-icu-68.patch | 27 ++++++++++ |
16 |
app-text/libebook/libebook-0.1.3-r1.ebuild | 59 ++++++++++++++++++++++ |
17 |
2 files changed, 86 insertions(+) |
18 |
|
19 |
diff --git a/app-text/libebook/files/libebook-0.1.3-icu-68.patch b/app-text/libebook/files/libebook-0.1.3-icu-68.patch |
20 |
new file mode 100644 |
21 |
index 00000000000..964b8b7e195 |
22 |
--- /dev/null |
23 |
+++ b/app-text/libebook/files/libebook-0.1.3-icu-68.patch |
24 |
@@ -0,0 +1,27 @@ |
25 |
+From 9ea3b4c2552770b66b83d44b6e6ccdd338296316 Mon Sep 17 00:00:00 2001 |
26 |
+From: Lars Wendler <polynomial-c@g.o> |
27 |
+Date: Fri, 30 Oct 2020 10:52:10 +0100 |
28 |
+Subject: [PATCH] Fix build with icu-68.0 |
29 |
+ |
30 |
+icu-68.1 removed public macro definitions for TRUE and FALSE |
31 |
+ |
32 |
+Signed-off-by: Lars Wendler <polynomial-c@g.o> |
33 |
+--- |
34 |
+ src/lib/EBOOKCharsetConverter.cpp | 2 +- |
35 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
36 |
+ |
37 |
+diff --git a/src/lib/EBOOKCharsetConverter.cpp b/src/lib/EBOOKCharsetConverter.cpp |
38 |
+index 0d85fa3..c9f8be0 100644 |
39 |
+--- a/src/lib/EBOOKCharsetConverter.cpp |
40 |
++++ b/src/lib/EBOOKCharsetConverter.cpp |
41 |
+@@ -124,7 +124,7 @@ bool EBOOKCharsetConverter::convertBytes(const char *const in, const unsigned le |
42 |
+ m_converterToUTF8.get(), m_converterToUnicode.get(), |
43 |
+ &outText, outText + out.size(), &inText, inText + length, |
44 |
+ nullptr, nullptr, nullptr, nullptr, |
45 |
+- TRUE, TRUE, &status) |
46 |
++ true, true, &status) |
47 |
+ ; |
48 |
+ if (status==U_BUFFER_OVERFLOW_ERROR) |
49 |
+ { |
50 |
+-- |
51 |
+2.29.2 |
52 |
|
53 |
diff --git a/app-text/libebook/libebook-0.1.3-r1.ebuild b/app-text/libebook/libebook-0.1.3-r1.ebuild |
54 |
new file mode 100644 |
55 |
index 00000000000..e3bfee60ab3 |
56 |
--- /dev/null |
57 |
+++ b/app-text/libebook/libebook-0.1.3-r1.ebuild |
58 |
@@ -0,0 +1,59 @@ |
59 |
+# Copyright 1999-2020 Gentoo Authors |
60 |
+# Distributed under the terms of the GNU General Public License v2 |
61 |
+ |
62 |
+EAPI=7 |
63 |
+ |
64 |
+MY_P="libe-book-${PV}" |
65 |
+inherit autotools flag-o-matic |
66 |
+ |
67 |
+DESCRIPTION="Library parsing various ebook formats" |
68 |
+HOMEPAGE="https://sourceforge.net/projects/libebook/" |
69 |
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2" |
70 |
+ |
71 |
+LICENSE="MPL-2.0" |
72 |
+SLOT="0" |
73 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" |
74 |
+IUSE="doc test tools" |
75 |
+ |
76 |
+RESTRICT="!test? ( test )" |
77 |
+ |
78 |
+RDEPEND=" |
79 |
+ app-text/liblangtag |
80 |
+ dev-libs/icu:= |
81 |
+ dev-libs/librevenge |
82 |
+ dev-libs/libxml2 |
83 |
+ sys-libs/zlib |
84 |
+" |
85 |
+DEPEND="${RDEPEND} |
86 |
+ dev-libs/boost |
87 |
+ dev-util/gperf |
88 |
+ virtual/pkgconfig |
89 |
+ doc? ( app-doc/doxygen ) |
90 |
+ test? ( dev-util/cppunit ) |
91 |
+" |
92 |
+RDEPEND="${RDEPEND}" |
93 |
+ |
94 |
+S="${WORKDIR}/${MY_P}" |
95 |
+ |
96 |
+PATCHES=( "${FILESDIR}/${P}-icu-68.patch" ) |
97 |
+ |
98 |
+src_prepare() { |
99 |
+ default |
100 |
+ eautoreconf |
101 |
+} |
102 |
+ |
103 |
+src_configure() { |
104 |
+ local myeconfargs=( |
105 |
+ --disable-static |
106 |
+ --disable-werror |
107 |
+ $(use_with doc docs) |
108 |
+ $(use_enable test tests) |
109 |
+ $(use_with tools) |
110 |
+ ) |
111 |
+ econf "${myeconfargs[@]}" |
112 |
+} |
113 |
+ |
114 |
+src_install() { |
115 |
+ default |
116 |
+ find "${D}" -name '*.la' -type f -delete || die |
117 |
+} |