1 |
commit: 79a68a744d2d9f839c544890368d6f55683daeda |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Mar 6 06:23:47 2016 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Mar 6 06:23:47 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79a68a74 |
7 |
|
8 |
dev-ruby/oauth: add 0.5.1 |
9 |
|
10 |
Drop x86 keyword due to missing keywords in dependencies, bug 563858. |
11 |
|
12 |
Package-Manager: portage-2.2.26 |
13 |
|
14 |
dev-ruby/oauth/Manifest | 1 + |
15 |
dev-ruby/oauth/oauth-0.5.1.ebuild | 45 +++++++++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 46 insertions(+) |
17 |
|
18 |
diff --git a/dev-ruby/oauth/Manifest b/dev-ruby/oauth/Manifest |
19 |
index d2e4fd4..bf150f7 100644 |
20 |
--- a/dev-ruby/oauth/Manifest |
21 |
+++ b/dev-ruby/oauth/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST oauth-0.4.7.gem 50688 SHA256 bca47d77c946af466872269e37e470837858b1305d5143e5a56c50356e02b2cc SHA512 7d8df61574aaf53ffcb206c6a210546c36b67b2c545d6b31afef2961ee135050923f427dc4720379b7689eef9d921015c26fedd8b11bbd13761dd498155fc550 WHIRLPOOL 5a9dd0eeb2137db2b9810482dca116bf38c06ed75dff2df434118c147ed907d4fdad55dfd2e9c0751b42a110cd240c2ff70bfca75bcffc7f08dd454f65ca7591 |
24 |
+DIST oauth-0.5.1.tar.gz 46675 SHA256 462839c6a685b72d619e050869d15abb889f98b010ee97a19ea5a2bc4e39ad91 SHA512 fe00e4455ab72edb38051e0c203f27b299b624cdc3ba031de9aea33c1429a54a364f066297dae86c22b723859ab8bd8854b02d344ec49a535c28b256e96593a6 WHIRLPOOL b9813500cc920a74ac7b48414bcb80f266cad4f8407fc9a62ac1c0da69c92dcd83f1b837de2b7caf8e2a89727c794bc3b0652f1091981e70d82122e7fd6470a9 |
25 |
|
26 |
diff --git a/dev-ruby/oauth/oauth-0.5.1.ebuild b/dev-ruby/oauth/oauth-0.5.1.ebuild |
27 |
new file mode 100644 |
28 |
index 0000000..39c3094 |
29 |
--- /dev/null |
30 |
+++ b/dev-ruby/oauth/oauth-0.5.1.ebuild |
31 |
@@ -0,0 +1,45 @@ |
32 |
+# Copyright 1999-2016 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+# $Id$ |
35 |
+ |
36 |
+EAPI=5 |
37 |
+USE_RUBY="ruby20 ruby21 ruby22" |
38 |
+ |
39 |
+RUBY_FAKEGEM_TASK_DOC="" |
40 |
+ |
41 |
+RUBY_FAKEGEM_EXTRADOC="HISTORY README.rdoc TODO" |
42 |
+ |
43 |
+inherit ruby-fakegem |
44 |
+ |
45 |
+DESCRIPTION="A RubyGem for implementing both OAuth clients and servers" |
46 |
+HOMEPAGE="https://github.com/oauth-xx/oauth-ruby" |
47 |
+SRC_URI="https://github.com/oauth-xx/oauth-ruby/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
48 |
+RUBY_S="${PN}-ruby-${PV}" |
49 |
+ |
50 |
+LICENSE="MIT" |
51 |
+SLOT="0" |
52 |
+KEYWORDS="~amd64 ~x86-macos" |
53 |
+IUSE="" |
54 |
+ |
55 |
+ruby_add_bdepend "test? ( |
56 |
+ dev-ruby/test-unit:2 |
57 |
+ dev-ruby/mocha:1.0 |
58 |
+ dev-ruby/webmock |
59 |
+ dev-ruby/rack )" |
60 |
+ |
61 |
+all_ruby_prepare() { |
62 |
+ # Require a compatible version of mocha |
63 |
+ sed -i -e '1igem "mocha", "~> 1.0"' \ |
64 |
+ -e '2i gem "test-unit"; require "test/unit"' \ |
65 |
+ -e '/byebug/ s:^:#:' test/test_helper.rb || die |
66 |
+ |
67 |
+ # Remove tests that require Rails 2.3 since that is ruby18-only. |
68 |
+ rm -f test/test_action_controller_request_proxy.rb || die |
69 |
+ |
70 |
+ # Remove typhoeus tests since they require an old version. |
71 |
+ rm -f test/test_typhoeus_request_proxy.rb || die |
72 |
+} |
73 |
+ |
74 |
+each_ruby_test() { |
75 |
+ ${RUBY} -I.:lib -e 'Dir["test/**/test_*.rb"].each{|f| require f}' || die |
76 |
+} |