Gentoo Archives: gentoo-commits

From: "Robin H. Johnson" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/gh/
Date: Sat, 16 Feb 2019 23:52:12
Message-Id: 1550361082.e936ab9c374e5fb171057afb3759b1aae2261ead.robbat2@gentoo
1 commit: e936ab9c374e5fb171057afb3759b1aae2261ead
2 Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 16 23:15:57 2019 +0000
4 Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 16 23:51:22 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e936ab9c
7
8 dev-ruby/gh: add ruby25
9
10 Package-Manager: Portage-2.3.59, Repoman-2.3.12
11 Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
12
13 dev-ruby/gh/gh-0.15.1-r2.ebuild | 47 +++++++++++++++++++++++++++++++++++++++++
14 1 file changed, 47 insertions(+)
15
16 diff --git a/dev-ruby/gh/gh-0.15.1-r2.ebuild b/dev-ruby/gh/gh-0.15.1-r2.ebuild
17 new file mode 100644
18 index 00000000000..b239382a9b7
19 --- /dev/null
20 +++ b/dev-ruby/gh/gh-0.15.1-r2.ebuild
21 @@ -0,0 +1,47 @@
22 +# Copyright 1999-2019 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=6
26 +
27 +USE_RUBY="ruby23 ruby24 ruby25"
28 +RUBY_FAKEGEM_RECIPE_DOC="rdoc"
29 +RUBY_FAKEGEM_RECIPE_TEST="rspec3"
30 +
31 +RUBY_FAKEGEM_GEMSPEC="gh.gemspec"
32 +
33 +inherit ruby-fakegem
34 +
35 +DESCRIPTION="multi-layer client for the github api v3"
36 +HOMEPAGE="https://github.com/travis-ci/gh"
37 +SRC_URI="https://github.com/travis-ci/gh/archive/v${PV}.tar.gz -> ${P}.tar.gz"
38 +
39 +LICENSE="MIT"
40 +SLOT="0"
41 +KEYWORDS="~amd64"
42 +IUSE=""
43 +
44 +ruby_add_bdepend "
45 + dev-ruby/webmock
46 +"
47 +
48 +ruby_add_rdepend "
49 + >=dev-ruby/addressable-2.4.0:0
50 + dev-ruby/backports
51 + >dev-ruby/faraday-0.8
52 + >dev-ruby/multi_json-1.0
53 + dev-ruby/net-http-pipeline
54 +"
55 +
56 +RDEPEND="${RDEPEND}
57 + ruby_targets_ruby23? ( >=dev-ruby/net-http-persistent-2.9:0[ruby_targets_ruby23] )
58 + ruby_targets_ruby24? ( >=dev-ruby/net-http-persistent-2.9:0[ruby_targets_ruby24] )
59 + ruby_targets_ruby25? ( >=dev-ruby/net-http-persistent-3:3[ruby_targets_ruby25] )
60 +"
61 +
62 +all_ruby_prepare() {
63 + sed -i \
64 + -e '/addressable/ s/2.4.0/2.4/' \
65 + -e '/net-http-persistent/ s/~> 2.9/>= 2.9/' \
66 + -e 's/git ls-files/find/' \
67 + "${RUBY_FAKEGEM_GEMSPEC}" || die
68 +}