diff options
author | matoro <matoro@users.noreply.github.com> | 2022-06-15 00:26:13 -0400 |
---|---|---|
committer | Matt Turner <mattst88@gentoo.org> | 2022-10-22 17:33:10 -0400 |
commit | e1503e21f5fb8678c0061818fff9dcfb2764f213 (patch) | |
tree | ab7348d655f9f9aced033ceddb3f2cf25a848519 /dev-ruby/async | |
parent | dev-ruby/async-rspec: new package, add 1.16.1 (diff) | |
download | gentoo-e1503e21f5fb8678c0061818fff9dcfb2764f213.tar.gz gentoo-e1503e21f5fb8678c0061818fff9dcfb2764f213.tar.bz2 gentoo-e1503e21f5fb8678c0061818fff9dcfb2764f213.zip |
dev-ruby/async: new package, add 1.30.1 and 2.0.2
Signed-off-by: matoro <matoro@users.noreply.github.com>
Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'dev-ruby/async')
-rw-r--r-- | dev-ruby/async/Manifest | 2 | ||||
-rw-r--r-- | dev-ruby/async/async-1.30.1.ebuild | 40 | ||||
-rw-r--r-- | dev-ruby/async/async-2.0.2.ebuild | 38 | ||||
-rw-r--r-- | dev-ruby/async/metadata.xml | 11 |
4 files changed, 91 insertions, 0 deletions
diff --git a/dev-ruby/async/Manifest b/dev-ruby/async/Manifest new file mode 100644 index 000000000000..b40e37a1e13b --- /dev/null +++ b/dev-ruby/async/Manifest @@ -0,0 +1,2 @@ +DIST async-1.30.1.tar.gz 91919 BLAKE2B f2a39faef8159b1ac880835c35cec73be78a5f3e2d46dc8d06cca10668e15f5694a10f115d6488ad644cef515d45398e98e1ea2b5d732ca732b32abb34830eba SHA512 8a698dab8e41164ef3999aa1dddfd4089075ffbdaf6079852c86f95e0a915ae6550e0a03bcbdf84badde9edb1b2400c702cee9766b9fa39f115fb46c7f5dcb85 +DIST async-2.0.2.tar.gz 72169 BLAKE2B a7e3b964e69b5cdbcf5b55023c3023f0a53145a08ddddf30c3760ef8830cbab2b674381e6cd1f1d360b081af196e08d4fe881be3ddd9869021c644e9b20f9cfb SHA512 8e7630f115c166c17d6cd04c10aeeac5dd6e033d5c84039843cf3aa9d4b0d7b33210773534cc05b6af9eaa5daab823ae998fd7dce4754ce7f7967382fcf4142f diff --git a/dev-ruby/async/async-1.30.1.ebuild b/dev-ruby/async/async-1.30.1.ebuild new file mode 100644 index 000000000000..5108e6b2e464 --- /dev/null +++ b/dev-ruby/async/async-1.30.1.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/df26f47f64c91c13155c5b6529194b0fe48f8c17.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.0.2.ebuild b/dev-ruby/async/async-2.0.2.ebuild new file mode 100644 index 000000000000..5f34b240f833 --- /dev/null +++ b/dev-ruby/async/async-2.0.2.ebuild @@ -0,0 +1,38 @@ +# 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/df26f47f64c91c13155c5b6529194b0fe48f8c17.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="$(ver_cut 1)" +KEYWORDS="~amd64 ~sparc" +IUSE="" +RUBY_S="${PN}-df26f47f64c91c13155c5b6529194b0fe48f8c17" + +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/async/scheduler_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> |