summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2021-04-08 08:05:27 +0200
committerHans de Graaff <graaff@gentoo.org>2021-04-08 08:05:27 +0200
commitc220a8c3081e6a4a8deaa58320e6bf2bcfa24cf5 (patch)
tree1ba0d57b609e6c5d6e0c5fc34f114e7b52ffce9f /dev-ruby/rr
parentdev-ruby/parser: add 3.0.1.0 (diff)
downloadgentoo-c220a8c3081e6a4a8deaa58320e6bf2bcfa24cf5.tar.gz
gentoo-c220a8c3081e6a4a8deaa58320e6bf2bcfa24cf5.tar.bz2
gentoo-c220a8c3081e6a4a8deaa58320e6bf2bcfa24cf5.zip
dev-ruby/rr: add 3.0.0
Package-Manager: Portage-3.0.17, Repoman-3.0.2 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/rr')
-rw-r--r--dev-ruby/rr/Manifest1
-rw-r--r--dev-ruby/rr/rr-3.0.0.ebuild40
2 files changed, 41 insertions, 0 deletions
diff --git a/dev-ruby/rr/Manifest b/dev-ruby/rr/Manifest
index 22faf1eec3b2..ff6d14165f67 100644
--- a/dev-ruby/rr/Manifest
+++ b/dev-ruby/rr/Manifest
@@ -1 +1,2 @@
DIST rr-1.2.1.tar.gz 137497 BLAKE2B 3db6751d15e54da6ee6777fb7d383c1bfea2e68482dda03ceda9a70f66382cf9aa7c39f27fca9f0ce92b19858b5324bdbb5811809b3ae146e213bb03ddca0772 SHA512 df2d05ff732908da55878cb89cb7d1c4442a18c19f71940244f5bd7dc55632467a1824f55d7fade4b5122486a61277090d7ad05df9f99098030c21aa45b36dd2
+DIST rr-3.0.0.tar.gz 137978 BLAKE2B 707678362370173c3cb088db9003a5acb54f42b579955239317738027ede63d19217c9e76dd693d09226bac85b41cf9422ac7a580f502c1cbc338b0d4ccb34c9 SHA512 4d162a88868dde9a300a0783869d7c7edae840960c26697e20db3858cc3cc9db942a52c22e79584d3e7371da59156ff4f026ca9052d9d4b203159223f78b1030
diff --git a/dev-ruby/rr/rr-3.0.0.ebuild b/dev-ruby/rr/rr-3.0.0.ebuild
new file mode 100644
index 000000000000..85b47d8658f8
--- /dev/null
+++ b/dev-ruby/rr/rr-3.0.0.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+USE_RUBY="ruby25 ruby26 ruby27"
+
+RUBY_FAKEGEM_TASK_TEST="none"
+
+RUBY_FAKEGEM_TASK_DOC=""
+RUBY_FAKEGEM_EXTRADOC="CHANGES.md README.md"
+
+RUBY_FAKEGEM_GEMSPEC=rr.gemspec
+
+inherit ruby-fakegem
+
+DESCRIPTION="A double framework featuring a selection of double techniques and a terse syntax"
+HOMEPAGE="https://rr.github.io/rr"
+SRC_URI="https://github.com/rr/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~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:2
+ dev-ruby/minitest
+ dev-ruby/diff-lcs )"
+
+all_ruby_prepare() {
+ rm Gemfile || die
+ sed -i -e '1,2 s:^:#:' spec/suites/rspec_2/spec_helper.rb || die
+}
+
+each_ruby_test() {
+ # Only run the rspec 2 case since we don't have appraisals. Setting
+ # up everything correctly without it seems very complicated.
+ ruby-ng_rspec --format progress spec/suites/rspec_2/unit || die
+}