diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-08-09 09:29:40 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-08-09 09:29:40 +0100 |
commit | 6e9fa3a4a14685a33fc9182895e5529c293bae2e (patch) | |
tree | 8a9be21a286aa4d45a2169e1d77a8d7defc17847 /dev-ruby/async/async-2.6.3.ebuild | |
parent | 0b39c3b03f13c084074099704a673640904e5249 (diff) |
gentoo auto-resync : 09:08:2023 - 09:29:39
Diffstat (limited to 'dev-ruby/async/async-2.6.3.ebuild')
-rw-r--r-- | dev-ruby/async/async-2.6.3.ebuild | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/dev-ruby/async/async-2.6.3.ebuild b/dev-ruby/async/async-2.6.3.ebuild new file mode 100644 index 000000000000..cf1aa582c9f9 --- /dev/null +++ b/dev-ruby/async/async-2.6.3.ebuild @@ -0,0 +1,46 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# It really is >=ruby31 only, see: +# https://github.com/socketry/async/issues/141 +# https://github.com/socketry/async/issues/136 +USE_RUBY="ruby31 ruby32" + +RUBY_FAKEGEM_RECIPE_TEST="sus" +RUBY_FAKEGEM_EXTRADOC="readme.md" +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="A concurrency framework for Ruby" +HOMEPAGE="https://github.com/socketry/async" +SRC_URI="https://github.com/socketry/async/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="$(ver_cut 1)" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86" + +ruby_add_rdepend " + >=dev-ruby/console-1.10:1 + dev-ruby/fiber-annotation + dev-ruby/io-event:1.1 + >=dev-ruby/timers-4.1:4 +" + +ruby_add_bdepend "test? ( + dev-ruby/benchmark-ips + dev-ruby/sus-fixtures-async +)" + +all_ruby_prepare() { + sed -i -E 's/require_relative "(.+)"/require File.expand_path("\1")/g' "${RUBY_FAKEGEM_GEMSPEC}" || die + + # network tests + rm test/net/http.rb \ + test/async/scheduler/address.rb \ + test/async/scheduler/io.rb || die + + sed -i -e '/covered/Id' config/sus.rb || die +} |