commit: 15d730aaa3e70ebced40e6db713b6a80550c517a Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> AuthorDate: Fri Nov 8 07:47:32 2024 +0000 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> CommitDate: Fri Nov 8 07:47:32 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15d730aa
dev-ruby/io-event: add 1.7.3 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> dev-ruby/io-event/Manifest | 1 + dev-ruby/io-event/io-event-1.7.3.ebuild | 36 +++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) diff --git a/dev-ruby/io-event/Manifest b/dev-ruby/io-event/Manifest index ee689874f629..1d2308a03bf7 100644 --- a/dev-ruby/io-event/Manifest +++ b/dev-ruby/io-event/Manifest @@ -4,3 +4,4 @@ DIST io-event-1.3.3.tar.gz 46284 BLAKE2B f2d6fe2a1eb3c1d0f26097847b9b0d464fa274d DIST io-event-1.5.1.tar.gz 47618 BLAKE2B 239beebca88dac137ab826df0da9f4c7a0b910a9401e46a542dd73a151009ca6d3b0d94584421a039e693e1f5e3f40e37fa98611ff8f603dc5d4bd30bc0788e3 SHA512 71f343ffdcabde14f1737574e66c198934cdf5c88db0c9dc58106da588a7156d4b36cd2a3bd0552758468bcd78c8ee3ae1d59eb0432f7e66f57e3d9dfe75fa3d DIST io-event-1.6.5.tar.gz 51000 BLAKE2B 72720b03c87afd220c083098114f45dd4a523bfd3145e8988644ad1112c52ba0eafc8082c3ca23f54253921ceb96d544097722c3585390f7793fb2bb58ead20b SHA512 fd8a6b9a8a2952a2114a325a630b8cc0455679c4538901573be8dd0d342389872d5ec613c70138155f996c11d550b58003a71bee75cfec599db51812e03ec042 DIST io-event-1.6.7.tar.gz 52366 BLAKE2B 32eec78a33d145c3bb1b0623a103bfdac269eeabdfc3a190f3010b2790a4999425af365c1a176f8cfb65ad5e7b4fcbb25fcdc646e63c68eb55e315aabb4c5e82 SHA512 070c24f4f62476245a9c997fa28f7615900165f2110a3a37c6af81d5ce46298e446ddf30d1b0ec68d691006828da8336e3ed3e01f701dd71b0bedaa33605af4f +DIST io-event-1.7.3.tar.gz 54709 BLAKE2B ba0abb3fadcd4e297379144d3efe2311684957168aef150c10af24791889c659f744aa490b3525de5124915960a3426ffaa98a04b562230c00f4896341d4cf2b SHA512 9393cf223f2a020b06da0cd7f160816fb7e8294a29075d7cc68441723c8b19f025e42f15a5e42bf9af01b3eb6b4dadab8dd4461fc69c932639a9bf1e522c5b9e diff --git a/dev-ruby/io-event/io-event-1.7.3.ebuild b/dev-ruby/io-event/io-event-1.7.3.ebuild new file mode 100644 index 000000000000..54d45037491d --- /dev/null +++ b/dev-ruby/io-event/io-event-1.7.3.ebuild @@ -0,0 +1,36 @@ +# Copyright 2022-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/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)" +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 +}