commit:     c1efb463452bfb32ca904ad67b2843db83d561e4
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Tue May 18 06:04:02 2021 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Tue May 18 06:04:02 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1efb463

dev-ruby/regexp_parser: add ruby30; fix tests

Fix tests by running them in the correct ruby interpreter rather than
the default one. This also exposed a missing test dependency more
clearly.

Closes: https://bugs.gentoo.org/772224
Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 .../regexp_parser/regexp_parser-2.1.1-r1.ebuild    | 39 ++++++++++++++++++++++
 1 file changed, 39 insertions(+)

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
new file mode 100644
index 00000000000..154f1879c01
--- /dev/null
+++ b/dev-ruby/regexp_parser/regexp_parser-2.1.1-r1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+USE_RUBY="ruby25 ruby26 ruby27 ruby30"
+
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
+
+RUBY_FAKEGEM_BINWRAP=""
+
+RUBY_FAKEGEM_GEMSPEC="regexp_parser.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="A library for tokenizing, lexing, and parsing Ruby regular 
expressions"
+HOMEPAGE="https://github.com/ammar/regexp_parser";
+SRC_URI="https://github.com/ammar/regexp_parser/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="$(ver_cut 1)"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND+=" =dev-util/ragel-6*"
+
+ruby_add_bdepend "dev-ruby/rake
+       test? ( dev-ruby/ice_nine dev-ruby/regexp_property_values 
dev-ruby/rspec:3 )"
+
+all_ruby_prepare() {
+       sed -i -e '/bundler/I s:^:#:' Rakefile || die
+}
+
+each_ruby_compile() {
+       ${RUBY} -S rake ragel:rb || die
+}
+
+each_ruby_test() {
+       ${RUBY} -S bin/test || die
+}

Reply via email to