diff options
author | Hans de Graaff <graaff@gentoo.org> | 2024-03-13 07:13:10 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2024-03-14 06:48:37 +0100 |
commit | 2818a66d9e2d93d0f69869f2ac4e4e3aeadcdef0 (patch) | |
tree | d9ccd54e1a5ab2d2029f47d08c4f6cc3bdece10b /dev-ruby | |
parent | dev-ruby/reline: add 0.4.3 (diff) | |
download | gentoo-2818a66d9e2d93d0f69869f2ac4e4e3aeadcdef0.tar.gz gentoo-2818a66d9e2d93d0f69869f2ac4e4e3aeadcdef0.tar.bz2 gentoo-2818a66d9e2d93d0f69869f2ac4e4e3aeadcdef0.zip |
dev-ruby/rbs: add 3.4.4
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/rbs/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/rbs/rbs-3.4.4.ebuild | 54 |
2 files changed, 55 insertions, 0 deletions
diff --git a/dev-ruby/rbs/Manifest b/dev-ruby/rbs/Manifest index 79f83618ebd1..60e0564225b3 100644 --- a/dev-ruby/rbs/Manifest +++ b/dev-ruby/rbs/Manifest @@ -5,3 +5,4 @@ DIST rbs-3.2.2.tar.gz 1148293 BLAKE2B a585a942d48217aa574629ace472dc57a6c876a67e DIST rbs-3.4.0.tar.gz 1233005 BLAKE2B 66486849627ae75842b58abb24b4148146384f0a3e69ecb968eaf6c67afe0a5a6769d6263cb8f2499c899831280f4030f8fe545e3ed39a79129ff5651e9abdc4 SHA512 fde44bec1eba699323c3173508e2c026d9a61bccf4a4c55d0ed74dbf7306d8e1416fe9e115e3bb70d1027262ee26fb47b644571efbc9aed0b67ccb9d9ee59152 DIST rbs-3.4.1.tar.gz 1236509 BLAKE2B da51d9c8eed72fb5f4b4b31950db5d39b0fc18a55a3d7999f92d3c5d23ed3d0b0572e65d212483442796093a3941a404e2babd0b55581135d1c77c3521ddc00e SHA512 d98217535091f6af5ff102d8b7126bcd881e22b64c240b5e443a965ccdb0f812a755d3da5db6b65964f6e0e798491bd17ba76d4221e46fbbb26ad0674cd1dca0 DIST rbs-3.4.2.tar.gz 1236528 BLAKE2B 65c6c218d65db323171af85bbce2f18bbc502c5e0611739ce96d7490afa91090d3fe308fdec253bdb61f41877b4691686fd8a9c8f4be4ec270713f47d5b18a79 SHA512 ec22ef5c27750d2762b0e50bc6623d9dabd7afb11dcae641e76776ca9a12cda9c73657e5be84fadd05998e065174f785df238415c7f4a3bb3e71aff89dffc620 +DIST rbs-3.4.4.tar.gz 1236977 BLAKE2B 19b95e7b162714738c37d9d8f740d11e5e4694f6e2c7e9ba9f01c74d8d318d0b848251276e421a80d8a5680ed60fa510d04d4a57ac72d0c376f1e9cfef2fe773 SHA512 c6be887af1c89e7b9d8f01e248a24f571c189fc81f55d1625957434a3d1e74c5d23f9ba2089750cb742a82560165d9bab309cff8cdb6c9e455076051301c7dd4 diff --git a/dev-ruby/rbs/rbs-3.4.4.ebuild b/dev-ruby/rbs/rbs-3.4.4.ebuild new file mode 100644 index 000000000000..46da666c978d --- /dev/null +++ b/dev-ruby/rbs/rbs-3.4.4.ebuild @@ -0,0 +1,54 @@ +# 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 )" +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 +} |