From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 61EAB15806E for ; Sat, 20 May 2023 09:21:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4A127E083E; Sat, 20 May 2023 09:21:16 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 17BF4E0819 for ; Sat, 20 May 2023 09:21:16 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 02449340EAD for ; Sat, 20 May 2023 09:21:15 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 43832A75 for ; Sat, 20 May 2023 09:21:13 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1684574444.a4e9c8e8cb361c94db3d6d96f2c5a5ec37334105.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/io-event/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/io-event/Manifest dev-ruby/io-event/io-event-1.2.2.ebuild dev-ruby/io-event/metadata.xml X-VCS-Directories: dev-ruby/io-event/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: a4e9c8e8cb361c94db3d6d96f2c5a5ec37334105 X-VCS-Branch: master Date: Sat, 20 May 2023 09:21:13 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4406a9c8-557a-4954-beb2-e9ff6f2b9323 X-Archives-Hash: 9b3f7403eb7d59bcd4da9d20fdd35c3d commit: a4e9c8e8cb361c94db3d6d96f2c5a5ec37334105 Author: Sam James gentoo org> AuthorDate: Sat May 20 09:07:12 2023 +0000 Commit: Sam James gentoo org> CommitDate: Sat May 20 09:20:44 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a4e9c8e8 dev-ruby/io-event: add 1.2.2 Signed-off-by: Sam James gentoo.org> dev-ruby/io-event/Manifest | 1 + dev-ruby/io-event/io-event-1.2.2.ebuild | 36 +++++++++++++++++++++++++++++++++ dev-ruby/io-event/metadata.xml | 3 +++ 3 files changed, 40 insertions(+) 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 @@ ruby@gentoo.org Gentoo Ruby Project + + Enable io_uring support, and use io_uring instead of epoll + socketry/io-event