1 |
commit: c75b80cefb5783ea9f570b153b047de98daf2f9e |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Oct 31 05:18:39 2021 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 31 05:57:10 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c75b80ce |
7 |
|
8 |
dev-ruby/ferret: EAPI 8; fix extension install |
9 |
|
10 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
11 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
12 |
|
13 |
dev-ruby/ferret/ferret-0.11.8.7-r1.ebuild | 44 +++++++++++++++++++++++++++++++ |
14 |
1 file changed, 44 insertions(+) |
15 |
|
16 |
diff --git a/dev-ruby/ferret/ferret-0.11.8.7-r1.ebuild b/dev-ruby/ferret/ferret-0.11.8.7-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..45a3f16cd14 |
19 |
--- /dev/null |
20 |
+++ b/dev-ruby/ferret/ferret-0.11.8.7-r1.ebuild |
21 |
@@ -0,0 +1,44 @@ |
22 |
+# Copyright 1999-2021 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=8 |
26 |
+ |
27 |
+# ruby30 does not compile |
28 |
+USE_RUBY="ruby26 ruby27" |
29 |
+ |
30 |
+RUBY_FAKEGEM_NAME="ferret" |
31 |
+ |
32 |
+RUBY_FAKEGEM_TASK_DOC="doc" |
33 |
+RUBY_FAKEGEM_DOCDIR="doc/api" |
34 |
+ |
35 |
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG RELEASE_CHANGES RELEASE_NOTES README.md TODO TUTORIAL.md" |
36 |
+ |
37 |
+RUBY_FAKEGEM_EXTENSIONS=(ext/extconf.rb) |
38 |
+ |
39 |
+inherit ruby-fakegem |
40 |
+ |
41 |
+MY_P="${P/ruby-/}" |
42 |
+DESCRIPTION="A ruby indexing/searching library" |
43 |
+HOMEPAGE="https://github.com/jkraemer/ferret" |
44 |
+LICENSE="MIT" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~x86" |
47 |
+IUSE="" |
48 |
+ |
49 |
+RDEPEND+=" app-arch/bzip2" |
50 |
+DEPEND+=" app-arch/bzip2" |
51 |
+ |
52 |
+all_ruby_prepare() { |
53 |
+ # Remove bundled bzlib code and use system version instead. |
54 |
+ rm ext/BZLIB* ext/bzlib* || die |
55 |
+ sed -i -e '14i $LDFLAGS += " -lbz2 "' ext/extconf.rb || die |
56 |
+ |
57 |
+ # Avoid test known to fail upstream: |
58 |
+ # https://github.com/jkraemer/ferret/issues/2 |
59 |
+ sed -i -e '/test_adding_long_url/,/^ end/ s:^:#:' \ |
60 |
+ test/unit/index/tc_index_writer.rb || die |
61 |
+} |
62 |
+ |
63 |
+each_ruby_test() { |
64 |
+ ${RUBY} -Ilib test/test_all.rb || die |
65 |
+} |