1 |
commit: 3e8a3b48c726b99015a0411cd1a59d6367c7f9d8 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jun 3 05:31:31 2018 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jun 3 05:31:31 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e8a3b48 |
7 |
|
8 |
dev-ruby/webrobots: add ruby25 and missing vcr dependency |
9 |
|
10 |
Package-Manager: Portage-2.3.40, Repoman-2.3.9 |
11 |
|
12 |
dev-ruby/webrobots/webrobots-0.1.2-r1.ebuild | 34 ++++++++++++++++++++++++++++ |
13 |
1 file changed, 34 insertions(+) |
14 |
|
15 |
diff --git a/dev-ruby/webrobots/webrobots-0.1.2-r1.ebuild b/dev-ruby/webrobots/webrobots-0.1.2-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..413984e979a |
18 |
--- /dev/null |
19 |
+++ b/dev-ruby/webrobots/webrobots-0.1.2-r1.ebuild |
20 |
@@ -0,0 +1,34 @@ |
21 |
+# Copyright 1999-2018 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=5 |
25 |
+USE_RUBY="ruby23 ruby24 ruby25" |
26 |
+ |
27 |
+RUBY_FAKEGEM_RECIPE_DOC="rdoc" |
28 |
+RUBY_FAKEGEM_DOCDIR="rdoc" |
29 |
+RUBY_FAKEGEM_EXTRADOC="README.rdoc" |
30 |
+ |
31 |
+inherit ruby-fakegem |
32 |
+ |
33 |
+DESCRIPTION="A library to help write robots.txt compliant web robots" |
34 |
+HOMEPAGE="https://github.com/knu/webrobots" |
35 |
+ |
36 |
+LICENSE="BSD-2" |
37 |
+SLOT="0" |
38 |
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris" |
39 |
+IUSE="" |
40 |
+ |
41 |
+ruby_add_rdepend ">=dev-ruby/nokogiri-1.4.4" |
42 |
+ |
43 |
+ruby_add_bdepend "test? ( dev-ruby/shoulda dev-ruby/test-unit:2 dev-ruby/webmock dev-ruby/vcr )" |
44 |
+ |
45 |
+all_ruby_prepare() { |
46 |
+ sed -i -e '/bundler/,/end/d' Rakefile test/helper.rb || die |
47 |
+ |
48 |
+ # Avoid tests for live websites requirering a network connection. |
49 |
+ sed -i -e '/robots.txt in the real world/,/^ end/ s:^:#:' test/test_webrobots.rb || die |
50 |
+} |
51 |
+ |
52 |
+each_ruby_test() { |
53 |
+ ruby-ng_testrb-2 -Ilib test/test_*.rb |
54 |
+} |