summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2023-12-04 08:19:13 +0100
committerHans de Graaff <graaff@gentoo.org>2023-12-04 08:19:13 +0100
commit42d7504600051f1b80989396a7d70b68b8345fca (patch)
tree12b0d29a56b33c5d5976a1f0828d7234ebb583e7 /dev-ruby/sus-fixtures-async
parentdev-python/importlib-metadata: Bump to 7.0.0 (diff)
downloadgentoo-42d7504600051f1b80989396a7d70b68b8345fca.tar.gz
gentoo-42d7504600051f1b80989396a7d70b68b8345fca.tar.bz2
gentoo-42d7504600051f1b80989396a7d70b68b8345fca.zip
dev-ruby/sus-fixtures-async: add 0.1.3
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/sus-fixtures-async')
-rw-r--r--dev-ruby/sus-fixtures-async/Manifest1
-rw-r--r--dev-ruby/sus-fixtures-async/sus-fixtures-async-0.1.3.ebuild37
2 files changed, 38 insertions, 0 deletions
diff --git a/dev-ruby/sus-fixtures-async/Manifest b/dev-ruby/sus-fixtures-async/Manifest
index 1d8ee670cd1a..0f5d8096744a 100644
--- a/dev-ruby/sus-fixtures-async/Manifest
+++ b/dev-ruby/sus-fixtures-async/Manifest
@@ -1,2 +1,3 @@
DIST sus-fixtures-async-0.1.1.tar.gz 5017 BLAKE2B f293d9fe336b05e510a82c4337250f48b871eab8c38b7d9587a6402d19689197eb6a2b1f7f14e7b5823246b6f14d104e7e49f14f84a980392dd545543ffcd733 SHA512 cca073491d143b0ceaff34ada08d416ea43a035bc887c6dec02f62372724d891f47e9dfa8d749f6e485e7d14da8c395dc67185ed0a91d9ea0eb5466d3164c378
DIST sus-fixtures-async-0.1.2.tar.gz 4988 BLAKE2B da9bfec59489ad1a2fdf0e86a75083e36826d0bb73d6fd482bdae0e842421c59db943669eb101ed4488f963130c387e4b5eed88b4388b4b4ea19cefd2ab1b9db SHA512 effc602b6ea4b3ed56fe9c578a621195ef19cc6e7e858fa06b4a9ecfbc1d27db6b302a7f6567d8b711165eff3ab0f750971eef0c02262855ee35b9eaf4448c1e
+DIST sus-fixtures-async-0.1.3.tar.gz 4991 BLAKE2B a2e8d5ff1974e0f69d7f821194fa1386efc8fc1e4592c97da99863f32d0d6002c9659ec2e8341d64e13a388807c16b0b816170c60d4f1efa985a58cf7baa58bb SHA512 1361de64829f242bcef47fc152e7a18e4b261ad5ed54be7a83111781b6f9ed196385303387f155a02a7628a91c7560654dc0c1c214419a7256133ce559627dbc
diff --git a/dev-ruby/sus-fixtures-async/sus-fixtures-async-0.1.3.ebuild b/dev-ruby/sus-fixtures-async/sus-fixtures-async-0.1.3.ebuild
new file mode 100644
index 000000000000..1e28b846551a
--- /dev/null
+++ b/dev-ruby/sus-fixtures-async/sus-fixtures-async-0.1.3.ebuild
@@ -0,0 +1,37 @@
+# Copyright 2022-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby31 ruby32"
+
+RUBY_FAKEGEM_EXTRADOC="readme.md"
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+RUBY_FAKEGEM_RECIPE_TEST="sus"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Convenient fixture for testing async components in a reactor"
+HOMEPAGE="https://github.com/socketry/sus-fixtures-async"
+SRC_URI="https://github.com/socketry/sus-fixtures-async/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86"
+
+ruby_add_rdepend "
+ dev-ruby/async
+ >=dev-ruby/sus-0.10:0
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.1.1-tests-require.patch
+)
+
+all_ruby_prepare() {
+ sed -i -E 's/require_relative "(.+)"/require File.expand_path("\1")/g' "${RUBY_FAKEGEM_GEMSPEC}" || die
+
+ # Remove the sus configuration which enabled coverage checks.
+ # Its dependency is not packaged.
+ rm -f config/sus.rb || die
+}