summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2023-08-14 07:46:05 +0200
committerHans de Graaff <graaff@gentoo.org>2023-08-15 07:45:43 +0200
commit9d0872f1795612d05d8184ae487ec85c39327189 (patch)
treecaed87c7c8f8f02aafaaebaa9c2d8a4fde82b142 /dev-ruby
parentdev-ruby/optimist: drop 3.0.1 (diff)
downloadgentoo-9d0872f1795612d05d8184ae487ec85c39327189.tar.gz
gentoo-9d0872f1795612d05d8184ae487ec85c39327189.tar.bz2
gentoo-9d0872f1795612d05d8184ae487ec85c39327189.zip
dev-ruby/flexmock: add 2.3.8
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/flexmock/Manifest1
-rw-r--r--dev-ruby/flexmock/flexmock-2.3.8.ebuild44
2 files changed, 45 insertions, 0 deletions
diff --git a/dev-ruby/flexmock/Manifest b/dev-ruby/flexmock/Manifest
index 4baca5b9ad94..b6e56539878f 100644
--- a/dev-ruby/flexmock/Manifest
+++ b/dev-ruby/flexmock/Manifest
@@ -1 +1,2 @@
DIST flexmock-2.3.6.tar.gz 91601 BLAKE2B f2888891820f13f4a9812ffdfe042ccd266b0b5166fa538aba96e2c865ba55d3689d077e73fb9aa238455e90b8ea97aa60f8649c08823a753b6af8c0f550cbed SHA512 0fcc25c1a83ba1e2aed91eed98242592dfc1a69d57c033fbd363383962b16d6e72011d62a906ae8bf076801a3d5e8e8501bdb9f6ca3750c9615dfe8b9b0bdbbc
+DIST flexmock-2.3.8.tar.gz 92170 BLAKE2B 583dff030e0c828dedfbd1188a3bcca45b53d327fc9cfc5e43370c10bc6683819aa0d11e7aad0b8d26fe7576cc8a804f2103b5fa065f57381285d5de27c99ff9 SHA512 e055b5fc503967df47fcb4c5724f79efac9cebfab76a3784cf27e194c12316c4863a29c47b46256146cf2aa2f76afcd92849297310c71ac584ef8a5cc9cb40a0
diff --git a/dev-ruby/flexmock/flexmock-2.3.8.ebuild b/dev-ruby/flexmock/flexmock-2.3.8.ebuild
new file mode 100644
index 000000000000..f8a8a921a780
--- /dev/null
+++ b/dev-ruby/flexmock/flexmock-2.3.8.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby30 ruby31 ruby32"
+
+RUBY_FAKEGEM_DOCDIR="html"
+RUBY_FAKEGEM_EXTRADOC="CHANGES README.md doc/*.rdoc doc/releases/*"
+
+RUBY_FAKEGEM_RECIPE_TEST="none"
+RUBY_FAKEGEM_RECIPE_DOC="none"
+
+RUBY_FAKEGEM_GEMSPEC="flexmock.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Simple mock object library for Ruby unit testing"
+HOMEPAGE="https://github.com/doudou/flexmock"
+SRC_URI="https://github.com/doudou/flexmock/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="flexmock"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
+IUSE=""
+
+PATCHES=( "${FILESDIR}"/flexmock-2.3.6-ruby30-{1,2,3}.patch )
+
+ruby_add_bdepend "
+ test? (
+ dev-ruby/minitest:5
+ dev-ruby/rspec:3
+ )"
+
+each_ruby_test() {
+ RSPEC_VERSION=3 ruby-ng_rspec test/rspec_integration
+ MT_NO_PLUGINS=1 ${RUBY} -Ilib:.:test -e 'Dir["test/*_test.rb"].each{|f| require f}' || die
+}
+
+all_ruby_prepare() {
+ sed -i -e '1igem "minitest", "~>5.0"' test/test_helper.rb || die
+
+ sed -i -e 's/git ls-files -z/find * -print0/' ${RUBY_FAKEGEM_GEMSPEC} || die
+}