diff options
Diffstat (limited to 'dev-ruby/async')
-rw-r--r-- | dev-ruby/async/Manifest | 5 | ||||
-rw-r--r-- | dev-ruby/async/async-1.30.3.ebuild | 40 | ||||
-rw-r--r-- | dev-ruby/async/async-2.1.0.ebuild | 40 | ||||
-rw-r--r-- | dev-ruby/async/metadata.xml | 11 |
4 files changed, 96 insertions, 0 deletions
diff --git a/dev-ruby/async/Manifest b/dev-ruby/async/Manifest new file mode 100644 index 000000000000..37e07817bd76 --- /dev/null +++ b/dev-ruby/async/Manifest @@ -0,0 +1,5 @@ +DIST async-1.30.3.tar.gz 92599 BLAKE2B 69db66676adf2dd0f77142bffc55b1e90a6983c53c7fac444f72b9365f6907e4d2ec45579ea267f3a8f31fc45af63c3517908c353749b288d1873e2cf720f96b SHA512 337a51ca8fd0e6685528e2eca9b584344ba583f7254f2600110ee62da6e4ccabeb471e7d94f36ab6f8d0eb3eada9e23335a262a50c8d035f67708fce0a590e5e +DIST async-2.1.0.tar.gz 75110 BLAKE2B 6226cd64f62d42a57d46f1c31287e403af5c645343a2de899a090f986e2b669dc96f1019629cf32ed46809fbfcbb5716375ef4560358676759dcad0e17d02849 SHA512 85f02004f7851757425f6e30c364ad9cb52ac4ad4559fa3a4a9b933fc5df1f10f6975233df6057da479dc28b5188d9e6d0b70e215a4a99b7864938260571089c +EBUILD async-1.30.3.ebuild 1167 BLAKE2B 70b6c57bd9e265ef7567bebcaac567db362ea298507c553e4538d463b903ae29982b388dda34a4b87810f93055db914afc7785a3bad216000d390bba1e19cf4f SHA512 ce75d8a5673b082e77c380b98c009bdeb072aca85b7aa1a2500e50eee7252647ceb74fe7d4f01e84ffc35f88ccc48133efd9dad446442a71c358ff9db30bbde5 +EBUILD async-2.1.0.ebuild 1043 BLAKE2B a6f3405645f902b9056cdba8e348b2e3b324bd77ada85e7d1ad055b8ac74fd7b32fb7f39f38c8194263091c68dce616dabf29cb1058c375745c0eebee8249bd9 SHA512 a7ebe894207e53747527918f738e93557829b1ebc6902b815106a012e5a254b87b80bcf950b15f0f4e1de78f77efc2e13230f53409d19ee3730ca7157f7e4270 +MISC metadata.xml 341 BLAKE2B acbe731aefbd211b23790c22ed97fbc1f83c45cf5ed786aa99fedafa5ca930081e71b3466584846f6e2f7a793da65c82bb4c9c85c15a669ebf5e7db47b74836f SHA512 d96626a4c34ef4981c11dcd07f51a9940d29b2bd8013868f3e5778d2f62a59bf3ca864a370a4d7951ca98079d6d5939d9aa9a4f4ed0233ec5f7fe544fa64fa26 diff --git a/dev-ruby/async/async-1.30.3.ebuild b/dev-ruby/async/async-1.30.3.ebuild new file mode 100644 index 000000000000..f4164212833c --- /dev/null +++ b/dev-ruby/async/async-1.30.3.ebuild @@ -0,0 +1,40 @@ +# 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="A concurrency framework for Ruby" +HOMEPAGE="https://github.com/socketry/async" +SRC_URI="https://github.com/socketry/async/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="$(ver_cut 1)/$(ver_cut 1-2)" +KEYWORDS="~amd64 ~sparc" +IUSE="" + +ruby_add_rdepend ">=dev-ruby/console-1.10:1 + >=dev-ruby/nio4r-2.3:2 + >=dev-ruby/timers-4.1:4" + +ruby_add_bdepend "test? ( + >=dev-ruby/async-rspec-1.1:1 + dev-ruby/benchmark-ips +)" + +all_ruby_prepare() { + sed -i -E 's/require_relative "(.+)"/require File.expand_path("\1")/g' "${RUBY_FAKEGEM_GEMSPEC}" || die + + # network tests + rm -f "spec/async/scheduler_spec.rb" "spec/async/scheduler/address_spec.rb" "spec/async/scheduler/io_spec.rb" || die + + # broken on ruby 3.x + rm -f "spec/async/condition_spec.rb" "spec/async/notification_spec.rb" || die + + sed -i -E 's/require '"'"'covered\/rspec'"'"'//g' "spec/spec_helper.rb" || die +} diff --git a/dev-ruby/async/async-2.1.0.ebuild b/dev-ruby/async/async-2.1.0.ebuild new file mode 100644 index 000000000000..07e5ba91db6c --- /dev/null +++ b/dev-ruby/async/async-2.1.0.ebuild @@ -0,0 +1,40 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby31" +RUBY_FAKEGEM_RECIPE_TEST="rspec3" +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/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="$(ver_cut 1)" +KEYWORDS="~amd64 ~sparc" +IUSE="" + +ruby_add_rdepend ">=dev-ruby/console-1.10:1 + >=dev-ruby/io-event-1.0.0:1/1.0 + >=dev-ruby/timers-4.1:4" + +ruby_add_bdepend "test? ( + >=dev-ruby/async-rspec-1.1:1 + dev-ruby/benchmark-ips +)" + +all_ruby_prepare() { + sed -i -E 's/require_relative "(.+)"/require File.expand_path("\1")/g' "${RUBY_FAKEGEM_GEMSPEC}" || die + + # network tests + rm -f \ + "spec/net/http_spec.rb" \ + "spec/async/scheduler/address_spec.rb" \ + "spec/async/scheduler/io_spec.rb" || die + + sed -i -E 's/require '"'"'covered\/rspec'"'"'//g' "spec/spec_helper.rb" || die +} diff --git a/dev-ruby/async/metadata.xml b/dev-ruby/async/metadata.xml new file mode 100644 index 000000000000..c7864b34a68a --- /dev/null +++ b/dev-ruby/async/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/async</remote-id> + </upstream> +</pkgmetadata> |