summaryrefslogtreecommitdiff
path: root/dev-ruby/io-console
diff options
context:
space:
mode:
Diffstat (limited to 'dev-ruby/io-console')
-rw-r--r--dev-ruby/io-console/Manifest1
-rw-r--r--dev-ruby/io-console/io-console-0.8.1.ebuild2
-rw-r--r--dev-ruby/io-console/io-console-0.8.2.ebuild44
3 files changed, 46 insertions, 1 deletions
diff --git a/dev-ruby/io-console/Manifest b/dev-ruby/io-console/Manifest
index d50823cceb70..44c060fa9315 100644
--- a/dev-ruby/io-console/Manifest
+++ b/dev-ruby/io-console/Manifest
@@ -1,2 +1,3 @@
DIST io-console-0.8.0.tar.gz 40484 BLAKE2B 9f03bbb0462ca91c33a8edc824841c03462d6685b0fc80548c09df2c8d563356674663e7e36411baa4ac4ac056562b791dbf8db19704113dea4399549dfd74cd SHA512 c9b5b58b3071497bb3732fceee0c825591797b9a9fd1c60b6a5113162f6fd15d741002988c241c38afb1ca57f38087b78ea8f8a351e187a6f392956802c0d8cd
DIST io-console-0.8.1.tar.gz 40613 BLAKE2B 2a9fe5318394536d7d892cf93b7a572f85cf7919edf12dc8ff17b61b4180fc5b9881ee703587531a9ccb925f46db394dfa02c9a1c2ceb47eea476cd1209c2c50 SHA512 d7bfed76fd3acc560fc58a7cace8c439ce1d20497c27f3ef5e003173c84b59249221e4400891c6ef52c92499f14cbdb53129faba203dee2fc5817c97d7a3a58d
+DIST io-console-0.8.2.tar.gz 41473 BLAKE2B edcfe9c1d681b03aca7ed22ac473b4becc27927ef8d5d909e793f2c777c035a7c0218fe7e1e364311575f9450b47ee626a56f9b7be229833f3d996db76ef1827 SHA512 ce639c4589b762b85413ee49cd12329280c385a1c6e43dea01f01121642822ab5f2571c7a44cb028dbd4c5bc4ae3fa4dccba689b33ac5648ae3820a848af9612
diff --git a/dev-ruby/io-console/io-console-0.8.1.ebuild b/dev-ruby/io-console/io-console-0.8.1.ebuild
index 0352f7f35fce..28042693a614 100644
--- a/dev-ruby/io-console/io-console-0.8.1.ebuild
+++ b/dev-ruby/io-console/io-console-0.8.1.ebuild
@@ -18,7 +18,7 @@ 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"
+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 )"
diff --git a/dev-ruby/io-console/io-console-0.8.2.ebuild b/dev-ruby/io-console/io-console-0.8.2.ebuild
new file mode 100644
index 000000000000..0352f7f35fce
--- /dev/null
+++ b/dev-ruby/io-console/io-console-0.8.2.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby32 ruby33 ruby34"
+
+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
+}