summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2024-07-13 07:58:32 +0200
committerHans de Graaff <graaff@gentoo.org>2024-07-13 08:09:08 +0200
commit52d230b67e96c6b6955264a153ccc73c3f5eae4f (patch)
treea0a2c87169e4f7ead9428880e30029d24a8bd9b9 /dev-ruby
parentgui-wm/tinywl: Update Homepage (diff)
downloadgentoo-52d230b67e96c6b6955264a153ccc73c3f5eae4f.tar.gz
gentoo-52d230b67e96c6b6955264a153ccc73c3f5eae4f.tar.bz2
gentoo-52d230b67e96c6b6955264a153ccc73c3f5eae4f.zip
dev-ruby/traces: new package, add 0.11.1
Dependency for forthcoming dev-ruby/async-http. Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/traces/Manifest1
-rw-r--r--dev-ruby/traces/metadata.xml11
-rw-r--r--dev-ruby/traces/traces-0.11.1.ebuild30
3 files changed, 42 insertions, 0 deletions
diff --git a/dev-ruby/traces/Manifest b/dev-ruby/traces/Manifest
new file mode 100644
index 000000000000..b4e228ed7c18
--- /dev/null
+++ b/dev-ruby/traces/Manifest
@@ -0,0 +1 @@
+DIST traces-0.11.1.tar.gz 13962 BLAKE2B 84530254322c811e8662c97b48316a7458ba31e472fd69ae680c9847dd78dd0413f2bcbf66afd5f48c3afe15cb6714dcc4735ca50a2133f0b540407f71af21e4 SHA512 518358f4b750d976fd2a57719ba9728aba9a8aed5446d8b2a6930ab75cc5dad2e8843cdbc17e6126d49f8be240ca40c6369c45d4b701289ea700c731368d93f5
diff --git a/dev-ruby/traces/metadata.xml b/dev-ruby/traces/metadata.xml
new file mode 100644
index 000000000000..bc8606c8af6b
--- /dev/null
+++ b/dev-ruby/traces/metadata.xml
@@ -0,0 +1,11 @@
+<?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/traces</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-ruby/traces/traces-0.11.1.ebuild b/dev-ruby/traces/traces-0.11.1.ebuild
new file mode 100644
index 000000000000..d86d3a2c9342
--- /dev/null
+++ b/dev-ruby/traces/traces-0.11.1.ebuild
@@ -0,0 +1,30 @@
+# 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_RECIPE_TEST="sus"
+RUBY_FAKEGEM_EXTRADOC="readme.md"
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Application instrumentation and tracing"
+HOMEPAGE="https://github.com/socketry/traces"
+SRC_URI="https://github.com/socketry/traces/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="$(ver_cut 1)"
+KEYWORDS="~amd64"
+
+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
+}