summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2023-12-25 11:34:27 +0100
committerHans de Graaff <graaff@gentoo.org>2023-12-25 11:34:38 +0100
commitad09a911905b3cd619a16e18e1ec42ffdc457d58 (patch)
treef821ab0f31a36d68261aeb495ca0032284d39b37 /dev-ruby/rbs
parentdev-ruby/abbrev: new package, add 0.1.2 (diff)
downloadgentoo-ad09a911905b3cd619a16e18e1ec42ffdc457d58.tar.gz
gentoo-ad09a911905b3cd619a16e18e1ec42ffdc457d58.tar.bz2
gentoo-ad09a911905b3cd619a16e18e1ec42ffdc457d58.zip
dev-ruby/rbs: add 3.4.0
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/rbs')
-rw-r--r--dev-ruby/rbs/Manifest1
-rw-r--r--dev-ruby/rbs/rbs-3.4.0.ebuild54
2 files changed, 55 insertions, 0 deletions
diff --git a/dev-ruby/rbs/Manifest b/dev-ruby/rbs/Manifest
index 82dec5f69037..abe9fdec8fc8 100644
--- a/dev-ruby/rbs/Manifest
+++ b/dev-ruby/rbs/Manifest
@@ -4,3 +4,4 @@ DIST rbs-3.1.3.tar.gz 1133033 BLAKE2B d9727a757bab41dc2deb4570b6fe325ec9dd6b5019
DIST rbs-3.2.0.tar.gz 1147974 BLAKE2B 167d8ac64173c5e7b8bc44d9fbf66c6b2a4c01c8a91bb0d45f564dc2f0ca6b9d06f0f6adafa690214671ff74f28a6396f028f07f00b830b6d6695796ca74a68f SHA512 ef593e24356f4b0236e7fc77f3f919fec03d2bcb82e05c5d511c50bfdf1cd74a193f37a9aca430fca3a869987ee3fcb423a3be94bb364f9a39365d56303dde9e
DIST rbs-3.2.1.tar.gz 1148238 BLAKE2B 3f7a711802e283c4bfdb5a8e8bdbe5a0c33a18bee0c93a917dd38a83c983ebea8ceaa6834e1883c812f1cdb3f04119d617066259687c327f4dc35e4f5844c6b6 SHA512 9ed36b5faba77a87b0ed57b2c652c384214b830e12987244a46bb54c372932b369c9c3e87bd26c709e210b59b5b0aa7f9ae7e59c3cec1168fde9cfe15fdd645c
DIST rbs-3.2.2.tar.gz 1148293 BLAKE2B a585a942d48217aa574629ace472dc57a6c876a67e8e521f3eaa00996c65f45836140b3c888e2a0e4e6d7ab9abf48337565978ec9b3950f9bbcce9f885fbb459 SHA512 758787ef7decd889ed3abcf9f06cd612299823e16b446568e729d76ba41cd66c36d626d7618ed360ff4b15b16c9d6f172fe55d9053810106f731c74f4cca3fe4
+DIST rbs-3.4.0.tar.gz 1233005 BLAKE2B 66486849627ae75842b58abb24b4148146384f0a3e69ecb968eaf6c67afe0a5a6769d6263cb8f2499c899831280f4030f8fe545e3ed39a79129ff5651e9abdc4 SHA512 fde44bec1eba699323c3173508e2c026d9a61bccf4a4c55d0ed74dbf7306d8e1416fe9e115e3bb70d1027262ee26fb47b644571efbc9aed0b67ccb9d9ee59152
diff --git a/dev-ruby/rbs/rbs-3.4.0.ebuild b/dev-ruby/rbs/rbs-3.4.0.ebuild
new file mode 100644
index 000000000000..f5315a0bb4de
--- /dev/null
+++ b/dev-ruby/rbs/rbs-3.4.0.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby31 ruby32"
+
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
+
+RUBY_FAKEGEM_BINDIR="exe"
+
+RUBY_FAKEGEM_EXTRAINSTALL="core schema sig stdlib"
+RUBY_FAKEGEM_EXTENSIONS=(ext/rbs_extension/extconf.rb)
+
+RUBY_FAKEGEM_GEMSPEC="rbs.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="The language for type signatures for Ruby and standard library definitions"
+HOMEPAGE="https://github.com/ruby/rbs"
+SRC_URI="https://github.com/ruby/rbs/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="|| ( Ruby-BSD BSD-2 )"
+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"
+SLOT="0"
+IUSE="test"
+
+ruby_add_rdepend "dev-ruby/abbrev"
+
+ruby_add_bdepend "test? ( dev-ruby/bundler dev-ruby/rdoc dev-ruby/test-unit )"
+
+all_ruby_prepare() {
+ sed -i -e 's/git ls-files -z/find * -print0/' ${RUBY_FAKEGEM_GEMSPEC} || die
+
+ # We compile the extension directly
+ sed -i -e '/extensiontask/I s:^:#:' Rakefile || die
+
+ # Avoid JSON schema validation tests due to a large dependency stack
+ # that would be needed.
+ rm -f test/rbs/schema_test.rb || die
+
+ # Avoid setup tests since they require a lot of development dependencies.
+ rm -f test/rbs/test/runtime_test_test.rb || die
+
+ # Avoid subtract tests with additonal unpackaged dependencies
+ sed -i -e '/def test_subtract/aomit "Skipped due to additional dependencies"' test/rbs/cli_test.rb || die
+
+ # Avoid tests requiring a network connection
+ rm -f test/rbs/collection/installer_test.rb test/rbs/collection/collections_test.rb \
+ test/rbs/collection/config_test.rb test/rbs/collection/sources/git_test.rb || die
+ sed -i -e '/def test_collection_/aomit "Requires network"' test/rbs/cli_test.rb || die
+ sed -i -e '/def test_loading_from_rbs_collection/aomit "Requires network"' test/rbs/environment_loader_test.rb || die
+
+ sed -i -e '/def test_\(method\|paths\)/aomit "Different paths in Gentoo test environment"' test/rbs/cli_test.rb || die
+}