1 |
commit: c1efb463452bfb32ca904ad67b2843db83d561e4 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 18 06:04:02 2021 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 18 06:04:02 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1efb463 |
7 |
|
8 |
dev-ruby/regexp_parser: add ruby30; fix tests |
9 |
|
10 |
Fix tests by running them in the correct ruby interpreter rather than |
11 |
the default one. This also exposed a missing test dependency more |
12 |
clearly. |
13 |
|
14 |
Closes: https://bugs.gentoo.org/772224 |
15 |
Package-Manager: Portage-3.0.18, Repoman-3.0.2 |
16 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
17 |
|
18 |
.../regexp_parser/regexp_parser-2.1.1-r1.ebuild | 39 ++++++++++++++++++++++ |
19 |
1 file changed, 39 insertions(+) |
20 |
|
21 |
diff --git a/dev-ruby/regexp_parser/regexp_parser-2.1.1-r1.ebuild b/dev-ruby/regexp_parser/regexp_parser-2.1.1-r1.ebuild |
22 |
new file mode 100644 |
23 |
index 00000000000..154f1879c01 |
24 |
--- /dev/null |
25 |
+++ b/dev-ruby/regexp_parser/regexp_parser-2.1.1-r1.ebuild |
26 |
@@ -0,0 +1,39 @@ |
27 |
+# Copyright 1999-2021 Gentoo Authors |
28 |
+# Distributed under the terms of the GNU General Public License v2 |
29 |
+ |
30 |
+EAPI=7 |
31 |
+USE_RUBY="ruby25 ruby26 ruby27 ruby30" |
32 |
+ |
33 |
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" |
34 |
+ |
35 |
+RUBY_FAKEGEM_BINWRAP="" |
36 |
+ |
37 |
+RUBY_FAKEGEM_GEMSPEC="regexp_parser.gemspec" |
38 |
+ |
39 |
+inherit ruby-fakegem |
40 |
+ |
41 |
+DESCRIPTION="A library for tokenizing, lexing, and parsing Ruby regular expressions" |
42 |
+HOMEPAGE="https://github.com/ammar/regexp_parser" |
43 |
+SRC_URI="https://github.com/ammar/regexp_parser/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="MIT" |
46 |
+SLOT="$(ver_cut 1)" |
47 |
+KEYWORDS="~amd64" |
48 |
+IUSE="" |
49 |
+ |
50 |
+DEPEND+=" =dev-util/ragel-6*" |
51 |
+ |
52 |
+ruby_add_bdepend "dev-ruby/rake |
53 |
+ test? ( dev-ruby/ice_nine dev-ruby/regexp_property_values dev-ruby/rspec:3 )" |
54 |
+ |
55 |
+all_ruby_prepare() { |
56 |
+ sed -i -e '/bundler/I s:^:#:' Rakefile || die |
57 |
+} |
58 |
+ |
59 |
+each_ruby_compile() { |
60 |
+ ${RUBY} -S rake ragel:rb || die |
61 |
+} |
62 |
+ |
63 |
+each_ruby_test() { |
64 |
+ ${RUBY} -S bin/test || die |
65 |
+} |