diff options
Diffstat (limited to 'dev-ruby/traces')
-rw-r--r-- | dev-ruby/traces/Manifest | 3 | ||||
-rw-r--r-- | dev-ruby/traces/metadata.xml | 11 | ||||
-rw-r--r-- | dev-ruby/traces/traces-0.11.1.ebuild | 30 |
3 files changed, 44 insertions, 0 deletions
diff --git a/dev-ruby/traces/Manifest b/dev-ruby/traces/Manifest new file mode 100644 index 000000000000..a60e58cf51d4 --- /dev/null +++ b/dev-ruby/traces/Manifest @@ -0,0 +1,3 @@ +DIST traces-0.11.1.tar.gz 13962 BLAKE2B 84530254322c811e8662c97b48316a7458ba31e472fd69ae680c9847dd78dd0413f2bcbf66afd5f48c3afe15cb6714dcc4735ca50a2133f0b540407f71af21e4 SHA512 518358f4b750d976fd2a57719ba9728aba9a8aed5446d8b2a6930ab75cc5dad2e8843cdbc17e6126d49f8be240ca40c6369c45d4b701289ea700c731368d93f5 +EBUILD traces-0.11.1.ebuild 827 BLAKE2B f23b7040859cd935e1102809485eae753906e8f169e16c175998cbc98e6074c13a939c0b53266cb2c882159bdef137e01697f657d75ad07789ee1d948c411658 SHA512 1ddb4727ee4b902daa714547ffe7ce566ae7e5ea45249d050847244049af5de2af22641dde467c0baa4cac9cf466b2c0d0d802fd79b6742053c7d140f0953c05 +MISC metadata.xml 342 BLAKE2B a63381737c0431986c911cc6b151617678c470e73ff604efc71356f978412e0bbe4d7eff06179c1915b04b20b62fab6a87fe04cdfe88865929664336604323c0 SHA512 a70a41f501959c60e7a23c4696ffab7a01069eedc9bbfa688902392aed996cf55191694afdad9255c2b6d8d6881c9dc18e78c210a1a2f73da3adec19d81e030f 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 +} |