1 |
commit: 829c54e45b99f54cad43d163bb79856832380b31 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Dec 8 06:27:08 2021 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 8 06:27:15 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=829c54e4 |
7 |
|
8 |
dev-ruby/rake-compiler: add 1.1.3 |
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/rake-compiler/Manifest | 1 + |
14 |
dev-ruby/rake-compiler/rake-compiler-1.1.3.ebuild | 55 +++++++++++++++++++++++ |
15 |
2 files changed, 56 insertions(+) |
16 |
|
17 |
diff --git a/dev-ruby/rake-compiler/Manifest b/dev-ruby/rake-compiler/Manifest |
18 |
index 034bcfe66823..e221a033c671 100644 |
19 |
--- a/dev-ruby/rake-compiler/Manifest |
20 |
+++ b/dev-ruby/rake-compiler/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST rake-compiler-1.1.1.tar.gz 34692 BLAKE2B c6862f24ec57c25fdeb7faeeda9eb96cb64ac972c852a81b77ec9b35d21018a5647089cd38d80b03a79e2c07d3f9af42bbaf9998457ad3beed27c8285c23689f SHA512 e9cf9752e48eae912657a34d2f86a2b41f7d57620c6e43b1fa6fb8e5715336b2fdf99bf20a4851889e8b9b7b2e834421c13e108c538abdc3cec968952345361d |
23 |
+DIST rake-compiler-1.1.3.tar.gz 35894 BLAKE2B cf395392ed4940a9cae1a0c3eed530de0b2ab4af32b0662f8e316f17f1f351170b876afb18cfc74208863fc124db6031f485c37b0ead73b235029d9b0bf01f11 SHA512 542a3579baf9bbb046bb99d72799d50e2f0efe71bb18a8c8aa7a9f740d8dc5706cec1c9619a977ba50eef615f66cbf415b5f8a351843d03ea2d72ed1203ac72d |
24 |
|
25 |
diff --git a/dev-ruby/rake-compiler/rake-compiler-1.1.3.ebuild b/dev-ruby/rake-compiler/rake-compiler-1.1.3.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..8003fcf53fda |
28 |
--- /dev/null |
29 |
+++ b/dev-ruby/rake-compiler/rake-compiler-1.1.3.ebuild |
30 |
@@ -0,0 +1,55 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+USE_RUBY="ruby26 ruby27 ruby30" |
36 |
+ |
37 |
+RUBY_FAKEGEM_RECIPE_TEST="none" |
38 |
+ |
39 |
+RUBY_FAKEGEM_RECIPE_DOC="none" |
40 |
+RUBY_FAKEGEM_EXTRADOC="History.md README.md" |
41 |
+ |
42 |
+RUBY_FAKEGEM_GEMSPEC="rake-compiler.gemspec" |
43 |
+ |
44 |
+inherit ruby-fakegem |
45 |
+ |
46 |
+DESCRIPTION="Provide a standard and simplified way to build and package Ruby extensions" |
47 |
+HOMEPAGE="https://github.com/luislavena/rake-compiler" |
48 |
+LICENSE="MIT" |
49 |
+ |
50 |
+SRC_URI="https://github.com/luislavena/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
51 |
+ |
52 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
53 |
+SLOT="0" |
54 |
+IUSE="" |
55 |
+ |
56 |
+ruby_add_rdepend "dev-ruby/rake" |
57 |
+ |
58 |
+ruby_add_bdepend "test? ( dev-ruby/rspec:3 )" |
59 |
+ |
60 |
+USE_RUBY="ruby26 ruby27" ruby_add_bdepend "test? ( dev-util/cucumber dev-ruby/rspec:2 )" |
61 |
+ |
62 |
+all_ruby_prepare() { |
63 |
+ # Make sure the right rspec version is used in cucumber. |
64 |
+ sed -i -e "1igem 'rspec', '~>2.0'" features/support/env.rb || die |
65 |
+ |
66 |
+ # Avoid failing features for native gems, this also fails with rubygems |
67 |
+ sed -i -e '/generate native gem/,$ s:^:#:' features/package.feature || die |
68 |
+ |
69 |
+ # Fix compatibility with newer cucumber versions. The not syntax has |
70 |
+ # been supported since cucumber 3.x. |
71 |
+ sed -i -e "s/~@java/'not @java'/" cucumber.yml || die |
72 |
+} |
73 |
+ |
74 |
+each_ruby_test() { |
75 |
+ # Skip cucumber for new ruby versions (not ready yet) |
76 |
+ case ${RUBY} in |
77 |
+ *ruby25|*ruby26|*ruby27) |
78 |
+ RSPEC_VERSION=3 ruby-ng_rspec |
79 |
+ ruby-ng_cucumber |
80 |
+ ;; |
81 |
+ *) |
82 |
+ RSPEC_VERSION=3 ruby-ng_rspec |
83 |
+ ;; |
84 |
+ esac |
85 |
+} |