1 |
commit: 9590d2bd27f5a05e2255a7d52aa6bc65d747c3bc |
2 |
Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 25 23:21:26 2016 +0000 |
4 |
Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 25 23:21:26 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9590d2bd |
7 |
|
8 |
dev-ruby/ammeter: Add ruby23 |
9 |
|
10 |
Package-Manager: portage-2.3.3 |
11 |
|
12 |
dev-ruby/ammeter/ammeter-1.1.4-r1.ebuild | 66 ++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 66 insertions(+) |
14 |
|
15 |
diff --git a/dev-ruby/ammeter/ammeter-1.1.4-r1.ebuild b/dev-ruby/ammeter/ammeter-1.1.4-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000..9d3043d |
18 |
--- /dev/null |
19 |
+++ b/dev-ruby/ammeter/ammeter-1.1.4-r1.ebuild |
20 |
@@ -0,0 +1,66 @@ |
21 |
+# Copyright 1999-2016 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+# $Id$ |
24 |
+ |
25 |
+EAPI=5 |
26 |
+USE_RUBY="ruby21 ruby22 ruby23" |
27 |
+ |
28 |
+RUBY_FAKEGEM_TASK_DOC="" |
29 |
+RUBY_FAKEGEM_RECIPE_TEST="rspec3" |
30 |
+ |
31 |
+RUBY_FAKEGEM_EXTRADOC="README.md" |
32 |
+ |
33 |
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" |
34 |
+ |
35 |
+inherit ruby-fakegem |
36 |
+ |
37 |
+DESCRIPTION="Write specs for your Rails 3+ generators" |
38 |
+HOMEPAGE="https://github.com/alexrothenberg/ammeter" |
39 |
+LICENSE="MIT" |
40 |
+ |
41 |
+SLOT="0" |
42 |
+KEYWORDS="~amd64" |
43 |
+IUSE="test" |
44 |
+ |
45 |
+# Restrict tests since they now require the specific rspec version to be |
46 |
+# provided in an environment variable. |
47 |
+#RESTRICT="test" |
48 |
+ |
49 |
+ruby_add_rdepend " |
50 |
+ >=dev-ruby/activesupport-3.0:* |
51 |
+ >=dev-ruby/railties-3.0:* |
52 |
+ >=dev-ruby/rspec-rails-2.2:* |
53 |
+" |
54 |
+ |
55 |
+ruby_add_bdepend " |
56 |
+ test? ( |
57 |
+ >=dev-ruby/rails-4.0 |
58 |
+ >=dev-ruby/uglifier-1.3 |
59 |
+ >=dev-ruby/rake-0.10 |
60 |
+ >=dev-ruby/coffee-rails-4.0 |
61 |
+ >=dev-ruby/sass-rails-4.0 |
62 |
+ >=dev-ruby/jquery-rails-3.0 |
63 |
+ dev-util/cucumber |
64 |
+ dev-util/aruba |
65 |
+ dev-ruby/sqlite3 |
66 |
+ dev-ruby/bundler |
67 |
+ )" |
68 |
+ |
69 |
+all_ruby_prepare() { |
70 |
+ # fix the gemspec; we remove the version dependencies from there, as |
71 |
+ # it requires _older_ versions of its dependencies.. it doesn't |
72 |
+ # really seem to be the case though. Also remove the references to |
73 |
+ # git ls-files to avoid calling it. |
74 |
+ sed -i \ |
75 |
+ -e '/git ls-files/d' \ |
76 |
+ -e '/\(cucumber\|aruba\)/s:,.*$::' \ |
77 |
+ ${RUBY_FAKEGEM_GEMSPEC} || die |
78 |
+ |
79 |
+ # haml-rails is not packaged |
80 |
+ sed -i -e '/haml-rails/d' ${RUBY_FAKEGEM_GEMSPEC} Gemfile || die |
81 |
+ rm -f spec/ammeter/rspec/generator/matchers/have_correct_syntax_spec.rb || die |
82 |
+} |
83 |
+ |
84 |
+each_ruby_test() { |
85 |
+ ${RUBY} -S bundle exec ${RUBY} -S rspec-3 spec || die |
86 |
+} |