summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-ruby/strscan')
-rw-r--r--dev-ruby/strscan/Manifest1
-rw-r--r--dev-ruby/strscan/strscan-3.1.0.ebuild34
2 files changed, 35 insertions, 0 deletions
diff --git a/dev-ruby/strscan/Manifest b/dev-ruby/strscan/Manifest
index 9158be064215..95e01f5f98f4 100644
--- a/dev-ruby/strscan/Manifest
+++ b/dev-ruby/strscan/Manifest
@@ -2,3 +2,4 @@ DIST strscan-3.0.6.tar.gz 36514 BLAKE2B 3a303ab8185aa12ef5fa748541a7c00dbea102e7
DIST strscan-3.0.7.tar.gz 37528 BLAKE2B 0b4d8e235463efe89e7beb452491cfbd58e5cdbc2950816ca6dda117f1b8f34474c5594c170e8ac2b5d24a848a9bf9f64faaa624080d60987689616f13984e2d SHA512 9b427d2f7d5d6c27a0b3f10b85806abc21a04147d8dbe6f4a6705ab9ded7e2e1365fc99d224a8967ff9bfaf17480071eed0139b46490568475e681ceb8b48a6d
DIST strscan-3.0.8.tar.gz 26904 BLAKE2B 674870db66eaba78cfe1e058b9dd64263c93a89a0333e8028f9c2fba66c785a59ddda109370d802928ab99b0b740dc9ca62a34d0e8fe74aeddf75f8d14d44cc2 SHA512 d9afcfdaf707644d67e3dee95ec7f17b5ada8cdd861b484b0744a4d981a1baef87e1f2a33c19cbcfaea32338a98065280ec12dfdc0fe375bfb74b67050e71638
DIST strscan-3.0.9.tar.gz 26744 BLAKE2B e7c74cc116501d5962f8072d0a7292b469f11f8c223d6721f43335af95d27975997cf1ee26c915f85ac766eb840b50f56f935dc12e8ffe7b6794fa0c0cdfc5c7 SHA512 a73f4d214a5e6a5258609b650fa33d67ff2220bfe2d2419344077b9dc204a6450b8802b4683b09bed1bd541badf8cb3329e295039e431bf7be41d04a866f748c
+DIST strscan-3.1.0.tar.gz 26840 BLAKE2B 89269ab15753953da8592a45da6d866eadc3abc077381e1501f13be37e30f69c92e831ed593dddd17ec1390becd09269bb59fe15a3ddea859eaf52a58f23942f SHA512 85e05fd60818a88e33ccfac7534f1db9cc63b7f1c6769e02950c9f7f589c27581ba19df3ab09178f571878b45cae223a89826819ad00c6665edb9169e7763782
diff --git a/dev-ruby/strscan/strscan-3.1.0.ebuild b/dev-ruby/strscan/strscan-3.1.0.ebuild
new file mode 100644
index 000000000000..cb8dff84588d
--- /dev/null
+++ b/dev-ruby/strscan/strscan-3.1.0.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby31 ruby32 ruby33"
+
+RUBY_FAKEGEM_EXTRADOC="NEWS.md README.md"
+
+RUBY_FAKEGEM_GEMSPEC="strscan.gemspec"
+
+RUBY_FAKEGEM_BINWRAP=""
+
+RUBY_FAKEGEM_EXTENSIONS=(ext/strscan/extconf.rb)
+
+inherit ruby-fakegem
+
+DESCRIPTION="Provides lexical scanning operations on a String"
+HOMEPAGE="https://github.com/ruby/strscan"
+SRC_URI="https://github.com/ruby/strscan/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+LICENSE="MIT"
+
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
+SLOT="$(ver_cut 1)"
+IUSE="test"
+
+ruby_add_bdepend "test? ( dev-ruby/test-unit dev-ruby/test-unit-ruby-core )"
+
+all_ruby_prepare() {
+ sed -i -e 's/__dir__/"."/' ${RUBY_FAKEGEM_GEMSPEC} || die
+}
+
+each_ruby_test() {
+ ${RUBY} -Ilib:test/lib -rhelper run-test.rb || die
+}