summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2024-08-20 07:23:39 +0200
committerHans de Graaff <graaff@gentoo.org>2024-08-20 07:23:50 +0200
commit4dce3de1f6326f9f0b08c66f731d9729ae7c537d (patch)
treec43c33743e2ec06a82d2d592b5f18d03d3c6b614 /dev-ruby
parentdev-libs/dqlite: drop 1.16.6 (diff)
downloadgentoo-4dce3de1f6326f9f0b08c66f731d9729ae7c537d.tar.gz
gentoo-4dce3de1f6326f9f0b08c66f731d9729ae7c537d.tar.bz2
gentoo-4dce3de1f6326f9f0b08c66f731d9729ae7c537d.zip
dev-ruby/flexmock: add 2.4.0
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.4.0.ebuild44
2 files changed, 45 insertions, 0 deletions
diff --git a/dev-ruby/flexmock/Manifest b/dev-ruby/flexmock/Manifest
index b6e56539878f..274e3dfce670 100644
--- a/dev-ruby/flexmock/Manifest
+++ b/dev-ruby/flexmock/Manifest
@@ -1,2 +1,3 @@
DIST flexmock-2.3.6.tar.gz 91601 BLAKE2B f2888891820f13f4a9812ffdfe042ccd266b0b5166fa538aba96e2c865ba55d3689d077e73fb9aa238455e90b8ea97aa60f8649c08823a753b6af8c0f550cbed SHA512 0fcc25c1a83ba1e2aed91eed98242592dfc1a69d57c033fbd363383962b16d6e72011d62a906ae8bf076801a3d5e8e8501bdb9f6ca3750c9615dfe8b9b0bdbbc
DIST flexmock-2.3.8.tar.gz 92170 BLAKE2B 583dff030e0c828dedfbd1188a3bcca45b53d327fc9cfc5e43370c10bc6683819aa0d11e7aad0b8d26fe7576cc8a804f2103b5fa065f57381285d5de27c99ff9 SHA512 e055b5fc503967df47fcb4c5724f79efac9cebfab76a3784cf27e194c12316c4863a29c47b46256146cf2aa2f76afcd92849297310c71ac584ef8a5cc9cb40a0
+DIST flexmock-2.4.0.tar.gz 92776 BLAKE2B 4579fcfa174cafe3ebfc2fe97cfc37323299a10be1c0bfd5bfae5399857700f0eef22e5d2ee9f60bdf5fdae48c985711a3ecd39a0b9ae53b24ce8d7ab8a69fd3 SHA512 eea0766bdab53dc0292519fe27784bc6a094ccf7ac374aeafda06ce3819726d310fbf69a7e1deaf584d6eedc03004e90695d2bda1aee5982443fbbeb4dc7d6e6
diff --git a/dev-ruby/flexmock/flexmock-2.4.0.ebuild b/dev-ruby/flexmock/flexmock-2.4.0.ebuild
new file mode 100644
index 000000000000..e53f9ce3a649
--- /dev/null
+++ b/dev-ruby/flexmock/flexmock-2.4.0.ebuild
@@ -0,0 +1,44 @@
+# 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_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="test"
+
+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
+}