public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Hans de Graaff" <graaff@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/io-console/
Date: Sat, 14 Dec 2024 07:47:20 +0000 (UTC)	[thread overview]
Message-ID: <1734162427.381de9b092eee64ba65f65ae51dbbd833f838f54.graaff@gentoo> (raw)

commit:     381de9b092eee64ba65f65ae51dbbd833f838f54
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 14 07:43:14 2024 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sat Dec 14 07:47:07 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=381de9b0

dev-ruby/io-console: add 0.8.0

Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 dev-ruby/io-console/Manifest                |  1 +
 dev-ruby/io-console/io-console-0.8.0.ebuild | 43 +++++++++++++++++++++++++++++
 2 files changed, 44 insertions(+)

diff --git a/dev-ruby/io-console/Manifest b/dev-ruby/io-console/Manifest
index afa0c8095c3d..e33c99d2e3cf 100644
--- a/dev-ruby/io-console/Manifest
+++ b/dev-ruby/io-console/Manifest
@@ -1 +1,2 @@
 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

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
+}


             reply	other threads:[~2024-12-14  7:47 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-14  7:47 Hans de Graaff [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-07-19  6:07 [gentoo-commits] repo/gentoo:master commit in: dev-ruby/io-console/ Hans de Graaff
2025-05-21 10:56 Arthur Zamarin
2025-05-20 18:31 Arthur Zamarin
2025-05-18 12:28 Arthur Zamarin
2025-05-18 10:34 Arthur Zamarin
2024-05-18  8:33 Sam James
2024-05-18  7:59 Sam James
2024-04-30  2:30 Ionen Wolkens
2024-04-30  2:30 Ionen Wolkens
2024-04-30  2:30 Ionen Wolkens
2024-04-30  2:30 Ionen Wolkens
2024-04-30  2:30 Ionen Wolkens
2024-03-29  9:19 Hans de Graaff
2024-01-21 14:06 Fabian Groffen
2024-01-19  8:08 Hans de Graaff
2023-12-26 15:53 Hans de Graaff
2023-12-22  8:08 Hans de Graaff
2023-12-13  7:10 Hans de Graaff
2023-10-08 10:07 Hans de Graaff
2023-07-09  5:42 Hans de Graaff
2023-07-01  8:41 Hans de Graaff

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1734162427.381de9b092eee64ba65f65ae51dbbd833f838f54.graaff@gentoo \
    --to=graaff@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox