summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2022-04-09 08:18:09 +0200
committerHans de Graaff <graaff@gentoo.org>2022-04-09 09:38:40 +0200
commitbe82ba5f95a7ab8fbcfe720bf4c0cf997599c59a (patch)
treeffa0b28e2357e485fa9c2dc704df7578850a6e0c /dev-ruby/regexp_parser
parentdev-ruby/msgpack: add 1.5.1 (diff)
downloadgentoo-be82ba5f95a7ab8fbcfe720bf4c0cf997599c59a.tar.gz
gentoo-be82ba5f95a7ab8fbcfe720bf4c0cf997599c59a.tar.bz2
gentoo-be82ba5f95a7ab8fbcfe720bf4c0cf997599c59a.zip
dev-ruby/regexp_parser: add 2.3.0
Always depend on rspec:3 since it is referenced in the Rakefile that we need to call when building the package. Closes: https://bugs.gentoo.org/828420 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/regexp_parser')
-rw-r--r--dev-ruby/regexp_parser/Manifest1
-rw-r--r--dev-ruby/regexp_parser/regexp_parser-2.3.0.ebuild36
2 files changed, 37 insertions, 0 deletions
diff --git a/dev-ruby/regexp_parser/Manifest b/dev-ruby/regexp_parser/Manifest
index 781322d6fff7..b379c5bd5ba6 100644
--- a/dev-ruby/regexp_parser/Manifest
+++ b/dev-ruby/regexp_parser/Manifest
@@ -2,3 +2,4 @@ DIST regexp_parser-0.5.0.tar.gz 80554 BLAKE2B 7890e6850e3ffbb927c5e72430ab29e6ae
DIST regexp_parser-1.8.2.tar.gz 85592 BLAKE2B 55333dbf59606d1f203c84cc3e712ddba9551be492745f2a0ce9ca8ba56e9a6eb1aee0c9d3d5079114c65747746f6ef4df3cbbf5a917562f413ca3426fd16efc SHA512 8192ee4334d2da13af5552eccd4fed82b24ed57489e3e0d8d083e8cf72e52fa185c2e007e9adf1ec6e59b0cf4e4055eb8def28d5cc94cc7a9ab7981d14f8e727
DIST regexp_parser-2.1.1.tar.gz 89399 BLAKE2B 7632b1e65e929f610e6bedc7954f81ca080f4f290794da617dbaeaae324186581a6e0ab78fb8d7311c33876b8cce090fdb6d4b868eeb80b82fa8461da5d82bfe SHA512 809b8c5f7bcceb0c31e97256d5a40a04bb7919cfa0a139e972e90a72ba15eee6dce8ac1f8e65f5e8f7a5f992a2fab91d6ae19f27a1f5ec7795fcc082ff037e13
DIST regexp_parser-2.2.1.tar.gz 90169 BLAKE2B dcfa392bc5dc9e08816b3a2e401744c775a8a5c60067c410d195d60ef155eba287b31243e70677f018e3d751b371a8878933a5e34c4bd5b00cef3bf1b266c00a SHA512 a3a6fbd36e980eaf5f14d0c98c2680aed700b01c7941fbc4e406e14992e432b3ce1510a8be9ef7964ddf0ab85c55b556206cdea36a336de98e6956942b4ff726
+DIST regexp_parser-2.3.0.tar.gz 92100 BLAKE2B d3d5315e4643e118f559cdfdc6f30c5fe2104298d4b0d297b4cc0b4cadcbd4b97fbc92eb454b9ca00c917e67d0099d8c50a747d76d51806506c8cc93d0e4d02e SHA512 d297d475897586d78c6678edb77077c2d562e59483b036f65ef1a550c2f2c28b9fc3c96b2a98d5726b58d2a061d6c65b72a48c1e1b3e2a5b7c3ea01543d22746
diff --git a/dev-ruby/regexp_parser/regexp_parser-2.3.0.ebuild b/dev-ruby/regexp_parser/regexp_parser-2.3.0.ebuild
new file mode 100644
index 000000000000..6f59b303702a
--- /dev/null
+++ b/dev-ruby/regexp_parser/regexp_parser-2.3.0.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby26 ruby27 ruby30 ruby31"
+
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+
+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 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE=""
+
+DEPEND+=" =dev-util/ragel-6*"
+
+ruby_add_bdepend "dev-ruby/rake dev-ruby/rspec:3
+ 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
+}