summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2022-05-10 06:54:37 +0200
committerHans de Graaff <graaff@gentoo.org>2022-05-10 06:54:37 +0200
commit22540bc77964fda6f6260ccac99106972c9574f9 (patch)
tree64fa2f17d7bcead56a9b69fbc169320a99f17504
parentsys-apps/baobab: Keyword 42.0 ia64, #838709 (diff)
downloadgentoo-22540bc77964fda6f6260ccac99106972c9574f9.tar.gz
gentoo-22540bc77964fda6f6260ccac99106972c9574f9.tar.bz2
gentoo-22540bc77964fda6f6260ccac99106972c9574f9.zip
dev-ruby/io-wait: add 0.2.3
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
-rw-r--r--dev-ruby/io-wait/Manifest1
-rw-r--r--dev-ruby/io-wait/io-wait-0.2.3.ebuild32
2 files changed, 33 insertions, 0 deletions
diff --git a/dev-ruby/io-wait/Manifest b/dev-ruby/io-wait/Manifest
index 25896ccd1cf2..145f709a1d06 100644
--- a/dev-ruby/io-wait/Manifest
+++ b/dev-ruby/io-wait/Manifest
@@ -1 +1,2 @@
DIST io-wait-0.2.1.tar.gz 18944 BLAKE2B c77e0f839160d0129660003586f7785447e7b2e89df47d83ff6868bbdf1e667d432f0d84afb06b5bcc8f751c433da9c8bcd7b5fc0b701adbe2f10ae338dcacab SHA512 7e914ce7d6b66fabd1799567dd448124b7c1dd266bd1ce975b24a96f18c15b7dab20d2f68a7686aa8383d518783486370225b22a07fdb3c9fddae93278282427
+DIST io-wait-0.2.3.tar.gz 22171 BLAKE2B 359bf268aafcb2dcbdf59912a0973b96bf396801678a3aa2780e3bd20e8a01471404a269eaaced939e47e4e99c417eadb86f0f2bd6ccd11fc3256bb04ca05f4f SHA512 2fbea3419152cd83e411742dd074491bd78b6a077b68a2ea5d802bac671b839bb484a06654ca11f18f45deb1e33a9019dfae0a33eeda0696c1c14b05706a95ba
diff --git a/dev-ruby/io-wait/io-wait-0.2.3.ebuild b/dev-ruby/io-wait/io-wait-0.2.3.ebuild
new file mode 100644
index 000000000000..4def09c942da
--- /dev/null
+++ b/dev-ruby/io-wait/io-wait-0.2.3.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby26 ruby27 ruby30 ruby31"
+
+RUBY_FAKEGEM_BINWRAP=""
+RUBY_FAKEGEM_EXTENSIONS="ext/io/wait/extconf.rb"
+RUBY_FAKEGEM_EXTRADOC="README.md"
+RUBY_FAKEGEM_GEMSPEC="io-wait.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Waits until IO is readable or writable without blocking"
+HOMEPAGE="https://github.com/ruby/io-wait"
+SRC_URI="https://github.com/ruby/io-wait/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE=""
+
+all_ruby_prepare() {
+ sed -e 's/__FILE__/"'${RUBY_FAKEGEM_GEMSPEC}'"/' \
+ -e 's/git ls-files -z/find * -print0/' \
+ -i ${RUBY_FAKEGEM_GEMSPEC} || die
+ sed -e '/task :test/ s:^:#:' -i Rakefile || die
+}
+
+each_ruby_test() {
+ ${RUBY} -Ilib:.:test:test/lib -rhelper -e 'Dir["test/**/test_*.rb"].each{|f| require f}' || die
+}