mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-05 14:07:27 -08:00
dev-ruby/io-wait: add 0.3.2
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
parent
d130104662
commit
8aad5dfe5b
@ -1 +1,2 @@
|
||||
DIST io-wait-0.3.1.tar.gz 13187 BLAKE2B 2d8e0c8cdd29d01279d5b700cd3cfcb5ab23f651ef5a2be388c2813734636f35a00d478b56ee168fc8a1be43b5ff38bf4ea78ff98abcfe4f95e17c20cf2defa9 SHA512 34cf02e0533c32b781a01e5c3ff987b6463a45a5356180733c06a03280ce7767d1274fe0d47dc9783061d588de83bb080b5cb315e3c3779da30a8562b11871de
|
||||
DIST io-wait-0.3.2.tar.gz 14091 BLAKE2B 9372b0c18356a1f53d3612f181e454f066e982971c586e35065968b8418821238a0b384d5d1711a806ffe4a5144a4e665b4e401193b39c7a44e054b1b002f14a SHA512 64b0f0ca3b43bbba04e9b570dfb6d4fdcdb88005044eed61e2786e8ca8b34afc60d6b021f951d20da50e48480d63fed230e8ddc4d23b3dc0954acc476d8b1112
|
||||
|
||||
38
dev-ruby/io-wait/io-wait-0.3.2.ebuild
Normal file
38
dev-ruby/io-wait/io-wait-0.3.2.ebuild
Normal file
@ -0,0 +1,38 @@
|
||||
# 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_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 ~x64-solaris"
|
||||
|
||||
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/git ls-files -z/find * -print0/' \
|
||||
-i ${RUBY_FAKEGEM_GEMSPEC} || die
|
||||
sed -e '/task :test/ s:^:#:' -i Rakefile || die
|
||||
|
||||
# Avoid tests that require a working console
|
||||
sed -e '/test_wait_mask_\(negative\|readable\|writable\|zero\)/aomit("Requires working console")' \
|
||||
-i test/io/wait/test_io_wait.rb || die
|
||||
}
|
||||
|
||||
each_ruby_test() {
|
||||
${RUBY} -Ilib:.:test:test/lib -rhelper -e 'Dir["test/**/test_*.rb"].each{|f| require f}' || die
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user