1 |
commit: 98cdb62a6190176f65d308119d2bb37f93c8203a |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Nov 25 06:35:26 2021 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Nov 25 06:37:28 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=98cdb62a |
7 |
|
8 |
dev-ruby/narray: 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/narray/narray-0.6.1.2-r2.ebuild | 45 ++++++++++++++++++++++++++++++++ |
14 |
1 file changed, 45 insertions(+) |
15 |
|
16 |
diff --git a/dev-ruby/narray/narray-0.6.1.2-r2.ebuild b/dev-ruby/narray/narray-0.6.1.2-r2.ebuild |
17 |
new file mode 100644 |
18 |
index 000000000000..17c9c193b908 |
19 |
--- /dev/null |
20 |
+++ b/dev-ruby/narray/narray-0.6.1.2-r2.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=8 |
26 |
+ |
27 |
+USE_RUBY="ruby26 ruby27 ruby30" |
28 |
+ |
29 |
+RUBY_FAKEGEM_TASK_TEST="" |
30 |
+RUBY_FAKEGEM_TASK_DOC="" |
31 |
+ |
32 |
+RUBY_FAKEGEM_EXTRADOC="ChangeLog README.md README.ja.md SPEC.en.txt SPEC.ja.txt" |
33 |
+ |
34 |
+RUBY_FAKEGEM_GEMSPEC="narray.gemspec" |
35 |
+RUBY_FAKEGEM_VERSION="${PV/_p/.}" |
36 |
+ |
37 |
+RUBY_FAKEGEM_EXTENSIONS=(./extconf.rb) |
38 |
+ |
39 |
+inherit ruby-fakegem |
40 |
+ |
41 |
+DESCRIPTION="Numerical N-dimensional Array class" |
42 |
+HOMEPAGE="https://masa16.github.io/narray/" |
43 |
+SRC_URI="https://github.com/masa16/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="Ruby" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~arm64 ~hppa ~mips ~ppc ~ppc64 ~x86" |
48 |
+ |
49 |
+IUSE="" |
50 |
+ |
51 |
+all_ruby_prepare() { |
52 |
+ # the tests aren't really written to be a testsuite, so the |
53 |
+ # failure cases will literally fail; ignore all of those and |
54 |
+ # instead expect that the rest won't fail. |
55 |
+ sed -i -e '/[fF]ollowing will fail/,$ s:^:#:' \ |
56 |
+ -e '/next will fail/,$ s:^:#:' \ |
57 |
+ test/*.rb || die "sed failed" |
58 |
+ |
59 |
+ sed -i -e 's:src/narray.h:narray.h:' ${RUBY_FAKEGEM_GEMSPEC} || die |
60 |
+} |
61 |
+ |
62 |
+each_ruby_test() { |
63 |
+ for unit in test/*; do |
64 |
+ ${RUBY} -Ilib ${unit} || die "test ${unit} failed" |
65 |
+ done |
66 |
+} |