diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-12-15 02:02:03 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-12-15 02:02:03 +0000 |
commit | 16a4365c3b854e62b50726456ddb29bb78fd5038 (patch) | |
tree | 6de11adc70daeb6424485bb16be162d2cb277018 /dev-ruby/io-console | |
parent | 59d772d9463f8cf6a145a677bedbf377a0625aff (diff) |
gentoo auto-resync : 15:12:2024 - 02:02:03
Diffstat (limited to 'dev-ruby/io-console')
-rw-r--r-- | dev-ruby/io-console/Manifest | 2 | ||||
-rw-r--r-- | dev-ruby/io-console/io-console-0.8.0.ebuild | 43 |
2 files changed, 45 insertions, 0 deletions
diff --git a/dev-ruby/io-console/Manifest b/dev-ruby/io-console/Manifest index 295af3a96017..5f74bf537710 100644 --- a/dev-ruby/io-console/Manifest +++ b/dev-ruby/io-console/Manifest @@ -1,3 +1,5 @@ DIST io-console-0.7.2.tar.gz 37259 BLAKE2B 22f5f3cfedf477affa1452ce7eab862d49da1943255545f15dd519f7029e61b8747341606ebc1da7bbb020ba5f0ec7e48d08ab000da3b7192cf42ceb601b0b7c SHA512 1dd99c8e9681436a68f39f89f6104a45db2d17092f64985e36a7cd37418831b81f2749922e16ee43a633a90466a8916327a7f21249ceae2f889e70ae596c5b3b +DIST io-console-0.8.0.tar.gz 40484 BLAKE2B 9f03bbb0462ca91c33a8edc824841c03462d6685b0fc80548c09df2c8d563356674663e7e36411baa4ac4ac056562b791dbf8db19704113dea4399549dfd74cd SHA512 c9b5b58b3071497bb3732fceee0c825591797b9a9fd1c60b6a5113162f6fd15d741002988c241c38afb1ca57f38087b78ea8f8a351e187a6f392956802c0d8cd EBUILD io-console-0.7.2.ebuild 1479 BLAKE2B d43da61876abae9b613b7baf880c4b4817582703dee40e7158a8e6696b51a3b57c15c6a784f8654b286f99ccb13e7413962d00602d2858d2766e54fc5a628026 SHA512 4390f29452b79315562e63c0f79514bc326fb36f6d006035ad873988a3922c0de3402840aefe259604804f56c346bb86f5fdf6fdc3995a547961638ddb59fa67 +EBUILD io-console-0.8.0.ebuild 1486 BLAKE2B accb0dc8b19550177872c52af3bd3b9b9322e7c1a4e70ee6131e5d1d7cb9740d31ffcd6be0716544472d7a2a3f063fe71664cc0c3902e2a7d238b5945a422486 SHA512 16a0675670ab854ec15b9d6c848100542db2d9bfb27075c8bad271a2e297aaa0e8606e58ed20cf698f4dbc51da19a056dfdac70d16d34d7e15f261743228364c MISC metadata.xml 342 BLAKE2B 8fd9851a96fd893fd5a6163369d04bf07accc93912f989a39b8fdb0c1aab73c1df0acfb1a565b75ba617629c07bf61589f7e77b64feb16dc3e1138bcda663788 SHA512 58bc013a81541638df5e9891cb587ab49ae06dbe14f221b5f1871f518e7d90a81869a625b7e49e4e62b7d55dfee5d3c607e93de3abb4588d276d26e22ef4622a diff --git a/dev-ruby/io-console/io-console-0.8.0.ebuild b/dev-ruby/io-console/io-console-0.8.0.ebuild new file mode 100644 index 000000000000..322683634273 --- /dev/null +++ b/dev-ruby/io-console/io-console-0.8.0.ebuild @@ -0,0 +1,43 @@ +# 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_EXTENSIONS=(ext/io/console/extconf.rb) +RUBY_FAKEGEM_EXTENSION_LIBDIR="lib/io" +RUBY_FAKEGEM_EXTRADOC="README.md" +RUBY_FAKEGEM_GEMSPEC="io-console.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="add console capabilities to IO instances" +HOMEPAGE="https://github.com/ruby/io-console" +SRC_URI="https://github.com/ruby/io-console/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="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_bdepend "test? ( dev-ruby/test-unit dev-ruby/test-unit-ruby-core )" + +all_ruby_prepare() { + sed -e 's/__FILE__/"'${RUBY_FAKEGEM_GEMSPEC}'"/' \ + -e 's/__dir__/"."/' \ + -e 's/git ls-files -z/find * -print0/' \ + -i ${RUBY_FAKEGEM_GEMSPEC} || die + sed -e '/task :test/ s:^:#:' -i Rakefile || die + + # Avoid test that require a proper TTY + sed -e '/test_\(bad_keyword\|failed_path\)/aomit "requires TTY"' \ + -i test/io/console/test_io_console.rb || die + + # Remove ruby and ffi files in accordance with the gemspec. These + # are only used when using a different ruby engine like jruby. + rm -fr lib/io/console.rb lib/io/console/ffi || die +} + +each_ruby_test() { + ${RUBY} -Ilib:.:test:test/lib -rhelper -e 'Dir["test/**/test_*.rb"].each{|f| require f}' || die +} |