summaryrefslogtreecommitdiff
path: root/dev-ruby
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2025-04-21 18:44:02 +0200
committerHans de Graaff <graaff@gentoo.org>2025-04-21 18:58:11 +0200
commit96829d662f50ec4b20280bcce938203154ec1b9b (patch)
tree352ca27cf14df1d66967e4c41a08ace2413f2bd4 /dev-ruby
parent11516bcf494a960fa900ed90da33eb5987ba99f4 (diff)
downloadgentoo-96829d662f50ec4b20280bcce938203154ec1b9b.tar.gz
gentoo-96829d662f50ec4b20280bcce938203154ec1b9b.tar.bz2
gentoo-96829d662f50ec4b20280bcce938203154ec1b9b.zip
dev-ruby/io-endpoint: new package, add 0.15.2
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/io-endpoint/Manifest1
-rw-r--r--dev-ruby/io-endpoint/io-endpoint-0.15.2.ebuild36
-rw-r--r--dev-ruby/io-endpoint/metadata.xml12
3 files changed, 49 insertions, 0 deletions
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>ruby@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>