1 |
commit: d9b89339f6cdfff7cc17fa91e22622be29d9bc6f |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Nov 23 11:43:02 2021 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 24 06:37:12 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d9b89339 |
7 |
|
8 |
dev-ruby/unf: EAPI 8 |
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/unf/unf-0.1.4-r1.ebuild | 46 ++++++++++++++++++++++++++++++++++++++++ |
14 |
1 file changed, 46 insertions(+) |
15 |
|
16 |
diff --git a/dev-ruby/unf/unf-0.1.4-r1.ebuild b/dev-ruby/unf/unf-0.1.4-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 000000000000..442d4c7d5a2c |
19 |
--- /dev/null |
20 |
+++ b/dev-ruby/unf/unf-0.1.4-r1.ebuild |
21 |
@@ -0,0 +1,46 @@ |
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_RECIPE_TEST="none" |
30 |
+RUBY_FAKEGEM_TASK_DOC="" |
31 |
+RUBY_FAKEGEM_EXTRADOC="README.md" |
32 |
+ |
33 |
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" |
34 |
+ |
35 |
+inherit ruby-fakegem |
36 |
+ |
37 |
+DESCRIPTION="A wrapper library to bring Unicode Normalization Form support to Ruby/JRuby" |
38 |
+HOMEPAGE="https://github.com/knu/ruby-unf" |
39 |
+ |
40 |
+LICENSE="BSD-2" |
41 |
+SLOT="0" |
42 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-solaris" |
43 |
+IUSE="test" |
44 |
+ |
45 |
+ruby_add_rdepend "dev-ruby/unf_ext" |
46 |
+ |
47 |
+ruby_add_bdepend " |
48 |
+ test? ( |
49 |
+ >=dev-ruby/test-unit-2.5.1-r1 |
50 |
+ dev-ruby/shoulda |
51 |
+ )" |
52 |
+ |
53 |
+all_ruby_prepare() { |
54 |
+ sed -i -e '/bundler/,/end/ d' test/helper.rb || die |
55 |
+ |
56 |
+ # Remove development dependencies; also remove platform as we don't |
57 |
+ # care about it as it is, they only use it to avoid the unf_ext dep |
58 |
+ # that we tackle on our own; finally remove git ls-files usage. |
59 |
+ sed -i -e '/dependency.*\(shoulda\|bundler\|jeweler\|rcov\)/d' \ |
60 |
+ -e '/platform/d' \ |
61 |
+ -e '/git ls/d' \ |
62 |
+ ${RUBY_FAKEGEM_GEMSPEC} || die |
63 |
+} |
64 |
+ |
65 |
+each_ruby_test() { |
66 |
+ ruby-ng_testrb-2 test/test_*.rb |
67 |
+} |