1 |
commit: deb21d7d00d84d9622d4caabaf3d853a8f3904f9 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Nov 24 07:28:52 2021 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 24 07:29:47 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=deb21d7d |
7 |
|
8 |
dev-ruby/flexmock: EAPI 8 |
9 |
|
10 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
11 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
12 |
|
13 |
dev-ruby/flexmock/flexmock-2.3.6-r1.ebuild | 42 ++++++++++++++++++++++++++++++ |
14 |
1 file changed, 42 insertions(+) |
15 |
|
16 |
diff --git a/dev-ruby/flexmock/flexmock-2.3.6-r1.ebuild b/dev-ruby/flexmock/flexmock-2.3.6-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 000000000000..d04994270898 |
19 |
--- /dev/null |
20 |
+++ b/dev-ruby/flexmock/flexmock-2.3.6-r1.ebuild |
21 |
@@ -0,0 +1,42 @@ |
22 |
+# Copyright 1999-2021 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=8 |
26 |
+ |
27 |
+USE_RUBY="ruby26 ruby27" |
28 |
+ |
29 |
+RUBY_FAKEGEM_DOCDIR="html" |
30 |
+RUBY_FAKEGEM_EXTRADOC="CHANGES README.md doc/*.rdoc doc/releases/*" |
31 |
+ |
32 |
+RUBY_FAKEGEM_RECIPE_TEST="none" |
33 |
+RUBY_FAKEGEM_RECIPE_DOC="none" |
34 |
+ |
35 |
+RUBY_FAKEGEM_GEMSPEC="flexmock.gemspec" |
36 |
+ |
37 |
+inherit ruby-fakegem |
38 |
+ |
39 |
+DESCRIPTION="Simple mock object library for Ruby unit testing" |
40 |
+HOMEPAGE="https://github.com/doudou/flexmock" |
41 |
+SRC_URI="https://github.com/doudou/flexmock/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
42 |
+ |
43 |
+LICENSE="flexmock" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
46 |
+IUSE="" |
47 |
+ |
48 |
+ruby_add_bdepend " |
49 |
+ test? ( |
50 |
+ dev-ruby/minitest:5 |
51 |
+ dev-ruby/rspec:3 |
52 |
+ )" |
53 |
+ |
54 |
+each_ruby_test() { |
55 |
+ RSPEC_VERSION=3 ruby-ng_rspec test/rspec_integration |
56 |
+ ${RUBY} -Ilib:.:test -e 'Dir["test/*_test.rb"].each{|f| require f}' || die |
57 |
+} |
58 |
+ |
59 |
+all_ruby_prepare() { |
60 |
+ sed -i -e '1igem "minitest", "~>5.0"' test/test_helper.rb || die |
61 |
+ |
62 |
+ sed -i -e 's/git ls-files -z/find * -print0/' ${RUBY_FAKEGEM_GEMSPEC} || die |
63 |
+} |