1 |
commit: 62ae8fc4970dc530221b979dc6c3153b62c38888 |
2 |
Author: Hans de Graaff <hans <AT> degraaff <DOT> org> |
3 |
AuthorDate: Wed Apr 27 05:51:54 2016 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 27 05:51:54 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/dev/graaff.git/commit/?id=62ae8fc4 |
7 |
|
8 |
dev-ruby/parallel: add 1.2.4 |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
|
12 |
dev-ruby/parallel/Manifest | 1 + |
13 |
dev-ruby/parallel/parallel-1.2.4.ebuild | 44 +++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 45 insertions(+) |
15 |
|
16 |
diff --git a/dev-ruby/parallel/Manifest b/dev-ruby/parallel/Manifest |
17 |
index ec798ed..dc804b7 100644 |
18 |
--- a/dev-ruby/parallel/Manifest |
19 |
+++ b/dev-ruby/parallel/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST parallel-1.2.2.tar.gz 14225 SHA256 ca6894a0d9c2b96add7ac9df5fa4c7dd0c1772f6c434a5e3b496f47a136345a5 SHA512 8db28f732af1418dff73cd0b5be022ae257bce8a5b1a02c9fefa1d1e6cc54255e4a07ee71e4cb902092c25b589a7efb1032dc88f6c127bcc7cd2a2b86a08c5b1 WHIRLPOOL 3ca16ee4cbd8415fff6524ff5ad4887baf7a5f4181c59a77e877132994fd80005cb41d9f436b7d93bbb3fa85b8a9e400d0bd9fa606091abf8f5eeb08d4ba7873 |
22 |
+DIST parallel-1.2.4.tar.gz 14931 SHA256 2b9ac0af703aeefa20daa47bb70bde8492d6d3f92151998338420e2021846aa3 SHA512 6d4c84ed6739cc302757feb7e7914aafa79f4b71125ecd1453251fcdf2cbc5f48f0d251775a41306fe0ac5ad2e0f7663f763b80677ae4d6e9f95b178e750713d WHIRLPOOL b1311636f5c81eec27c31185512cc883b1403d606d1754fd758c9c60ec975969d6d46ec33126e3d0c7db8e0f0243d4bad83f81260cf9cf83f92b4a0a40ed55c0 |
23 |
|
24 |
diff --git a/dev-ruby/parallel/parallel-1.2.4.ebuild b/dev-ruby/parallel/parallel-1.2.4.ebuild |
25 |
new file mode 100644 |
26 |
index 0000000..060f7f6 |
27 |
--- /dev/null |
28 |
+++ b/dev-ruby/parallel/parallel-1.2.4.ebuild |
29 |
@@ -0,0 +1,44 @@ |
30 |
+# Copyright 1999-2016 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+# $Id$ |
33 |
+ |
34 |
+EAPI=5 |
35 |
+USE_RUBY="ruby20 ruby21 ruby22" |
36 |
+ |
37 |
+RUBY_FAKEGEM_RECIPE_TEST="rspec" |
38 |
+ |
39 |
+RUBY_FAKEGEM_RECIPE_DOC="rdoc" |
40 |
+ |
41 |
+RUBY_FAKEGEM_EXTRAINSTALL="Readme.md" |
42 |
+ |
43 |
+inherit ruby-fakegem |
44 |
+ |
45 |
+DESCRIPTION="Run any code in parallel Processes or Threads" |
46 |
+HOMEPAGE="https://github.com/grosser/parallel" |
47 |
+LICENSE="MIT" |
48 |
+SRC_URI="https://github.com/grosser/parallel/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
49 |
+ |
50 |
+KEYWORDS="~amd64" |
51 |
+SLOT="0" |
52 |
+IUSE="test" |
53 |
+ |
54 |
+DEPEND+="test? ( sys-process/lsof )" |
55 |
+ |
56 |
+ruby_add_bdepend "test? ( dev-ruby/ruby-progressbar )" |
57 |
+ |
58 |
+each_ruby_prepare() { |
59 |
+ # Make sure the correct ruby is used for testing |
60 |
+ sed -e 's:ruby :'${RUBY}' :' -i spec/parallel_spec.rb || die |
61 |
+} |
62 |
+ |
63 |
+all_ruby_prepare() { |
64 |
+ # Avoid a failing spec regarding to pipes. The spec seems like it |
65 |
+ # should always fail. |
66 |
+ sed -e '/does not open unnecessary pipes/,/end/ s:^:#:' \ |
67 |
+ -i spec/parallel_spec.rb || die |
68 |
+} |
69 |
+ |
70 |
+each_ruby_test() { |
71 |
+ # Set RUBYLIB explicitly for the ruby's that get started from the specs. |
72 |
+ RUBYLIB="lib" ${RUBY} -S rspec spec || die |
73 |
+} |