diff options
Diffstat (limited to 'dev-ruby/parallel')
-rw-r--r-- | dev-ruby/parallel/Manifest | 2 | ||||
-rw-r--r-- | dev-ruby/parallel/parallel-1.24.0.ebuild | 57 |
2 files changed, 59 insertions, 0 deletions
diff --git a/dev-ruby/parallel/Manifest b/dev-ruby/parallel/Manifest index 21c448cf8c8a..92cfb0a7fb42 100644 --- a/dev-ruby/parallel/Manifest +++ b/dev-ruby/parallel/Manifest @@ -1,3 +1,5 @@ DIST parallel-1.23.0.tar.gz 23359 BLAKE2B f7c505484a8ebade97efb61eb18474625ee994e3a4a16e85b264988212e3de093ae7b8cb03de2a6f97f8205b41264b72c13f32d81ed9ddcd2241d3aab15c7564 SHA512 fd80b928ad4c34c71abb62a2e27da6bdcabb425ed68cfef190c0e9f56c853147b1c96d7e9b5ec0ef2e7909dd2303892cb293c40a170241158286f9422b6bc780 +DIST parallel-1.24.0.tar.gz 23944 BLAKE2B 9e14b8551416c74a16f34db0616c487841368b6834c6848c929e480b3bbeaa3d378c96ccb26496bdef35448e583ab8d029d84f54408a29385e6809d0f013cf71 SHA512 9b1bd00fa16cae4938642e2834c57ce71c5f51bbbec695c40107a02f1af4a1528ef27ce002f3a3290e21a6c045c739ac3844c586e4f1976ac5616d8fae03a5af EBUILD parallel-1.23.0.ebuild 1592 BLAKE2B e92dc07efbd24b0b1a6bd1d4ff2eef625c26eb44730ec294774812dfa82c180064b6bd4f8d16def39501d90eea9383041d618076a348d4cc9609b1d0a92ca356 SHA512 dc8c61dbe13aa6fdfb9f9b9824179718ca5af1d92c57bc97d30aadf3db2d432f84dca432add1924aebc043284c9c922110c2e42d2e47beedda87307b5358f7f9 +EBUILD parallel-1.24.0.ebuild 1586 BLAKE2B 80fe130edfe93757429e25c8875274dbae5a23eddac4724925c4a232ae81954c90b8bc97cbb8e2e918944051ad33a45a264357fe673fdeefd673dc7e9d99fb98 SHA512 2fa668293785e394b1a54f14e8ac4cd15203f51c01cd38faf30842a706befb9aed2643005351392f38517e1e225c3788b73784b738165f4e170067dd004fa891 MISC metadata.xml 343 BLAKE2B 319ce92e2b405a76468f653192288669596fdf31ecea733f88de907cb5fc184bdbc197bae14c3cec97a5f25c47cd6fe3e201ae60ab19e5dc06a2f8b612e2b719 SHA512 7fbc85907d9d51e90d0bbf2cd1431557afb9dae6b15b6d9b9d283e1957606381fad7fa7a0aa05d01ce0921c3ecc33d304b61c567069ee439e7ad2f25d3c86924 diff --git a/dev-ruby/parallel/parallel-1.24.0.ebuild b/dev-ruby/parallel/parallel-1.24.0.ebuild new file mode 100644 index 000000000000..0231ae8f8a13 --- /dev/null +++ b/dev-ruby/parallel/parallel-1.24.0.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby31 ruby32" + +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" +SRC_URI="https://github.com/grosser/parallel/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="1" +KEYWORDS="~amd64 ~riscv" + +DEPEND+="test? ( sys-process/lsof sys-process/procps )" + +ruby_add_bdepend " + test? ( dev-ruby/ruby-progressbar ) +" + +# Rails isn't yet ruby32-ready in Gentoo +USE_RUBY="ruby30 ruby31" ruby_add_bdepend " + test? ( dev-ruby/activerecord[sqlite] ) +" + +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"' 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() { + if ! has_version -b "dev-ruby/activerecord[sqlite]" ; then + rm spec/cases/map_with_ar.rb spec/cases/each_with_ar_sqlite.rb || die + fi + + # Set RUBYLIB explicitly for the ruby's that get started from the specs. + TRAVIS=true RUBYLIB="lib" ${RUBY} -S rspec-3 spec || die +} |