1 |
commit: 2baf6309bfd8c10a03377bae40281b25e743f327 |
2 |
Author: Hans de Graaff <hans <AT> degraaff <DOT> org> |
3 |
AuthorDate: Fri Aug 26 21:13:26 2016 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 26 21:13:26 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/dev/graaff.git/commit/?id=2baf6309 |
7 |
|
8 |
dev-ruby/oauth-plugin: loosen oauth dependency |
9 |
|
10 |
Package-Manager: portage-2.2.28 |
11 |
|
12 |
dev-ruby/oauth-plugin/oauth-plugin-0.5.1-r1.ebuild | 41 ++++++++++++++++++++++ |
13 |
1 file changed, 41 insertions(+) |
14 |
|
15 |
diff --git a/dev-ruby/oauth-plugin/oauth-plugin-0.5.1-r1.ebuild b/dev-ruby/oauth-plugin/oauth-plugin-0.5.1-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 0000000..cbddaac |
18 |
--- /dev/null |
19 |
+++ b/dev-ruby/oauth-plugin/oauth-plugin-0.5.1-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" |
27 |
+ |
28 |
+RUBY_FAKEGEM_RECIPE_TEST="rspec" |
29 |
+ |
30 |
+RUBY_FAKEGEM_TASK_DOC="" |
31 |
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG README.rdoc UPGRADE.rdoc" |
32 |
+ |
33 |
+RUBY_FAKEGEM_EXTRAINSTALL="generators init.rb rails tasks" |
34 |
+ |
35 |
+RUBY_FAKEGEM_GEMSPEC="oauth-plugin.gemspec" |
36 |
+ |
37 |
+inherit ruby-fakegem |
38 |
+ |
39 |
+DESCRIPTION="A plugin for implementing OAuth Providers and Consumers in Rails applications." |
40 |
+HOMEPAGE="http://github.com/pelle/oauth-plugin" |
41 |
+ |
42 |
+LICENSE="MIT" |
43 |
+SLOT="0.4" |
44 |
+KEYWORDS="~amd64" |
45 |
+IUSE="doc" |
46 |
+ |
47 |
+ruby_add_rdepend ">=dev-ruby/oauth-0.4.4 =dev-ruby/oauth-0* >=dev-ruby/oauth2-0.5.0 dev-ruby/rack:* dev-ruby/multi_json" |
48 |
+ |
49 |
+all_ruby_prepare() { |
50 |
+ # Avoid specs that fail with new hash ordering. Remove the whole |
51 |
+ # file because the specs as written are very brittle and can't be |
52 |
+ # handled individually. |
53 |
+ # https://github.com/pelle/oauth-plugin/issues/127 |
54 |
+ rm spec/oauth/provider/authorizer_spec.rb || die |
55 |
+ |
56 |
+ # Avoid unneeded dependency on git. |
57 |
+ sed -i -e '/git ls-files/d' ${RUBY_FAKEGEM_GEMSPEC} || die |
58 |
+ |
59 |
+ # Loosen oauth dependency |
60 |
+ sed -i -e '/oauth/ s/0.4.4/0.4/' ${RUBY_FAKEGEM_GEMSPEC} || die |
61 |
+} |