diff options
author | 2024-05-03 09:38:26 +0200 | |
---|---|---|
committer | 2024-05-03 13:13:28 +0200 | |
commit | 60fa4321ce5ea11571d6cda76ae84734db7b05b1 (patch) | |
tree | 7a01fa8dfb13106d81c59fea18d7e539e472148c /dev-ruby/io-wait | |
parent | net-libs/libtorrent-rasterbar: add 2.0.10, enable py3.12 + tweak tests (diff) | |
download | gentoo-60fa4321ce5ea11571d6cda76ae84734db7b05b1.tar.gz gentoo-60fa4321ce5ea11571d6cda76ae84734db7b05b1.tar.bz2 gentoo-60fa4321ce5ea11571d6cda76ae84734db7b05b1.zip |
dev-ruby/io-wait: add 0.3.1
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/io-wait')
-rw-r--r-- | dev-ruby/io-wait/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/io-wait/io-wait-0.3.1.ebuild | 31 |
2 files changed, 32 insertions, 0 deletions
diff --git a/dev-ruby/io-wait/Manifest b/dev-ruby/io-wait/Manifest index d52a4a63fe49..48c122abeb2b 100644 --- a/dev-ruby/io-wait/Manifest +++ b/dev-ruby/io-wait/Manifest @@ -1 +1,2 @@ DIST io-wait-0.2.3.tar.gz 22171 BLAKE2B 359bf268aafcb2dcbdf59912a0973b96bf396801678a3aa2780e3bd20e8a01471404a269eaaced939e47e4e99c417eadb86f0f2bd6ccd11fc3256bb04ca05f4f SHA512 2fbea3419152cd83e411742dd074491bd78b6a077b68a2ea5d802bac671b839bb484a06654ca11f18f45deb1e33a9019dfae0a33eeda0696c1c14b05706a95ba +DIST io-wait-0.3.1.tar.gz 13187 BLAKE2B 2d8e0c8cdd29d01279d5b700cd3cfcb5ab23f651ef5a2be388c2813734636f35a00d478b56ee168fc8a1be43b5ff38bf4ea78ff98abcfe4f95e17c20cf2defa9 SHA512 34cf02e0533c32b781a01e5c3ff987b6463a45a5356180733c06a03280ce7767d1274fe0d47dc9783061d588de83bb080b5cb315e3c3779da30a8562b11871de diff --git a/dev-ruby/io-wait/io-wait-0.3.1.ebuild b/dev-ruby/io-wait/io-wait-0.3.1.ebuild new file mode 100644 index 000000000000..4c5293ff23a6 --- /dev/null +++ b/dev-ruby/io-wait/io-wait-0.3.1.ebuild @@ -0,0 +1,31 @@ +# 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_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" + +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 +} |