Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/oauth2/
Date: Tue, 31 Jul 2018 04:53:41
Message-Id: 1533012619.dce8ab112266ad5bc6aba965612d46a56c3c95c1.graaff@gentoo
1 commit: dce8ab112266ad5bc6aba965612d46a56c3c95c1
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jul 31 04:50:19 2018 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Tue Jul 31 04:50:19 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dce8ab11
7
8 dev-ruby/oauth2: loosen faraday dependency further
9
10 Package-Manager: Portage-2.3.40, Repoman-2.3.9
11
12 dev-ruby/oauth2/oauth2-1.4.0-r2.ebuild | 49 ++++++++++++++++++++++++++++++++++
13 1 file changed, 49 insertions(+)
14
15 diff --git a/dev-ruby/oauth2/oauth2-1.4.0-r2.ebuild b/dev-ruby/oauth2/oauth2-1.4.0-r2.ebuild
16 new file mode 100644
17 index 00000000000..283663a9010
18 --- /dev/null
19 +++ b/dev-ruby/oauth2/oauth2-1.4.0-r2.ebuild
20 @@ -0,0 +1,49 @@
21 +# Copyright 1999-2018 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=6
25 +
26 +USE_RUBY="ruby23 ruby24 ruby25"
27 +
28 +RUBY_FAKEGEM_TASK_TEST="none"
29 +RUBY_FAKEGEM_TASK_DOC="doc:rdoc"
30 +
31 +RUBY_FAKEGEM_DOCDIR="rdoc"
32 +RUBY_FAKEGEM_EXTRADOC="README.md"
33 +
34 +RUBY_FAKEGEM_GEMSPEC="oauth2.gemspec"
35 +
36 +inherit ruby-fakegem eutils
37 +
38 +DESCRIPTION="Wrapper for the OAuth 2.0 protocol with a similar style to the OAuth gem"
39 +HOMEPAGE="https://github.com/intridea/oauth2"
40 +SRC_URI="https://github.com/intridea/oauth2/archive/v${PV}.tar.gz -> ${P}.tar.gz"
41 +
42 +LICENSE="MIT"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
45 +IUSE=""
46 +
47 +ruby_add_rdepend ">=dev-ruby/faraday-0.8 <dev-ruby/faraday-0.16
48 + >=dev-ruby/jwt-1.0 =dev-ruby/jwt-1*
49 + >=dev-ruby/multi_json-1.3 =dev-ruby/multi_json-1*
50 + >=dev-ruby/multi_xml-0.5:0
51 + >=dev-ruby/rack-1.2:* <dev-ruby/rack-3:*"
52 +ruby_add_bdepend "test? ( dev-ruby/rspec:3 )"
53 +
54 +all_ruby_prepare() {
55 + sed -i -e '/faraday/ s/0.13/0.16/' ${RUBY_FAKEGEM_GEMSPEC} || die
56 +
57 + sed -i -e '/simplecov/,/^ end/ s:^:#:' \
58 + -e '1irequire "uri"' spec/helper.rb || die
59 +
60 + sed -i -e '/yardstick/,/^end/ s:^:#:' \
61 + -e '/bundler/I s:^:#:' Rakefile || die
62 +
63 + # Avoid spec that is too fragile in relation to ENV
64 + sed -i -e '/outputs to $stdout when OAUTH_DEBUG=true/a skip "fragile ENV stubbing"' spec/oauth2/client_spec.rb || die
65 +}
66 +
67 +each_ruby_test() {
68 + CI=true ${RUBY} -S rspec-3 spec || die
69 +}