commit:     26d8d46badf6fa92e273fb4a17e816dc7ec660bc
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 29 04:56:31 2020 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sat Aug 29 04:56:45 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26d8d46b

dev-ruby/concurrent-ruby: add 1.1.7

Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 dev-ruby/concurrent-ruby/Manifest                  |  1 +
 .../concurrent-ruby/concurrent-ruby-1.1.7.ebuild   | 38 ++++++++++++++++++++++
 2 files changed, 39 insertions(+)

diff --git a/dev-ruby/concurrent-ruby/Manifest 
b/dev-ruby/concurrent-ruby/Manifest
index d5a606d9410..9312abeb84e 100644
--- a/dev-ruby/concurrent-ruby/Manifest
+++ b/dev-ruby/concurrent-ruby/Manifest
@@ -1 +1,2 @@
 DIST concurrent-ruby-1.0.5.tar.gz 1307802 BLAKE2B 
2eee2afdd33e2609608e9389847de380eb895c2193746b1190ea96ca8bb67eaccd8d141bc2071006afbd971f078e5b6452d1e62624892c0fce2c12b8ac9fa28b
 SHA512 
fdf7324b56bb37b4a79dc89882354e452ee838a097f522fb906c20a06856303cfbbae16f2500255cbfb4bba33ee1b3b3ee8facf3d0156e976add64209e349da6
+DIST concurrent-ruby-1.1.7.tar.gz 4370284 BLAKE2B 
ea9120fa6c0c58d758c71d54a7a1371a2a94987141343be92e5d8150167d774b513003bc945b7a54dbae8ef1f15b371f6ec28e6e84828d653fdad5b6b58c63e1
 SHA512 
2af2f1236850666ef56f6024db3b094051de88bb0495b902f5be9471ded733e998b2845aacba2ff8b166d5097fccd597203502ce58766017cb67c529c2840d29

diff --git a/dev-ruby/concurrent-ruby/concurrent-ruby-1.1.7.ebuild 
b/dev-ruby/concurrent-ruby/concurrent-ruby-1.1.7.ebuild
new file mode 100644
index 00000000000..2b5e4b9e136
--- /dev/null
+++ b/dev-ruby/concurrent-ruby/concurrent-ruby-1.1.7.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+USE_RUBY="ruby25 ruby26 ruby27"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+
+RUBY_FAKEGEM_RECIPE_DOC=""
+
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Modern concurrency tools including agents, futures, promises, 
thread pools, more"
+HOMEPAGE="https://github.com/ruby-concurrency/concurrent-ruby";
+SRC_URI="https://github.com/ruby-concurrency/concurrent-ruby/archive/v${PV}.tar.gz
 -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="1"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux 
~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris 
~x64-solaris ~x86-solaris"
+IUSE=""
+
+ruby_add_bdepend "test? ( >=dev-ruby/timecop-0.7.4 )"
+
+all_ruby_prepare() {
+       # Remove edge files as defined in support/file_map.rb
+       rm -rf 
spec/concurrent/{actor,cancellation,channel,edge,lazy_register,promises,throttle}*
 || die
+       rm -r spec/concurrent/executor/wrapping_executor_spec.rb || die
+       sed -i -e '/concurrent-edge/ s:^:#:' spec/spec_helper.rb || die
+       sed -i -e 's:lib-edge:lib/concurrent-ruby:' .rspec || die
+       sed -i -e 's:../../../::' spec/concurrent/executor/executor_quits.rb || 
die
+
+       # Remove specs for the ext gem
+       rm -rf spec/concurrent/atomic || die
+
+       sed -i 's/git ls-files/find . -print/' ${RUBY_FAKEGEM_GEMSPEC} || die
+}

Reply via email to