commit:     96829d662f50ec4b20280bcce938203154ec1b9b
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 21 16:44:02 2025 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Mon Apr 21 16:58:11 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=96829d66

dev-ruby/io-endpoint: new package, add 0.15.2

Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 dev-ruby/io-endpoint/Manifest                  |  1 +
 dev-ruby/io-endpoint/io-endpoint-0.15.2.ebuild | 36 ++++++++++++++++++++++++++
 dev-ruby/io-endpoint/metadata.xml              | 12 +++++++++
 3 files changed, 49 insertions(+)

diff --git a/dev-ruby/io-endpoint/Manifest b/dev-ruby/io-endpoint/Manifest
new file mode 100644
index 000000000000..370b5ecf3df9
--- /dev/null
+++ b/dev-ruby/io-endpoint/Manifest
@@ -0,0 +1 @@
+DIST io-endpoint-0.15.2.tar.gz 15357 BLAKE2B 
e5444a5c4b5bc9b559d1a81774d6b610bd33de2f64be0b2ea1e2e2338a47f65f8829c0d8c5a4fa22215c7c2e75f862af7818295008bd923721d8153735e3dacf
 SHA512 
50d37fa51b585f962c9485aed1f8cf167ca815ea82f7a06f287c8d059d05b2cd8e49806be5ad59074ea79dcb337dc65039abf3dadc9ebdb03853937191c49ae0

diff --git a/dev-ruby/io-endpoint/io-endpoint-0.15.2.ebuild 
b/dev-ruby/io-endpoint/io-endpoint-0.15.2.ebuild
new file mode 100644
index 000000000000..6b1a2f788144
--- /dev/null
+++ b/dev-ruby/io-endpoint/io-endpoint-0.15.2.ebuild
@@ -0,0 +1,36 @@
+# Copyright 2022-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby32 ruby33"
+
+RUBY_FAKEGEM_RECIPE_TEST="sus"
+RUBY_FAKEGEM_EXTRADOC="readme.md"
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Provides a separation of concerns interface for IO endpoints"
+HOMEPAGE="https://github.com/socketry/io-endpoint";
+SRC_URI="https://github.com/socketry/io-endpoint/archive/refs/tags/v${PV}.tar.gz
 -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="$(ver_cut 1)"
+KEYWORDS="~amd64"
+IUSE="test"
+
+ruby_add_bdepend "test? (
+       dev-ruby/sus-fixtures-async
+       dev-ruby/sus-fixtures-openssl
+)"
+
+all_ruby_prepare() {
+       sed -i -E 's/require_relative "(.+)"/require File.expand_path("\1")/g' 
"${RUBY_FAKEGEM_GEMSPEC}" || die
+
+       sed -e '/covered/I s:^:#:' -i config/sus.rb || die
+
+       # Avoid tests that require unpackaged "bake" and require running
+       # with Bundler.
+       rm -f test/traces/backend/capture.rb || die
+}

diff --git a/dev-ruby/io-endpoint/metadata.xml 
b/dev-ruby/io-endpoint/metadata.xml
new file mode 100644
index 000000000000..d061c6117c26
--- /dev/null
+++ b/dev-ruby/io-endpoint/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+  <maintainer type="project">
+    <email>r...@gentoo.org</email>
+    <name>Gentoo Ruby Project</name>
+  </maintainer>
+  <upstream>
+    <remote-id type="github">socketry/io-endpoint</remote-id>
+    <remote-id type="rubygems">io-endpoint</remote-id>
+  </upstream>
+</pkgmetadata>

Reply via email to