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: Mon, 30 Jul 2018 20:59:32
Message-Id: 1532984356.89a4ee18a5b00f49a901c7808f90a4c157d3896a.graaff@gentoo
1 commit: 89a4ee18a5b00f49a901c7808f90a4c157d3896a
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jul 30 20:57:57 2018 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Mon Jul 30 20:59:16 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89a4ee18
7
8 dev-ruby/oauth2: loosen faraday dependency
9
10 Package-Manager: Portage-2.3.40, Repoman-2.3.9
11
12 dev-ruby/oauth2/oauth2-1.4.0-r1.ebuild | 46 ++++++++++++++++++++++++++++++++++
13 1 file changed, 46 insertions(+)
14
15 diff --git a/dev-ruby/oauth2/oauth2-1.4.0-r1.ebuild b/dev-ruby/oauth2/oauth2-1.4.0-r1.ebuild
16 new file mode 100644
17 index 00000000000..d79d21c9015
18 --- /dev/null
19 +++ b/dev-ruby/oauth2/oauth2-1.4.0-r1.ebuild
20 @@ -0,0 +1,46 @@
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"
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.15
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.15/' ${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 +
64 +each_ruby_test() {
65 + CI=true ${RUBY} -S rspec-3 spec || die
66 +}