summaryrefslogtreecommitdiff
path: root/dev-ruby/parallel
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-ruby/parallel
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-ruby/parallel')
-rw-r--r--dev-ruby/parallel/Manifest5
-rw-r--r--dev-ruby/parallel/metadata.xml11
-rw-r--r--dev-ruby/parallel/parallel-1.11.2.ebuild51
-rw-r--r--dev-ruby/parallel/parallel-1.12.0.ebuild54
4 files changed, 121 insertions, 0 deletions
diff --git a/dev-ruby/parallel/Manifest b/dev-ruby/parallel/Manifest
new file mode 100644
index 000000000000..adc64cba027b
--- /dev/null
+++ b/dev-ruby/parallel/Manifest
@@ -0,0 +1,5 @@
+DIST parallel-1.11.2.tar.gz 20403 SHA256 cc8d3916f66b3bfd1acf87d27ee47fb7dcf71efe3551186d97ca79dea9ce3fce SHA512 4763abeb76ba50000eb88c85f661a794d784e457ed7ba6bd1367e65d802006bfd05cad017fb9a8fa3ca45ee87bb54c2dda218099fe78b2f6f36b05632d2ccd3d WHIRLPOOL 2d1864f9dc4bce5378355668a1fe287832891945958dfcce3856f25e134e1681af9d91fa6cd2774816c0315b371677b6c9f7a7d8e9fb33666ad8bf891c9b35e6
+DIST parallel-1.12.0.tar.gz 20472 SHA256 9e6666088f56f4abfb5b1f4f44f74b93b245ef3ca07dc671aeccb59a39df5f9b SHA512 8ca41cf577ee4743ef50abe693d0040eaab12b61eca17c3d6c33d3720c38563e2df9a0eb5af0fe9d8c34c3b910f1c626ce141fd2eb7d2edfbe5abbcb9f54191b WHIRLPOOL bcb5b83750f70dbce52ced22b8a5bf944fdd660276665be970abf81516ee214528ed9b437931ead1a000592c10e72f62d96a159c6dc9d2e3f4496f17d9f5c0a2
+EBUILD parallel-1.11.2.ebuild 1498 SHA256 176e369d8ea617db70d3a761b345e6cb85100f1fc4768e1c47204e5f83e1d7f0 SHA512 ade72762ead45cb9a9352c2132cd8181f5a6f082431b1c2dc94553b0ad6f9802450adde8d7e18465807f7ce782d01d7c5d029f56d5027d50af5ebf1ab222b207 WHIRLPOOL 20423d58306919f6a7648cb62c9ec384e6ed895ef45239165c710576816862dbb489f61368a4856dbb94f18acfb47039738fb533482f3fcfa1a1bc25e6217742
+EBUILD parallel-1.12.0.ebuild 1703 SHA256 565552c4781726003e072d3a029ad38658f04375d495a2259ebeee40fe126d66 SHA512 da3a7ed5449817d475ab381949bf8e55d32abe4b319a0000960c3cdc38b5c62f909dc40c9a8ff8b18b75072429fb9da1c48754779c565f13aaafafac9ce9179d WHIRLPOOL 90ddaabec8dd884d953a0f5cc8975f083c240c94578728e49792ab105cd14943d851893d4eb1787b609e99bb3f6cd2dde7230dc0562552000bb616942b30c571
+MISC metadata.xml 342 SHA256 2027798a36cc843c9b56ed8af4d09759e178570d77e924a7cbd1c0927ee1e990 SHA512 805eaecfea071b1d632ade7da42ed63717d2f829c4c99e29a4600b26a81e87c4032d7ee441b865d86f37faa13f455c9f2888dc8099178cf6211ae13d3e3e1835 WHIRLPOOL 8436df1cae580fb8581138489c530261b669f9d5466ad411a7d1d55c2da142b8bb766088d73f4507ee8f9e030f819f232107214d4105da9a355aa1ccb7cce787
diff --git a/dev-ruby/parallel/metadata.xml b/dev-ruby/parallel/metadata.xml
new file mode 100644
index 000000000000..9342377f9242
--- /dev/null
+++ b/dev-ruby/parallel/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://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">grosser/parallel</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-ruby/parallel/parallel-1.11.2.ebuild b/dev-ruby/parallel/parallel-1.11.2.ebuild
new file mode 100644
index 000000000000..fb6b05d0a0e7
--- /dev/null
+++ b/dev-ruby/parallel/parallel-1.11.2.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+USE_RUBY="ruby21 ruby22 ruby23"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+
+RUBY_FAKEGEM_EXTRAINSTALL="Readme.md"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Run any code in parallel Processes or Threads"
+HOMEPAGE="https://github.com/grosser/parallel"
+LICENSE="MIT"
+SRC_URI="https://github.com/grosser/parallel/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+KEYWORDS="~amd64"
+SLOT="1"
+IUSE="test"
+
+DEPEND+="test? ( sys-process/lsof )"
+
+ruby_add_bdepend "
+ test? ( dev-ruby/ruby-progressbar dev-ruby/activerecord:4.2 dev-ruby/sqlite3 )"
+
+each_ruby_prepare() {
+ # Make sure the correct ruby is used for testing
+ sed -e 's:ruby :'${RUBY}' :' -i spec/parallel_spec.rb || die
+}
+
+all_ruby_prepare() {
+ sed -i -e '/bundler/ s:^:#:' \
+ -e '1i require "tempfile"; gem "activerecord", "~>4.2.0"' spec/cases/helper.rb || die
+ sed -i -e '3irequire "timeout"' spec/spec_helper.rb || die
+
+ # Avoid a failing spec regarding to pipes. The spec seems like it
+ # should always fail.
+ sed -e '/does not open unnecessary pipes/,/end/ s:^:#:' \
+ -i spec/parallel_spec.rb || die
+
+ # Avoid fragile ar sqlite tests. They throw ReadOnly errors every now and then.
+ sed -i -e '/works with SQLite in/,/end/ s:^:#:' spec/parallel_spec.rb || die
+}
+
+each_ruby_test() {
+ # Set RUBYLIB explicitly for the ruby's that get started from the specs.
+ TRAVIS=true RUBYLIB="lib" ${RUBY} -S rspec-3 spec || die
+}
diff --git a/dev-ruby/parallel/parallel-1.12.0.ebuild b/dev-ruby/parallel/parallel-1.12.0.ebuild
new file mode 100644
index 000000000000..ae6e3c6512aa
--- /dev/null
+++ b/dev-ruby/parallel/parallel-1.12.0.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+USE_RUBY="ruby21 ruby22 ruby23"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+
+RUBY_FAKEGEM_EXTRAINSTALL="Readme.md"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Run any code in parallel Processes or Threads"
+HOMEPAGE="https://github.com/grosser/parallel"
+LICENSE="MIT"
+SRC_URI="https://github.com/grosser/parallel/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+KEYWORDS="~amd64"
+SLOT="1"
+IUSE="test"
+
+DEPEND+="test? ( sys-process/lsof )"
+
+ruby_add_bdepend "
+ test? ( dev-ruby/ruby-progressbar dev-ruby/activerecord:4.2 dev-ruby/sqlite3 )"
+
+each_ruby_prepare() {
+ # Make sure the correct ruby is used for testing
+ sed -e 's:ruby :'${RUBY}' :' -i spec/parallel_spec.rb || die
+}
+
+all_ruby_prepare() {
+ sed -i -e '/bundler/ s:^:#:' \
+ -e '1i require "tempfile"; gem "activerecord", "~>4.2.0"' spec/cases/helper.rb || die
+ sed -i -e '3irequire "timeout"' spec/spec_helper.rb || die
+
+ # Avoid a failing spec regarding to pipes. The spec seems like it
+ # should always fail.
+ sed -e '/does not open unnecessary pipes/,/end/ s:^:#:' \
+ -i spec/parallel_spec.rb || die
+
+ # Avoid fragile ar sqlite tests. They throw ReadOnly errors every now and then.
+ sed -i -e '/works with SQLite in/,/end/ s:^:#:' spec/parallel_spec.rb || die
+
+ # Avoid spec broken on Ruby 2.1 that clearly doesn't match code and doesn't really test anything
+ sed -i -e '/doesnt use Etc.nprocessors in Ruby 2.1 and below/,/end/ s:^:#:' spec/parallel_spec.rb || die
+}
+
+each_ruby_test() {
+ # Set RUBYLIB explicitly for the ruby's that get started from the specs.
+ TRAVIS=true RUBYLIB="lib" ${RUBY} -S rspec-3 spec || die
+}