1 |
commit: 35091c0e19d6bb95e53f62349a74af9ba370839c |
2 |
Author: Chris Reffett <creffett <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Nov 14 14:03:20 2017 +0000 |
4 |
Commit: Chris Reffett <creffett <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 14 14:04:08 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=35091c0e |
7 |
|
8 |
app-text/sword: Fix automagic dep on clucene |
9 |
|
10 |
Gentoo-Bug: 637398 |
11 |
Package-Manager: Portage-2.3.14, Repoman-2.3.5 |
12 |
RepoMan-Options: --force |
13 |
|
14 |
app-text/sword/files/sword-1.7.4-configure.patch | 23 ++++++++++++++++++++++ |
15 |
app-text/sword/metadata.xml | 3 +++ |
16 |
.../{sword-1.7.4.ebuild => sword-1.7.4-r1.ebuild} | 11 +++++++---- |
17 |
3 files changed, 33 insertions(+), 4 deletions(-) |
18 |
|
19 |
diff --git a/app-text/sword/files/sword-1.7.4-configure.patch b/app-text/sword/files/sword-1.7.4-configure.patch |
20 |
new file mode 100644 |
21 |
index 00000000000..a098addcd0d |
22 |
--- /dev/null |
23 |
+++ b/app-text/sword/files/sword-1.7.4-configure.patch |
24 |
@@ -0,0 +1,23 @@ |
25 |
+--- a/configure |
26 |
++++ b/configure |
27 |
+@@ -16893,7 +16895,7 @@ |
28 |
+ # --------------------------------------------------------------------- |
29 |
+ |
30 |
+ # NOTE the $libdir hack at the end of the c[xx]flags. Apparently F16 finds that clucene is not multilib-save and places some include files in /usr/lib[64]/ |
31 |
++if test "x$with_clucene" != "xno"; then |
32 |
+-with_clucene=no |
33 |
+ if test "x$CLUCENE2_LIBS" != x; then |
34 |
+ echo "clucene 2.x found - lucene searching options available" |
35 |
+ AM_CXXFLAGS="$AM_CXXFLAGS $CLUCENE2_CFLAGS -DUSELUCENE -DCLUCENE2 -I$libdir" |
36 |
+@@ -16914,6 +16912,11 @@ |
37 |
+ echo "lucene searching options not available" |
38 |
+ fi |
39 |
+ fi |
40 |
++else |
41 |
++{ $as_echo "$as_me:${as_lineno-$LINENO}: result: excluding support" >&5 |
42 |
++$as_echo "clucene manually disabled - excluding support" >&6; } |
43 |
++with_clucene="no" |
44 |
++fi |
45 |
+ |
46 |
+ for ac_func in vsnprintf |
47 |
+ do : |
48 |
|
49 |
diff --git a/app-text/sword/metadata.xml b/app-text/sword/metadata.xml |
50 |
index dd852d82e55..fb9230654d3 100644 |
51 |
--- a/app-text/sword/metadata.xml |
52 |
+++ b/app-text/sword/metadata.xml |
53 |
@@ -9,4 +9,7 @@ The SWORD Project is the CrossWire Bible Society's free Bible software |
54 |
project. Its purpose is to create tools that allow programmers and Bible |
55 |
societies to write new Bible software more quickly and easily. |
56 |
</longdescription> |
57 |
+<use> |
58 |
+ <flag name="clucene">Use <pkg>dev-cpp/clucene</pkg> for lucene search support</flag> |
59 |
+</use> |
60 |
</pkgmetadata> |
61 |
|
62 |
diff --git a/app-text/sword/sword-1.7.4.ebuild b/app-text/sword/sword-1.7.4-r1.ebuild |
63 |
similarity index 90% |
64 |
rename from app-text/sword/sword-1.7.4.ebuild |
65 |
rename to app-text/sword/sword-1.7.4-r1.ebuild |
66 |
index 2db87d10461..be1fa4a3314 100644 |
67 |
--- a/app-text/sword/sword-1.7.4.ebuild |
68 |
+++ b/app-text/sword/sword-1.7.4-r1.ebuild |
69 |
@@ -1,7 +1,7 @@ |
70 |
# Copyright 1999-2017 Gentoo Foundation |
71 |
# Distributed under the terms of the GNU General Public License v2 |
72 |
|
73 |
-EAPI=5 |
74 |
+EAPI=6 |
75 |
inherit eutils flag-o-matic |
76 |
|
77 |
DESCRIPTION="Library for Bible reading software" |
78 |
@@ -11,11 +11,12 @@ SRC_URI="http://www.crosswire.org/ftpmirror/pub/${PN}/source/v${PV%.*}/${P}.tar. |
79 |
LICENSE="GPL-2" |
80 |
SLOT="0" |
81 |
KEYWORDS="amd64 ~ppc x86 ~x86-fbsd ~ppc-macos" |
82 |
-IUSE="curl debug doc icu static-libs" |
83 |
+IUSE="clucene curl debug doc icu static-libs" |
84 |
|
85 |
RDEPEND="sys-libs/zlib |
86 |
curl? ( net-misc/curl ) |
87 |
icu? ( dev-libs/icu:= ) |
88 |
+ clucene? ( dev-cpp/clucene ) |
89 |
" |
90 |
DEPEND="${RDEPEND} |
91 |
virtual/pkgconfig |
92 |
@@ -39,19 +40,21 @@ src_prepare() { |
93 |
DataPath=${EPREFIX}/usr/share/${PN}/ |
94 |
EOF |
95 |
epatch "${FILESDIR}/${PN}-1.7.4-gcc6.patch" |
96 |
+ epatch "${FILESDIR}/${PN}-1.7.4-configure.patch" |
97 |
+ eapply_user |
98 |
} |
99 |
|
100 |
src_configure() { |
101 |
# TODO: Why is this here and can we remove it? |
102 |
strip-flags |
103 |
- |
104 |
econf \ |
105 |
$(use_enable static-libs static) \ |
106 |
$(use_enable debug) \ |
107 |
--with-zlib \ |
108 |
$(use_with icu) \ |
109 |
--with-conf \ |
110 |
- $(use_with curl) |
111 |
+ $(use_with curl) \ |
112 |
+ $(use_with clucene) |
113 |
} |
114 |
|
115 |
src_install() { |