diff options
author | Sam James <sam@gentoo.org> | 2023-05-20 10:07:12 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-05-20 10:20:44 +0100 |
commit | a4e9c8e8cb361c94db3d6d96f2c5a5ec37334105 (patch) | |
tree | 28a9a76fefda64db61475dca1fe0a27ab4109837 /dev-ruby/io-event | |
parent | dev-ruby/async: add 2.5.1 (diff) | |
download | gentoo-a4e9c8e8cb361c94db3d6d96f2c5a5ec37334105.tar.gz gentoo-a4e9c8e8cb361c94db3d6d96f2c5a5ec37334105.tar.bz2 gentoo-a4e9c8e8cb361c94db3d6d96f2c5a5ec37334105.zip |
dev-ruby/io-event: add 1.2.2
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-ruby/io-event')
-rw-r--r-- | dev-ruby/io-event/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/io-event/io-event-1.2.2.ebuild | 36 | ||||
-rw-r--r-- | dev-ruby/io-event/metadata.xml | 3 |
3 files changed, 40 insertions, 0 deletions
diff --git a/dev-ruby/io-event/Manifest b/dev-ruby/io-event/Manifest index f3036d27570a..97729910d88d 100644 --- a/dev-ruby/io-event/Manifest +++ b/dev-ruby/io-event/Manifest @@ -1,2 +1,3 @@ DIST io-event-1.1.6.tar.gz 34530 BLAKE2B 3b0e6e5ca781b61467daeb885ea22de639c2f3c68f96657c99e8257f0cb0028f8997e6aa0ab5c53b56e53a944c40944e701d57160faeb4273a5bc77ceb4c2dfc SHA512 65cc9a9de7037059a119f1ca6569414baacab234ac4e6ee91ac5c780ed789510d8691111890dbe19082867c5adbd50cc9a86e28b37460b8fb01ff53abde8d417 DIST io-event-1.1.7.tar.gz 35211 BLAKE2B d288ec902c4d775b49315d4eeda8bb0582b7444e7adc60846283fbffbe8ecec6e13c1bc7ce898c4aaf3e78d5eeee2602045f9bde561f6f50c797b7aecb3d7b01 SHA512 f61d0eb7203b4bd4b38d1f42a23c67d4ae04dbbb4c7018149d52db440d769131581347198f4a6da6e99aaa1ac526ad1c1cb9d56ecf48c1fc70fbf1b62fb161e7 +DIST io-event-1.2.2.tar.gz 35405 BLAKE2B 9fb96c920524db8111b8d3650f2559df71e262f2f4cd32080a3e04f09da5df3d0f0a6777b1d37aba7848b9f7298d9fe5c5684c3211ff39b5178d452d10dede70 SHA512 6ebffd24eb40392496f488ee578f17fcc2e713d3b90cea20899c82e26a6d601b0670d21383d5e33345cad9a33ae43120e8c1d017bb7bd44ff95be2c17bab6712 diff --git a/dev-ruby/io-event/io-event-1.2.2.ebuild b/dev-ruby/io-event/io-event-1.2.2.ebuild new file mode 100644 index 000000000000..337b2103b8db --- /dev/null +++ b/dev-ruby/io-event/io-event-1.2.2.ebuild @@ -0,0 +1,36 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby30 ruby31 ruby32" + +RUBY_FAKEGEM_EXTENSIONS=(ext/extconf.rb) +RUBY_FAKEGEM_EXTRADOC="readme.md" +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" +RUBY_FAKEGEM_RECIPE_TEST="sus" + +inherit ruby-fakegem + +DESCRIPTION="An event loop" +HOMEPAGE="https://github.com/socketry/io-event" +SRC_URI="https://github.com/socketry/io-event/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="$(ver_cut 1-2)" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="+io-uring" + +RDEPEND="io-uring? ( sys-libs/liburing:= )" +DEPEND="${RDEPEND}" + +all_ruby_prepare() { + sed -i -E 's/require_relative "(.+)"/require File.expand_path("\1")/g' "${RUBY_FAKEGEM_GEMSPEC}" || die + + # Avoid dependency on unpackaged covered package + rm -f config/sus.rb || die + + if ! use io-uring ; then + sed -i -e "s:have_library('uring'):have_library('idonotexist_uring'):" ext/extconf.rb || die + fi +} diff --git a/dev-ruby/io-event/metadata.xml b/dev-ruby/io-event/metadata.xml index 0962eb7f2192..7e76e28a1d14 100644 --- a/dev-ruby/io-event/metadata.xml +++ b/dev-ruby/io-event/metadata.xml @@ -5,6 +5,9 @@ <email>ruby@gentoo.org</email> <name>Gentoo Ruby Project</name> </maintainer> + <use> + <flag name="io-uring">Enable io_uring support, and use io_uring instead of epoll</flag> + </use> <upstream> <remote-id type="github">socketry/io-event</remote-id> </upstream> |