1 |
commit: 3ceead4ad40890333387526f25feac30a054fedc |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 11 09:30:14 2020 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 11 16:12:41 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ceead4a |
7 |
|
8 |
dev-ruby/oauth2: add 1.4.2 |
9 |
|
10 |
Package-Manager: Portage-2.3.79, Repoman-2.3.16 |
11 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
12 |
|
13 |
dev-ruby/oauth2/Manifest | 1 + |
14 |
dev-ruby/oauth2/oauth2-1.4.2.ebuild | 49 +++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 50 insertions(+) |
16 |
|
17 |
diff --git a/dev-ruby/oauth2/Manifest b/dev-ruby/oauth2/Manifest |
18 |
index ed24c22bbb5..cf4e40d9c9a 100644 |
19 |
--- a/dev-ruby/oauth2/Manifest |
20 |
+++ b/dev-ruby/oauth2/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST oauth2-1.4.0.tar.gz 21299 BLAKE2B 1fe4640b374450279e556477c23972030d3aecac4c96e9174e57458deaccfbfa012e3bb66fe3db5e845a4004b91b763dab6f68b885ed7c1ddb2710cda29a8486 SHA512 2db67cba2403be8ea5d6f88f9818f295c29c08201f8ea5876c55cffe2fa926be465a11061654adffd77d13da9c7e56353ece7e4595cd9501acdcfeb58573b300 |
23 |
DIST oauth2-1.4.1.tar.gz 27946 BLAKE2B e6edd113db26bdad09697c45efa5490bfb49b5c3fafdb7337c5f5c2b135025cc43fe7de450b3e106c6abfb8acb3afd676181ebd6aa1c18f6c5255597b04006df SHA512 14c039d19bcd177506e2f6189797b1791b54bd3fbe53973ad471c44744e3179c02e2f7a855a0cafe332e66819f1708d86c1dd89cbe57668ad642efa49e924b25 |
24 |
+DIST oauth2-1.4.2.tar.gz 27168 BLAKE2B 687149a111247a9636985447e82f5776ed42333e85bea6e0c61ff8f05759ba66dd1d418ca6efd7f1b5de5b56a731f889fc53f3413f5fd426b73ee6d4ef9ca929 SHA512 14075637431c6636a51d49930eae14c0328b0325add4829703d539c70b8cc35285acb02948a90717ab44f9153a0a9425b2d1b6559641b790ec133935904391f6 |
25 |
|
26 |
diff --git a/dev-ruby/oauth2/oauth2-1.4.2.ebuild b/dev-ruby/oauth2/oauth2-1.4.2.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..f046e1a04dd |
29 |
--- /dev/null |
30 |
+++ b/dev-ruby/oauth2/oauth2-1.4.2.ebuild |
31 |
@@ -0,0 +1,49 @@ |
32 |
+# Copyright 1999-2020 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+USE_RUBY="ruby24 ruby25 ruby26" |
38 |
+ |
39 |
+RUBY_FAKEGEM_TASK_TEST="none" |
40 |
+ |
41 |
+RUBY_FAKEGEM_DOCDIR="rdoc" |
42 |
+RUBY_FAKEGEM_EXTRADOC="README.md" |
43 |
+ |
44 |
+RUBY_FAKEGEM_GEMSPEC="oauth2.gemspec" |
45 |
+ |
46 |
+inherit ruby-fakegem eutils |
47 |
+ |
48 |
+DESCRIPTION="Wrapper for the OAuth 2.0 protocol with a similar style to the OAuth gem" |
49 |
+HOMEPAGE="https://github.com/intridea/oauth2" |
50 |
+SRC_URI="https://github.com/intridea/oauth2/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
51 |
+ |
52 |
+LICENSE="MIT" |
53 |
+SLOT="0" |
54 |
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
55 |
+IUSE="" |
56 |
+ |
57 |
+ruby_add_rdepend ">=dev-ruby/faraday-0.8 <dev-ruby/faraday-2.0 |
58 |
+ || ( dev-ruby/jwt:2 dev-ruby/jwt:0 ) |
59 |
+ >=dev-ruby/multi_json-1.3 =dev-ruby/multi_json-1* |
60 |
+ >=dev-ruby/multi_xml-0.5:0 |
61 |
+ >=dev-ruby/rack-1.2:* <dev-ruby/rack-3:*" |
62 |
+ruby_add_bdepend "test? ( dev-ruby/rspec:3 )" |
63 |
+ |
64 |
+all_ruby_prepare() { |
65 |
+ sed -i -e '/simplecov/,/^ end/ s:^:#:' \ |
66 |
+ -e '/silent/I s:^:#:' \ |
67 |
+ -e '1irequire "uri"' spec/helper.rb || die |
68 |
+ |
69 |
+ sed -i -e '/yardstick/,/^end/ s:^:#:' \ |
70 |
+ -e '/bundler/I s:^:#:' Rakefile || die |
71 |
+ |
72 |
+ # Avoid spec that is too fragile in relation to ENV |
73 |
+ sed -i -e '/outputs to $stdout when OAUTH_DEBUG=true/a skip "fragile ENV stubbing"' spec/oauth2/client_spec.rb || die |
74 |
+ |
75 |
+ sed -i -e 's/git ls-files -z/find . -print0/' ${RUBY_FAKEGEM_GEMSPEC} || die |
76 |
+} |
77 |
+ |
78 |
+each_ruby_test() { |
79 |
+ CI=true ${RUBY} -S rspec-3 spec || die |
80 |
+} |