summaryrefslogtreecommitdiff
path: root/dev-ruby/parallel
diff options
context:
space:
mode:
Diffstat (limited to 'dev-ruby/parallel')
-rw-r--r--dev-ruby/parallel/Manifest4
-rw-r--r--dev-ruby/parallel/metadata.xml2
-rw-r--r--dev-ruby/parallel/parallel-1.21.0.ebuild48
3 files changed, 52 insertions, 2 deletions
diff --git a/dev-ruby/parallel/Manifest b/dev-ruby/parallel/Manifest
index 52e81b6dea33..b67ffc636990 100644
--- a/dev-ruby/parallel/Manifest
+++ b/dev-ruby/parallel/Manifest
@@ -1,7 +1,9 @@
DIST parallel-1.19.2.tar.gz 21752 BLAKE2B aac6564ad95d8e366ad079854f22e7dcb149643db5792ee81c84c8c765185e367dedd0e635d2373aeefcd84997da89f9f9f4f6c398e753af4a1ddbf90e428dd0 SHA512 192ce4dc18ecb47522360d0d7022a9e20d72e90ad09889f1b7f29c20c74c980319956f316a35aad0fc7efcd8aac5a635da69eebcf78ba34659365df20e402c3c
DIST parallel-1.20.0.tar.gz 20598 BLAKE2B f9e8626bf6430fffecd9aafb54e0c8c4b61f70dd58f7a2faee0e4c83c10c19d8eac419ab3e22fb75942a5c63f729d47d5e64683caa7f24bc304a1cb16862e18c SHA512 dc472a4792bea7b22b6613942a9c640437cb332d879406af2fad3de0f0529983ba92e6ee2e6f2d424e57695f238d44bf6987c6edc3ce5afca4b024b7501d9508
DIST parallel-1.20.1.tar.gz 20807 BLAKE2B 71f0894126837d71cdc3bf1ca7d4040d53dd88e0c917f29d3ebc940c1ff16bde42631aff50df455729a2a33df3e96de5dda5c9913d9ff4b1cde90ef1702883fa SHA512 cd0f6ad673fe432d48de77adc177181d48bcbf43e4c2a9f86b579bc1f7a9f520730ce68be010e6645b87c8ff755c83ccaf53ffd73631b0f239beb9e124b4d527
+DIST parallel-1.21.0.tar.gz 21772 BLAKE2B 307d097629faf5c1967c0f189dc9703df481c763736242856c594dd99975193d81331654580ecce97b675591f8d9c543a2ccc769966d91ceb1ded7c3ec949ac9 SHA512 cd0bce1abe2cd53015fee7f8080e05bbcd80798fe0a6fa0e120776018a382260bd070d1a14085ef3e6d7fb16a79c6a05f438d4f8b228cce7461efe5a1395b530
EBUILD parallel-1.19.2.ebuild 1794 BLAKE2B 067f3cc745aabd55870f23b88d8da5d144b9747f60f249ba7cce83486765f6c65cb23aa1aeab6fc3a75d98c87d56cd22945b40f0bbc742b78f0d575e55ce42ec SHA512 67a8e66d385bd9fa7b3b91fcc3920a71385ad555652a9b43d16b9d7dacf05b0ef123ab1303dc45e35dfc7edceef395a5980cb7cedb9231006cecb719a26d68c3
EBUILD parallel-1.20.0.ebuild 1794 BLAKE2B 067f3cc745aabd55870f23b88d8da5d144b9747f60f249ba7cce83486765f6c65cb23aa1aeab6fc3a75d98c87d56cd22945b40f0bbc742b78f0d575e55ce42ec SHA512 67a8e66d385bd9fa7b3b91fcc3920a71385ad555652a9b43d16b9d7dacf05b0ef123ab1303dc45e35dfc7edceef395a5980cb7cedb9231006cecb719a26d68c3
EBUILD parallel-1.20.1.ebuild 1794 BLAKE2B 067f3cc745aabd55870f23b88d8da5d144b9747f60f249ba7cce83486765f6c65cb23aa1aeab6fc3a75d98c87d56cd22945b40f0bbc742b78f0d575e55ce42ec SHA512 67a8e66d385bd9fa7b3b91fcc3920a71385ad555652a9b43d16b9d7dacf05b0ef123ab1303dc45e35dfc7edceef395a5980cb7cedb9231006cecb719a26d68c3
-MISC metadata.xml 342 BLAKE2B 0860273d70423cb92207369335e1f684ea623e1217d7aaf4d016d9aff9c02b0b8dc9af3654b523f77cbd8d92f7043887a97ff87abb79d3c65b66b0e6b40082fb SHA512 805eaecfea071b1d632ade7da42ed63717d2f829c4c99e29a4600b26a81e87c4032d7ee441b865d86f37faa13f455c9f2888dc8099178cf6211ae13d3e3e1835
+EBUILD parallel-1.21.0.ebuild 1398 BLAKE2B 546780ce2eb0daf077370d8961dc38ede89017923978f12d3e40de6ab3dc232587dbd628cb7e9be11edd8238460de91546425d6fafe7cbf74f9a172bbf32071c SHA512 6700371a0008ed8dc59f056582b2f1ac7743d0df5111c41d6e3bf36aedc25e27f3c1121cbc2962645e2d13953c5e6e3e2965b537953ff5d0c1341b4ebad4bcc0
+MISC metadata.xml 343 BLAKE2B 319ce92e2b405a76468f653192288669596fdf31ecea733f88de907cb5fc184bdbc197bae14c3cec97a5f25c47cd6fe3e201ae60ab19e5dc06a2f8b612e2b719 SHA512 7fbc85907d9d51e90d0bbf2cd1431557afb9dae6b15b6d9b9d283e1957606381fad7fa7a0aa05d01ce0921c3ecc33d304b61c567069ee439e7ad2f25d3c86924
diff --git a/dev-ruby/parallel/metadata.xml b/dev-ruby/parallel/metadata.xml
index 9342377f9242..33b61664d037 100644
--- a/dev-ruby/parallel/metadata.xml
+++ b/dev-ruby/parallel/metadata.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>ruby@gentoo.org</email>
diff --git a/dev-ruby/parallel/parallel-1.21.0.ebuild b/dev-ruby/parallel/parallel-1.21.0.ebuild
new file mode 100644
index 000000000000..4b3f2dbb3c1f
--- /dev/null
+++ b/dev-ruby/parallel/parallel-1.21.0.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby26 ruby27"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+
+RUBY_FAKEGEM_EXTRAINSTALL="Readme.md"
+
+RUBY_FAKEGEM_GEMSPEC="parallel.gemspec"
+
+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 sys-process/procps )"
+
+ruby_add_bdepend "
+ test? ( dev-ruby/ruby-progressbar dev-ruby/activerecord:6.0 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 's/git ls-files/find/' ${RUBY_FAKEGEM_GEMSPEC} || die
+ sed -i -e '/bundler/ s:^:#:' \
+ -e '1i require "tempfile"; gem "activerecord", "~>6.0.0"' spec/cases/helper.rb || die
+ sed -i -e '3irequire "timeout"' spec/spec_helper.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
+}