diff options
author | Hans de Graaff <graaff@gentoo.org> | 2024-12-16 07:12:35 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2024-12-16 07:19:32 +0100 |
commit | a44444aa96d0ce4cf1a713f3f0d2518166b100cd (patch) | |
tree | 9a326abb6fabf52602a4f937c34cb4380f9fc062 /dev-ruby | |
parent | dev-python/taskgroup: Bump to 0.2.1 (diff) | |
download | gentoo-a44444aa96d0ce4cf1a713f3f0d2518166b100cd.tar.gz gentoo-a44444aa96d0ce4cf1a713f3f0d2518166b100cd.tar.bz2 gentoo-a44444aa96d0ce4cf1a713f3f0d2518166b100cd.zip |
dev-ruby/io-event: add 1.7.5
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/io-event/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/io-event/io-event-1.7.5.ebuild | 36 |
2 files changed, 37 insertions, 0 deletions
diff --git a/dev-ruby/io-event/Manifest b/dev-ruby/io-event/Manifest index 30c9a04954cf..0660321d68f0 100644 --- a/dev-ruby/io-event/Manifest +++ b/dev-ruby/io-event/Manifest @@ -4,3 +4,4 @@ DIST io-event-1.6.5.tar.gz 51000 BLAKE2B 72720b03c87afd220c083098114f45dd4a523bf 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 DIST io-event-1.7.4.tar.gz 54690 BLAKE2B 3d001c04bfa2aade9a27bb67d4bafbedcbe50069c2cd3e8206240e791fc139e20de4564192e683a7ea223b0eb0c2bda3d66d68706b52e788a745e971cc028ffa SHA512 14d703fcc6858d7bf40b17b10c2dfeccdfbf33de098c3dd17f4164fe313e841c01574d384b0b9c3ebfca3c944042c81393d303522834f7037227b790c0b4b8c5 +DIST io-event-1.7.5.tar.gz 56413 BLAKE2B 69237d03574c6acfa592e1d9f0b01d83ba8b353c0d0756f2387e0cae4467a1707516d712920ef9ff1064b74ebe80afba8effaafc50fcc398dce5cbc5aa42c013 SHA512 9c2e759285646a3dda75cc13b3c4b568406643dae39cda00f0dc086d2095d2ce3d7cb803c053b6cc659853760d4fcbafe27f234ac329725f4ec977bf93a33a18 diff --git a/dev-ruby/io-event/io-event-1.7.5.ebuild b/dev-ruby/io-event/io-event-1.7.5.ebuild new file mode 100644 index 000000000000..54d45037491d --- /dev/null +++ b/dev-ruby/io-event/io-event-1.7.5.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 +} |