summaryrefslogtreecommitdiff
path: root/dev-ruby/async-rspec
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-06-19 07:50:17 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-06-19 07:50:17 +0100
commit262a170a603cee433f640577f13472ab41a5d3aa (patch)
treec8cd6d9417b8a1f2275883279d2ceaedba7207f3 /dev-ruby/async-rspec
parent37cd441738bc6681ca075c01b6dd06056a27abbf (diff)
gentoo auto-resync : 19:06:2023 - 07:50:17
Diffstat (limited to 'dev-ruby/async-rspec')
-rw-r--r--dev-ruby/async-rspec/Manifest2
-rw-r--r--dev-ruby/async-rspec/async-rspec-1.17.0.ebuild38
2 files changed, 40 insertions, 0 deletions
diff --git a/dev-ruby/async-rspec/Manifest b/dev-ruby/async-rspec/Manifest
index c6f1cf87a516..ab77865b7800 100644
--- a/dev-ruby/async-rspec/Manifest
+++ b/dev-ruby/async-rspec/Manifest
@@ -1,4 +1,6 @@
DIST async-rspec-1.16.1.tar.gz 7775 BLAKE2B a1ff314fbe3e42b9b25e1c891bf1a336644fa5183b6f504b06e0747c127e712a66a0fbb2f18695bd7cba91ec8a4e8af887a25fe3e9887f86fb5f17873e26f51f SHA512 5c2bc5cf5ff4ca25cad67e251b5e078ac9f6f2d0f5d50f67584d4a043040c4e9e9e51d3a9e2727f08de3eba39d46be66461e691af8b86e173d8b70b589161a29
+DIST async-rspec-1.17.0.tar.gz 9536 BLAKE2B a2beeca8b6399f47faef35eaad70255cfd3ef0e691d40c20389b4683e179172694b6c8b93bd786e4032171f7000f3f77da46f6a1e73a3abacd64f3a2a6e84b24 SHA512 50cc0390aa8c636c7964de07a9dec9c8e6ed72562b93ddd0e1e9e0af0b58e9b198bfd8e709f84e9ea1b58268d00ad26c85bdacb920cf5c81597d4011751c7507
EBUILD async-rspec-1.16.1-r1.ebuild 972 BLAKE2B bd755f4b1dbf8608597493041ef87efa3b77ba11623e6e164d30de48c912444dbd2a07a02ffba200c250ec645ca87092f7fce09301fd2b34894fa2303d90491b SHA512 8b0bae2a1fd9a5b712488ce934452e0649bf07dfe43813a59ac06ab0c67421cb44cdeec30828c352fdd4ad27b808b821b46cefacb489add52452a04b3dcf8f12
EBUILD async-rspec-1.16.1.ebuild 947 BLAKE2B 9c12d18f0df2a63c4e11d64bbf521f245fa953a2a0a3b7b21c0f0d4cea14c240703dbe4f404ada307394b7e1662779fbb03e9b2f51b9016cd701b95b07f0a5f7 SHA512 3d1452b609677bbf7467f3c6f1384cd7a5130cb2c3cdafb1c9d0f96b8263733c3e8eed23df6b9cc32b9391249a5423c96fa340a434be23f9f17c5cdc8517f28e
+EBUILD async-rspec-1.17.0.ebuild 965 BLAKE2B b0c155093a7686c8bd434109e11c2d658a8efe707191f295094b0f4e05d5690b03c0ccd393b3307918035996cabd2d0200d99e2e70d8419ee3363165b860e497 SHA512 99197fc1b053019eaf2a7be0c3aea0d03b1bba4795564306aaaf137d2c9f05ff84128fe77ada2795237c0a812fc710941f98869b5d6d2f66e9e59850728f887c
MISC metadata.xml 347 BLAKE2B d18d791313af87bcb00267fa7886d513738c127ca281e4e3f2eca2d3a345748097016ee229ea663efae9980d5fee97d27b800923021e682a9a9bb28bd031c0a5 SHA512 6396202046253385c58f6b5d1762800d596027e1d7ad7e95d69695023dacffa0bd32f2d0efa396fafd5e65bafd55376018f27e127752d5109f537339ac06584f
diff --git a/dev-ruby/async-rspec/async-rspec-1.17.0.ebuild b/dev-ruby/async-rspec/async-rspec-1.17.0.ebuild
new file mode 100644
index 000000000000..c077385d7f0b
--- /dev/null
+++ b/dev-ruby/async-rspec/async-rspec-1.17.0.ebuild
@@ -0,0 +1,38 @@
+# Copyright 2022-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby30 ruby31 ruby32"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+RUBY_FAKEGEM_EXTRADOC="readme.md"
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Helpers for writing specs against the async gem"
+HOMEPAGE="https://github.com/socketry/async-rspec"
+SRC_URI="https://github.com/socketry/async-rspec/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="$(ver_cut 1)"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE=""
+
+ruby_add_rdepend "dev-ruby/rspec:3
+ dev-ruby/rspec-files:1
+ dev-ruby/rspec-memory:1
+"
+
+ruby_add_bdepend "test? (
+ dev-ruby/async
+ dev-ruby/async-io
+)"
+
+all_ruby_prepare() {
+ sed -i -E 's/require_relative "(.+)"/require File.expand_path("\1")/g' "${RUBY_FAKEGEM_GEMSPEC}" || die
+
+ # Avoid dependency on unpackaged covered
+ sed -i -e '/covered/ s:^:#:' spec/spec_helper.rb || die
+}