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/oauth/
Date: Sat, 17 Feb 2018 08:05:50
Message-Id: 1518854674.31e5ffa3ccd33f5194bd31707704be514487260b.graaff@gentoo
1 commit: 31e5ffa3ccd33f5194bd31707704be514487260b
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 17 08:04:34 2018 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 17 08:04:34 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31e5ffa3
7
8 dev-ruby/oauth: add 0.5.4, fix test failure bug 646870
9
10 Package-Manager: Portage-2.3.19, Repoman-2.3.6
11
12 dev-ruby/oauth/Manifest | 1 +
13 dev-ruby/oauth/oauth-0.5.4.ebuild | 36 ++++++++++++++++++++++++++++++++++++
14 2 files changed, 37 insertions(+)
15
16 diff --git a/dev-ruby/oauth/Manifest b/dev-ruby/oauth/Manifest
17 index 88c72413fb5..f2664ebf573 100644
18 --- a/dev-ruby/oauth/Manifest
19 +++ b/dev-ruby/oauth/Manifest
20 @@ -1 +1,2 @@
21 DIST oauth-0.5.3.tar.gz 59355 BLAKE2B d676ca2aade85a43655ca95ff289b248c33197a06f58b5d998b834ec6750547c5b66d781f97b66b04584f6f6825d010434cb9a73cf5ec69b900a73f0dce1d8f0 SHA512 658a0b2c8b2eaa51981fd274c5058996309aa0a7098fad8221ca4074f51d996c17c5bdd8373da5e13b6cdc782b9d59769b705f2aa6ad724a2ebd14034ff92e9e
22 +DIST oauth-0.5.4.tar.gz 59141 BLAKE2B 1e588d411795b7c5b4ae5b7b3c9928b69aaa005bef858137759757e9f06d6de144408e4dba33d7fbf82a3f2586238a71b85b89c681f5d633453dfe0da954a2fb SHA512 f114f80255944934a276d0f9556ed37e4a0a72b221269cf7792f2c3a5a1504c5ec726fd5b7437b1102c648a6cf451a1c83de4689f53d30ea8c6a1d62662de535
23
24 diff --git a/dev-ruby/oauth/oauth-0.5.4.ebuild b/dev-ruby/oauth/oauth-0.5.4.ebuild
25 new file mode 100644
26 index 00000000000..3694fe7cabc
27 --- /dev/null
28 +++ b/dev-ruby/oauth/oauth-0.5.4.ebuild
29 @@ -0,0 +1,36 @@
30 +# Copyright 1999-2018 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=6
34 +USE_RUBY="ruby22 ruby23 ruby24"
35 +
36 +RUBY_FAKEGEM_RECIPE_DOC="rdoc"
37 +
38 +RUBY_FAKEGEM_EXTRADOC="HISTORY README.rdoc TODO"
39 +
40 +inherit ruby-fakegem
41 +
42 +DESCRIPTION="A RubyGem for implementing both OAuth clients and servers"
43 +HOMEPAGE="https://github.com/oauth-xx/oauth-ruby"
44 +SRC_URI="https://github.com/oauth-xx/oauth-ruby/archive/v${PV}.tar.gz -> ${P}.tar.gz"
45 +RUBY_S="${PN}-ruby-${PV}"
46 +
47 +LICENSE="MIT"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~x86 ~x86-macos"
50 +IUSE=""
51 +
52 +ruby_add_bdepend "test? (
53 + dev-ruby/test-unit:2
54 + dev-ruby/mocha:1.0
55 + dev-ruby/webmock
56 + dev-ruby/rack
57 + dev-ruby/actionpack:5.1
58 +)"
59 +
60 +all_ruby_prepare() {
61 + # Require a compatible version of mocha
62 + sed -i -e '1igem "mocha", "~> 1.0"; gem "actionpack", "~>5.1.0"' \
63 + -e '2i gem "test-unit"; require "test/unit"' \
64 + -e '/\(byebug\|minitest_helpers\|simplecov\)/I s:^:#:' test/test_helper.rb || die
65 +}