From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 133A41581EC for ; Sat, 23 Nov 2024 10:31:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E85B6E0844; Sat, 23 Nov 2024 10:31:31 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CF354E0844 for ; Sat, 23 Nov 2024 10:31:31 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D9E8B34131D for ; Sat, 23 Nov 2024 10:31:30 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4D1DA1295 for ; Sat, 23 Nov 2024 10:31:29 +0000 (UTC) From: "Hans de Graaff" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Hans de Graaff" Message-ID: <1732357876.1e70f71106abbdad430acdca2c711f4d0a1a89b9.graaff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/parallel/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/parallel/Manifest dev-ruby/parallel/parallel-1.26.3.ebuild X-VCS-Directories: dev-ruby/parallel/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: 1e70f71106abbdad430acdca2c711f4d0a1a89b9 X-VCS-Branch: master Date: Sat, 23 Nov 2024 10:31:29 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 917a7ee1-5d51-40c7-9ae4-0ace1cb4e8a5 X-Archives-Hash: 0f2f5ed6a6a84d9703d40ecfd5a9fb1a commit: 1e70f71106abbdad430acdca2c711f4d0a1a89b9 Author: Hans de Graaff gentoo org> AuthorDate: Sat Nov 23 09:58:35 2024 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Sat Nov 23 10:31:16 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e70f711 dev-ruby/parallel: add 1.26.3 Signed-off-by: Hans de Graaff gentoo.org> dev-ruby/parallel/Manifest | 1 + dev-ruby/parallel/parallel-1.26.3.ebuild | 57 ++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) diff --git a/dev-ruby/parallel/Manifest b/dev-ruby/parallel/Manifest index 4c3028655527..7d9a96fbd99a 100644 --- a/dev-ruby/parallel/Manifest +++ b/dev-ruby/parallel/Manifest @@ -1,3 +1,4 @@ DIST parallel-1.24.0.tar.gz 23944 BLAKE2B 9e14b8551416c74a16f34db0616c487841368b6834c6848c929e480b3bbeaa3d378c96ccb26496bdef35448e583ab8d029d84f54408a29385e6809d0f013cf71 SHA512 9b1bd00fa16cae4938642e2834c57ce71c5f51bbbec695c40107a02f1af4a1528ef27ce002f3a3290e21a6c045c739ac3844c586e4f1976ac5616d8fae03a5af DIST parallel-1.25.1.tar.gz 24386 BLAKE2B fc2efd610d8730caf645783d5d360520ca9b3ac6661404b2df55cd62693f48f868f055aab266c78d31e497c0fafebd21185f836cce7e03c7d10c13d7f78c9e74 SHA512 9897fbec6717c832408e0fa1365582d8a4ebbdf69a5b6ce75182ef16c40f7df1f8ded52d33b2df31224bfb7e2dd613286e940b507d04add7a9d3a956869d4710 DIST parallel-1.26.1.tar.gz 24379 BLAKE2B 91e4aac94dde98c17b58d7daf15e528355fd5e3a843771b52f529f91f3ba00574a74993bd34b577b48905ef0957fd145679c67f2590c47022929d228efc67b6d SHA512 92404eff2c39bb742fda8b746930262c546c03df9b4633106858e0b968c86589172e4b080f1ba50dff9d3e0873ca817950d08c8b521549ad4d71731aaad80083 +DIST parallel-1.26.3.tar.gz 24493 BLAKE2B bf82ac5620f514d7e5317b95956785d819c5d8ec583761fb7cf04ae56c643fa04cb2e59ca2459e225d3ea754e1c781065a0d51becb9f221e0fad093ebf9283bf SHA512 e0e18a472b9b45697ef6b1e1cdccb60c76afb7605a958135a0414c54c8b2a143b409d8f5638a5ef52422359336ada1e8bc867856c365641f69c5f39a19cf7e22 diff --git a/dev-ruby/parallel/parallel-1.26.3.ebuild b/dev-ruby/parallel/parallel-1.26.3.ebuild new file mode 100644 index 000000000000..8c3fceea66e6 --- /dev/null +++ b/dev-ruby/parallel/parallel-1.26.3.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby31 ruby32 ruby33" + +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="ruby31 ruby32 ruby33" 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 +}