diff options
Diffstat (limited to 'dev-ruby/fiber-local')
-rw-r--r-- | dev-ruby/fiber-local/Manifest | 3 | ||||
-rw-r--r-- | dev-ruby/fiber-local/fiber-local-1.0.0.ebuild | 25 | ||||
-rw-r--r-- | dev-ruby/fiber-local/metadata.xml | 11 |
3 files changed, 39 insertions, 0 deletions
diff --git a/dev-ruby/fiber-local/Manifest b/dev-ruby/fiber-local/Manifest new file mode 100644 index 000000000000..6660946ae682 --- /dev/null +++ b/dev-ruby/fiber-local/Manifest @@ -0,0 +1,3 @@ +DIST fiber-local-1.0.0.tar.gz 3780 BLAKE2B 5360ebdc2f3958863742e5ca1e1cdefe76e4487bad2257a1bd34a8a6769b1191e1a8f0ba8c7dfe1481f73fdd8b9ee1a014b11e5527273dbb0ee6d8a94edae2ae SHA512 5f77213c3760bb7c23a6912f138e46aa54d8508c11d02dadde5ddbc4ab03976abccb37ad2b1b43b118eddfb7a5e8ca4ee647a7fea1bac5ee4d7b39e8dc8f8424 +EBUILD fiber-local-1.0.0.ebuild 812 BLAKE2B 64b974c15f532d1b87b4624cc02b7ac16cefe675478c5cfcd78a567580f871cc39956e56db645e21f455abe3b54e738442c3800f8a976186a91302236ffdd2f2 SHA512 1ea290e9ee793b1939a0e0589a34fb5b906fda0bd2d161430198bd56dbec4189e570b0409df52ce33fdfacfb0c7d5d7b7246f05bcfc6f5b8046e88791f5f395a +MISC metadata.xml 347 BLAKE2B 9f0304d50cdc6ea863767d44adf04062376a06e06e6d8c8e486ecd1fcce2e66133d883e991a9978c691a0942d43f2f009236f3ac949556274bf4bad101812ccc SHA512 ec53de01e6c327d2dd81117f12ccfd0f37bf9aba3b35e346c14bdf7c303e63ea935e9bc489398bd677a5ece070f19bfc5bf86f250acc9050abb64d0df1c6ce6b diff --git a/dev-ruby/fiber-local/fiber-local-1.0.0.ebuild b/dev-ruby/fiber-local/fiber-local-1.0.0.ebuild new file mode 100644 index 000000000000..ad2959e09769 --- /dev/null +++ b/dev-ruby/fiber-local/fiber-local-1.0.0.ebuild @@ -0,0 +1,25 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby26 ruby27 ruby30 ruby31" +RUBY_FAKEGEM_RECIPE_TEST="rspec3" +RUBY_FAKEGEM_EXTRADOC="README.md" +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" +inherit ruby-fakegem + +DESCRIPTION="Provides a class-level mixin to make fiber local state easy" +HOMEPAGE="https://github.com/socketry/fiber-local" +SRC_URI="https://github.com/socketry/fiber-local/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="$(ver_cut 1)/$(ver_cut 1-2)" +KEYWORDS="~amd64 ~sparc" +IUSE="" + +all_ruby_prepare() { + sed -i -E 's/require_relative "(.+)"/require File.expand_path("\1")/g' "${RUBY_FAKEGEM_GEMSPEC}" || die + rm -f "gems.rb" || die + sed -i -E 's/require '"'"'covered\/rspec'"'"'//g' "spec/spec_helper.rb" || die +} diff --git a/dev-ruby/fiber-local/metadata.xml b/dev-ruby/fiber-local/metadata.xml new file mode 100644 index 000000000000..cbcf3060e8d9 --- /dev/null +++ b/dev-ruby/fiber-local/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/fiber-local</remote-id> + </upstream> +</pkgmetadata> |