1 |
commit: 42348d0e8a8705f2ff5877933ffc291df85b81b2 |
2 |
Author: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 14 04:04:58 2021 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 14 04:04:58 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=42348d0e |
7 |
|
8 |
dev-util/hfstospell: fix compiling with clang |
9 |
|
10 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
11 |
|
12 |
dev-util/hfstospell/hfstospell-0.5.2-r1.ebuild | 45 ++++++++++++++++++++++++++ |
13 |
dev-util/hfstospell/metadata.xml | 3 ++ |
14 |
2 files changed, 48 insertions(+) |
15 |
|
16 |
diff --git a/dev-util/hfstospell/hfstospell-0.5.2-r1.ebuild b/dev-util/hfstospell/hfstospell-0.5.2-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..3b6cb8750ad |
19 |
--- /dev/null |
20 |
+++ b/dev-util/hfstospell/hfstospell-0.5.2-r1.ebuild |
21 |
@@ -0,0 +1,45 @@ |
22 |
+# Copyright 1999-2021 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+ |
27 |
+inherit autotools toolchain-funcs |
28 |
+ |
29 |
+DESCRIPTION="HFST spell checker library and command line tool" |
30 |
+HOMEPAGE="https://github.com/hfst/hfst-ospell" |
31 |
+SRC_URI="https://github.com/hfst/hfst-ospell/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
32 |
+ |
33 |
+LICENSE="Apache-2.0" |
34 |
+SLOT="0" |
35 |
+KEYWORDS="~amd64 ~x86" |
36 |
+IUSE="clang" |
37 |
+ |
38 |
+DEPEND="app-arch/libarchive |
39 |
+ dev-libs/icu:= |
40 |
+ !clang? ( |
41 |
+ dev-cpp/libxmlpp:2.6 |
42 |
+ dev-libs/tinyxml2 |
43 |
+ )" |
44 |
+RDEPEND="${DEPEND}" |
45 |
+BDEPEND="virtual/pkgconfig" |
46 |
+ |
47 |
+S="${WORKDIR}/hfst-ospell-${PV}" |
48 |
+ |
49 |
+src_prepare() { |
50 |
+ default |
51 |
+ eautoreconf |
52 |
+} |
53 |
+ |
54 |
+src_configure() { |
55 |
+ # https://github.com/hfst/hfst-ospell/issues/48 |
56 |
+ if tc-is-clang; then |
57 |
+ econf --without-libxmlpp --without-tinyxml2 |
58 |
+ else |
59 |
+ default |
60 |
+ fi |
61 |
+} |
62 |
+ |
63 |
+src_install() { |
64 |
+ default |
65 |
+ find "${D}" -name '*.la' -delete -o -name '*.a' -delete || die |
66 |
+} |
67 |
|
68 |
diff --git a/dev-util/hfstospell/metadata.xml b/dev-util/hfstospell/metadata.xml |
69 |
index 6b0a0fb3a72..79d3d066cce 100644 |
70 |
--- a/dev-util/hfstospell/metadata.xml |
71 |
+++ b/dev-util/hfstospell/metadata.xml |
72 |
@@ -5,4 +5,7 @@ |
73 |
<email>juippis@g.o</email> |
74 |
<name>Joonas Niilola</name> |
75 |
</maintainer> |
76 |
+ <use> |
77 |
+ <flag name="clang">Use different logic in ebuild when clang is used</flag> |
78 |
+ </use> |
79 |
</pkgmetadata> |