From 9bd54251864651f49e673a08aec9ef79cfe08f04 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 17 Dec 2017 09:07:15 +0000 Subject: gentoo resync : 17.12.2017 --- dev-ruby/parallel/Manifest | 2 ++ dev-ruby/parallel/parallel-1.12.1.ebuild | 56 ++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 dev-ruby/parallel/parallel-1.12.1.ebuild (limited to 'dev-ruby/parallel') diff --git a/dev-ruby/parallel/Manifest b/dev-ruby/parallel/Manifest index e46c0c5397f2..1cda080ca209 100644 --- a/dev-ruby/parallel/Manifest +++ b/dev-ruby/parallel/Manifest @@ -1,5 +1,7 @@ DIST parallel-1.11.2.tar.gz 20403 BLAKE2B dc10982b8bbfc5db07784fd991fff65dec673f37ae428cd657f2fd105c1fb1e79b3a94ddc4b2a826ae476523b3b4e3811a534f2c32f26706c29e00593d4c78f9 SHA512 4763abeb76ba50000eb88c85f661a794d784e457ed7ba6bd1367e65d802006bfd05cad017fb9a8fa3ca45ee87bb54c2dda218099fe78b2f6f36b05632d2ccd3d DIST parallel-1.12.0.tar.gz 20472 BLAKE2B b6e998588f94e07194c19d4bf38964aa5e846b7f62c7a267041473a237a9d8fdebb4dc501695b00902c852021ce7817b24bfe01dcf4c0e18445b46d46c7cb42b SHA512 8ca41cf577ee4743ef50abe693d0040eaab12b61eca17c3d6c33d3720c38563e2df9a0eb5af0fe9d8c34c3b910f1c626ce141fd2eb7d2edfbe5abbcb9f54191b +DIST parallel-1.12.1.tar.gz 20499 BLAKE2B f0fa25b9fe65e44804854f703dd2d80e53572e64c2072c418d0462922bd04f89cff0e023caf4293d8a1504ad66a2a29ebbdd01920fc6fe400837859da0f0eb78 SHA512 f0ab332dfa60bb3190bba8275dbdf7b54d3de205ab76099d11f0a64e1fc28e1ba7e72d1a242bd615015c2d09a3f08df01c382869fd6990b854b01fe182245857 EBUILD parallel-1.11.2.ebuild 1498 BLAKE2B c1487c2465a5827284ac87a87243d5c9edd10a6f42f8c1fc496d944f0d6a90bf9916f8884f26e47db87ee680160717199717b032eb581633db4ab644d5bc9535 SHA512 ade72762ead45cb9a9352c2132cd8181f5a6f082431b1c2dc94553b0ad6f9802450adde8d7e18465807f7ce782d01d7c5d029f56d5027d50af5ebf1ab222b207 EBUILD parallel-1.12.0.ebuild 1703 BLAKE2B ba3bce20cf9bf46583d7f86a96672e7634d2b41db785589b8048dd56452ff6b3f1b215638a3d189d677b9e597278ca5462b907179650ec49005f5d5345b16ac4 SHA512 da3a7ed5449817d475ab381949bf8e55d32abe4b319a0000960c3cdc38b5c62f909dc40c9a8ff8b18b75072429fb9da1c48754779c565f13aaafafac9ce9179d +EBUILD parallel-1.12.1.ebuild 1719 BLAKE2B 623bca5065f52cf4cacaff1826493d2edbe268b9f540e4d877941843f05a237a0a9c37fa4e8ef729fcd714c7d76a042aecebf17647d97010cda40496e3384758 SHA512 6973d3bef49c096ee20093fb7e3860c72c319e02480dbeb4dd528336b751ecac2fc7688210a856558c94daa6b510f622335d8e918955f930dbb98a98deb80030 MISC metadata.xml 342 BLAKE2B 0860273d70423cb92207369335e1f684ea623e1217d7aaf4d016d9aff9c02b0b8dc9af3654b523f77cbd8d92f7043887a97ff87abb79d3c65b66b0e6b40082fb SHA512 805eaecfea071b1d632ade7da42ed63717d2f829c4c99e29a4600b26a81e87c4032d7ee441b865d86f37faa13f455c9f2888dc8099178cf6211ae13d3e3e1835 diff --git a/dev-ruby/parallel/parallel-1.12.1.ebuild b/dev-ruby/parallel/parallel-1.12.1.ebuild new file mode 100644 index 000000000000..1bd63afc39f0 --- /dev/null +++ b/dev-ruby/parallel/parallel-1.12.1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +# ruby24: fails specs +USE_RUBY="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 +} -- cgit v1.2.3