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 (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4F04A158086 for ; Wed, 24 Nov 2021 07:29:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9473B2BC00D; Wed, 24 Nov 2021 07:29:56 +0000 (UTC) Received: from smtp.gentoo.org (mail.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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7F1C72BC00D for ; Wed, 24 Nov 2021 07:29:56 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B3C06342F67 for ; Wed, 24 Nov 2021 07:29:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2D9A61EA for ; Wed, 24 Nov 2021 07:29:53 +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: <1637738986.e9bd69ac41538a4e80b36b2cf1d50f96587bf150.graaff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/rspec-mocks/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/rspec-mocks/rspec-mocks-2.99.2-r1.ebuild X-VCS-Directories: dev-ruby/rspec-mocks/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: e9bd69ac41538a4e80b36b2cf1d50f96587bf150 X-VCS-Branch: master Date: Wed, 24 Nov 2021 07:29:53 +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: b80d6f59-4941-4b68-884c-07f51f5c915b X-Archives-Hash: 79a207c040acec41310e6450e4a958fa commit: e9bd69ac41538a4e80b36b2cf1d50f96587bf150 Author: Hans de Graaff gentoo org> AuthorDate: Wed Nov 24 07:04:07 2021 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Wed Nov 24 07:29:46 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9bd69ac dev-ruby/rspec-mocks: EAPI 8 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Hans de Graaff gentoo.org> dev-ruby/rspec-mocks/rspec-mocks-2.99.2-r1.ebuild | 51 +++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/dev-ruby/rspec-mocks/rspec-mocks-2.99.2-r1.ebuild b/dev-ruby/rspec-mocks/rspec-mocks-2.99.2-r1.ebuild new file mode 100644 index 000000000000..0a09d4cde658 --- /dev/null +++ b/dev-ruby/rspec-mocks/rspec-mocks-2.99.2-r1.ebuild @@ -0,0 +1,51 @@ +# 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="rspec" + +RUBY_FAKEGEM_RECIPE_DOC="none" +RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md" + +RUBY_FAKEGEM_GEMSPEC="rspec-mocks.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="A Behaviour Driven Development (BDD) framework for Ruby" +HOMEPAGE="http://rspec.rubyforge.org/" +SRC_URI="https://github.com/rspec/${PN}/archive/v${PV}.tar.gz -> ${P}-git.tgz" + +LICENSE="MIT" +SLOT="2" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +ruby_add_bdepend " + test? ( + >=dev-ruby/rspec-core-2.10.0:2 + >=dev-ruby/rspec-expectations-2.99.0:2 + )" + +all_ruby_prepare() { + # Don't set up bundler: it doesn't understand our setup. + sed -i -e '/[Bb]undler/d' Rakefile || die + + # Remove the Gemfile to avoid running through 'bundle exec' + rm Gemfile || die + + # Remove .rspec options to avoid dependency on newer rspec when + # bootstrapping. + rm .rspec || die + + # Avoid a weird, and failing, test testing already installed code. + sed -e '/has an up-to-date caller_filter file/,/end/ s:^:#:' -i spec/rspec/mocks_spec.rb || die + + # Psych and Syck are not supported by default anymore on ruby22. + rm spec/rspec/mocks/serialization_spec.rb || die + + sed -i -e '/does not affect the ability to access the top-level constant/,/end/ s:^:#:' spec/rspec/mocks/mutate_const_spec.rb || die + + sed -i -e 's/git ls-files --/find/' ${RUBY_FAKEGEM_GEMSPEC} || die +}