diff options
author | Hans de Graaff <hans@degraaff.org> | 2016-04-27 07:51:54 +0200 |
---|---|---|
committer | Hans de Graaff <hans@degraaff.org> | 2016-04-27 07:51:54 +0200 |
commit | 62ae8fc4970dc530221b979dc6c3153b62c38888 (patch) | |
tree | ef785f844c26d0dd2ce14c7b6af356029aefc043 | |
parent | dev-ruby/paper_trail: add 4.1.0 (diff) | |
download | graaff-62ae8fc4.tar.gz graaff-62ae8fc4.tar.bz2 graaff-62ae8fc4.zip |
dev-ruby/parallel: add 1.2.4
Package-Manager: portage-2.2.26
-rw-r--r-- | dev-ruby/parallel/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/parallel/parallel-1.2.4.ebuild | 44 |
2 files changed, 45 insertions, 0 deletions
diff --git a/dev-ruby/parallel/Manifest b/dev-ruby/parallel/Manifest index ec798edf..dc804b78 100644 --- a/dev-ruby/parallel/Manifest +++ b/dev-ruby/parallel/Manifest @@ -1 +1,2 @@ DIST parallel-1.2.2.tar.gz 14225 SHA256 ca6894a0d9c2b96add7ac9df5fa4c7dd0c1772f6c434a5e3b496f47a136345a5 SHA512 8db28f732af1418dff73cd0b5be022ae257bce8a5b1a02c9fefa1d1e6cc54255e4a07ee71e4cb902092c25b589a7efb1032dc88f6c127bcc7cd2a2b86a08c5b1 WHIRLPOOL 3ca16ee4cbd8415fff6524ff5ad4887baf7a5f4181c59a77e877132994fd80005cb41d9f436b7d93bbb3fa85b8a9e400d0bd9fa606091abf8f5eeb08d4ba7873 +DIST parallel-1.2.4.tar.gz 14931 SHA256 2b9ac0af703aeefa20daa47bb70bde8492d6d3f92151998338420e2021846aa3 SHA512 6d4c84ed6739cc302757feb7e7914aafa79f4b71125ecd1453251fcdf2cbc5f48f0d251775a41306fe0ac5ad2e0f7663f763b80677ae4d6e9f95b178e750713d WHIRLPOOL b1311636f5c81eec27c31185512cc883b1403d606d1754fd758c9c60ec975969d6d46ec33126e3d0c7db8e0f0243d4bad83f81260cf9cf83f92b4a0a40ed55c0 diff --git a/dev-ruby/parallel/parallel-1.2.4.ebuild b/dev-ruby/parallel/parallel-1.2.4.ebuild new file mode 100644 index 00000000..060f7f63 --- /dev/null +++ b/dev-ruby/parallel/parallel-1.2.4.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +USE_RUBY="ruby20 ruby21 ruby22" + +RUBY_FAKEGEM_RECIPE_TEST="rspec" + +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="0" +IUSE="test" + +DEPEND+="test? ( sys-process/lsof )" + +ruby_add_bdepend "test? ( dev-ruby/ruby-progressbar )" + +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() { + # 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 +} + +each_ruby_test() { + # Set RUBYLIB explicitly for the ruby's that get started from the specs. + RUBYLIB="lib" ${RUBY} -S rspec spec || die +} |