summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2024-12-12 08:21:41 +0100
committerHans de Graaff <graaff@gentoo.org>2024-12-12 08:21:41 +0100
commit0d8d02167b33c068a95a7206982bf1c1f4690633 (patch)
tree68886867ba41b129d86578db4a35ca7ab7650730 /dev-ruby/strscan
parentdev-python/respx: limit <httpx-0.28.0 due to broken compatibility (diff)
downloadgentoo-0d8d02167b33c068a95a7206982bf1c1f4690633.tar.gz
gentoo-0d8d02167b33c068a95a7206982bf1c1f4690633.tar.bz2
gentoo-0d8d02167b33c068a95a7206982bf1c1f4690633.zip
dev-ruby/strscan: add 3.1.1
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/strscan')
-rw-r--r--dev-ruby/strscan/Manifest1
-rw-r--r--dev-ruby/strscan/strscan-3.1.1.ebuild35
2 files changed, 36 insertions, 0 deletions
diff --git a/dev-ruby/strscan/Manifest b/dev-ruby/strscan/Manifest
index 44de355f25dc..4c2ca8520ebf 100644
--- a/dev-ruby/strscan/Manifest
+++ b/dev-ruby/strscan/Manifest
@@ -1,2 +1,3 @@
DIST strscan-3.0.9.tar.gz 26744 BLAKE2B e7c74cc116501d5962f8072d0a7292b469f11f8c223d6721f43335af95d27975997cf1ee26c915f85ac766eb840b50f56f935dc12e8ffe7b6794fa0c0cdfc5c7 SHA512 a73f4d214a5e6a5258609b650fa33d67ff2220bfe2d2419344077b9dc204a6450b8802b4683b09bed1bd541badf8cb3329e295039e431bf7be41d04a866f748c
DIST strscan-3.1.0.tar.gz 26840 BLAKE2B 89269ab15753953da8592a45da6d866eadc3abc077381e1501f13be37e30f69c92e831ed593dddd17ec1390becd09269bb59fe15a3ddea859eaf52a58f23942f SHA512 85e05fd60818a88e33ccfac7534f1db9cc63b7f1c6769e02950c9f7f589c27581ba19df3ab09178f571878b45cae223a89826819ad00c6665edb9169e7763782
+DIST strscan-3.1.1.tar.gz 36883 BLAKE2B 3430b5051ec2a5fc2f712bac989c88b96da9d2599f75c5b869c62c068fbcc475d864c643b63a253346cebed026e2be4a0369a667de68ff3f14bb502f27fb31a9 SHA512 6e07f6c1ae5015651cc330221ce7957dfb6fc98a32261521146fa64530e225e624df9559d52f45ccd5c3da0ad28c5f36cd2f0dac4c9f2c8bcf7e4cbd0e3e6c70
diff --git a/dev-ruby/strscan/strscan-3.1.1.ebuild b/dev-ruby/strscan/strscan-3.1.1.ebuild
new file mode 100644
index 000000000000..e159e0deaba8
--- /dev/null
+++ b/dev-ruby/strscan/strscan-3.1.1.ebuild
@@ -0,0 +1,35 @@
+# 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)
+RUBY_FAKEGEM_RECIPE_DOC="none"
+
+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"
+
+SLOT="$(ver_cut 1)"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
+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
+}