diff options
author | Hans de Graaff <graaff@gentoo.org> | 2024-10-05 08:57:25 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2024-10-05 08:57:25 +0200 |
commit | 8a6cb1a6b1c6413d684d50bd8a8056e96a19121b (patch) | |
tree | a44c022da6e3b5cb631f8b92e39c8a996579ca28 /dev-ruby/rbs | |
parent | dev-ruby/msgpack: drop 1.7.1 (diff) | |
download | gentoo-8a6cb1a6b1c6413d684d50bd8a8056e96a19121b.tar.gz gentoo-8a6cb1a6b1c6413d684d50bd8a8056e96a19121b.tar.bz2 gentoo-8a6cb1a6b1c6413d684d50bd8a8056e96a19121b.zip |
dev-ruby/rbs: add 3.6.1
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/rbs')
-rw-r--r-- | dev-ruby/rbs/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/rbs/rbs-3.6.1.ebuild | 59 |
2 files changed, 60 insertions, 0 deletions
diff --git a/dev-ruby/rbs/Manifest b/dev-ruby/rbs/Manifest index 64c61a581aad..f8501efb8f99 100644 --- a/dev-ruby/rbs/Manifest +++ b/dev-ruby/rbs/Manifest @@ -4,3 +4,4 @@ DIST rbs-3.4.4.tar.gz 1236977 BLAKE2B 19b95e7b162714738c37d9d8f740d11e5e4694f6e2 DIST rbs-3.5.1.tar.gz 1253359 BLAKE2B c30ae04d32390c415de8b6e5b58006e5ac916ffd451df82d020c72f14ce510f4a4a792b3baff7e674452fdaa6dd9aa816f5248882d6cd82aed70b921bf6dac23 SHA512 aab98a8b79c50570eb666861fc75d33c66af0504edb2c36543d32020eb04c3b5e1d227dada73e61d67a5cf64e9e613ff55218267c3f54f0f65fdf22b1dfaff4d DIST rbs-3.5.2.tar.gz 1254235 BLAKE2B bb0b6f752c8b4d19491fce19ac34cdb0bbbd00dd570ae8c155674cb337a21672c6db1a5a9475b43aa0b9fe3bac3517ad484a1539fcb7f069c50f0edb8af9878f SHA512 2a94f0fff502ec389c3da7f6164b86cfcc6bcbb5afb3ef22b917d17f9c211e492d37e37669d5d41f157a6e9e256125682d8e6bb634d0918b3a19987774914a07 DIST rbs-3.5.3.tar.gz 1254332 BLAKE2B fe82805b727112ecc61fc581601fbb82e0c8a18a79dd6e724b91c4c14c6cc18f89c7dca8f3d734b06c40a1ec6bde42d203aa8400ddd2b48b24a9ef660d80aa8a SHA512 8bf2645ae076562fa5197495c32ffd76472295cbe32bb49bfd5f8c4194e9444f2193d365cbc62c3b732e0b4f106563c03fba6aaaff7e11853adc317af1970662 +DIST rbs-3.6.1.tar.gz 1272668 BLAKE2B ac7980431b1db1916a796edf6e59918d96fab398db7f2a826dfc183bd5def34c2ac579c222c01ed6e38c68c79f92dfb375476df9b97a04d0150e2eb6dfced6d8 SHA512 fc60c3cad539baf941fb0672e2ff80c2de33585e117ef5752ca4dff215e782a3be42b80a6b49a7150c05ae365aa521745f7a65817ab4d26495d745713c29933b diff --git a/dev-ruby/rbs/rbs-3.6.1.ebuild b/dev-ruby/rbs/rbs-3.6.1.ebuild new file mode 100644 index 000000000000..7aebee8de87b --- /dev/null +++ b/dev-ruby/rbs/rbs-3.6.1.ebuild @@ -0,0 +1,59 @@ +# 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="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 )" +SLOT="0" +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_rdepend "dev-ruby/logger" + +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 test that depends on rspec to avoid a huge dependency tree + # for dev-lang/ruby. This test is automagic but can still cause + # breakage when rspec is not properly installed, bug 935259 + sed -e '/test_is_double/aomit "Avoid rspec dependency"' -i test/rbs/test/type_check_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 +} |