1 |
commit: 93fc27fc5e82a7b2e70f655ce2fb275f48a30783 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Oct 13 05:51:51 2016 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Oct 13 05:51:51 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=93fc27fc |
7 |
|
8 |
dev-ruby/http: add ruby23 revision |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
dev-ruby/http/http-0.9.8-r1.ebuild | 41 ++++++++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 41 insertions(+) |
14 |
|
15 |
diff --git a/dev-ruby/http/http-0.9.8-r1.ebuild b/dev-ruby/http/http-0.9.8-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000..7f77048 |
18 |
--- /dev/null |
19 |
+++ b/dev-ruby/http/http-0.9.8-r1.ebuild |
20 |
@@ -0,0 +1,41 @@ |
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="ruby20 ruby21 ruby22 ruby23" |
27 |
+ |
28 |
+RUBY_FAKEGEM_RECIPE_TEST="rspec3" |
29 |
+ |
30 |
+RUBY_FAKEGEM_RECIPE_DOC="rdoc" |
31 |
+RUBY_FAKEGEM_EXTRADOC="CHANGES.md README.md" |
32 |
+ |
33 |
+inherit ruby-fakegem |
34 |
+ |
35 |
+DESCRIPTION="An easy-to-use client library for making requests from Ruby" |
36 |
+HOMEPAGE="https://github.com/tarcieri/http" |
37 |
+ |
38 |
+LICENSE="MIT" |
39 |
+SLOT="0.8" |
40 |
+KEYWORDS="~amd64 ~arm ~ppc64" |
41 |
+IUSE="" |
42 |
+ |
43 |
+ruby_add_rdepend " |
44 |
+ >=dev-ruby/addressable-2.3 |
45 |
+ >=dev-ruby/http-cookie-1.0 |
46 |
+ >=dev-ruby/http-form_data-1.0.1:1.0 |
47 |
+ >=dev-ruby/http_parser_rb-0.6.0 =dev-ruby/http_parser_rb-0.6*" |
48 |
+ |
49 |
+ruby_add_bdepend " |
50 |
+ test? ( dev-ruby/certificate_authority dev-ruby/rspec-its )" |
51 |
+ |
52 |
+all_ruby_prepare() { |
53 |
+ sed -i -e '/simplecov/,/end/ s:^:#:' \ |
54 |
+ -e '1irequire "cgi"' spec/spec_helper.rb || die |
55 |
+ |
56 |
+ # Avoid specs that require network access |
57 |
+ sed -i -e '/.persistent/,/^ end/ s:^:#:' \ |
58 |
+ spec/lib/http_spec.rb || die |
59 |
+ sed -i -e '/with non-ASCII URLs/,/^ end/ s:^:#:' \ |
60 |
+ spec/lib/http/client_spec.rb || die |
61 |
+} |