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/pry/
Date: Sat, 25 Apr 2020 12:16:08
Message-Id: 1587816957.9c6b287a01f198fa65e4fdecee92f70925afb753.graaff@gentoo
1 commit: 9c6b287a01f198fa65e4fdecee92f70925afb753
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 24 10:06:59 2020 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 25 12:15:57 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c6b287a
7
8 dev-ruby/pry: add 0.13.1
9
10 Package-Manager: Portage-2.3.89, Repoman-2.3.20
11 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
12
13 dev-ruby/pry/Manifest | 1 +
14 dev-ruby/pry/pry-0.13.1.ebuild | 45 ++++++++++++++++++++++++++++++++++++++++++
15 2 files changed, 46 insertions(+)
16
17 diff --git a/dev-ruby/pry/Manifest b/dev-ruby/pry/Manifest
18 index bef25e9fc93..491c869fbb3 100644
19 --- a/dev-ruby/pry/Manifest
20 +++ b/dev-ruby/pry/Manifest
21 @@ -1 +1,2 @@
22 DIST pry-0.12.2.tar.gz 237824 BLAKE2B 2a99e6092968150f2c685bc93004bd596adbe5e289bd52ee68f11b52512ac43d0e7079b8129445160652c668c355edae97f1fd0fd2ead940f769831ac9ecf4ff SHA512 b3a2a9a26d7062b994760fc5ca6c8b477813e215624d88ae56d23703429d3d8d21357b5d89583c1af1c7654f892c0c57ffbc6dd6b6f126e0a6b786c7c48df6af
23 +DIST pry-0.13.1.tar.gz 240103 BLAKE2B da4797e36aecba8bf1a785738339ed4be1e06ab28b329b66551a908898cd0515fc0da2434ba96e9fa0f350c9d32c13f850660bc0236c6c0218a4bd3182ec4ced SHA512 bec52c75dce365db68504634b2eaf6b0f312527031401199fcdbaa3ec5a9272148239d93305f8e66c4d36513f9fec3fe045e978c5a10f012a2880ab4a16b7e85
24
25 diff --git a/dev-ruby/pry/pry-0.13.1.ebuild b/dev-ruby/pry/pry-0.13.1.ebuild
26 new file mode 100644
27 index 00000000000..4b735fec073
28 --- /dev/null
29 +++ b/dev-ruby/pry/pry-0.13.1.ebuild
30 @@ -0,0 +1,45 @@
31 +# Copyright 1999-2020 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +USE_RUBY="ruby24 ruby25 ruby26 ruby27"
37 +
38 +RUBY_FAKEGEM_RECIPE_DOC="yard"
39 +RUBY_FAKEGEM_RECIPE_TEST="rspec3"
40 +RUBY_FAKEGEM_EXTRADOC="README.md CHANGELOG.md"
41 +RUBY_FAKEGEM_GEMSPEC=${PN}.gemspec
42 +
43 +inherit ruby-fakegem
44 +
45 +DESCRIPTION="Pry is a powerful alternative to the standard IRB shell for Ruby"
46 +HOMEPAGE="https://github.com/pry/pry/wiki"
47 +SRC_URI="https://github.com/pry/pry/archive/v${PV}.tar.gz -> ${P}.tar.gz"
48 +IUSE=""
49 +SLOT="ruby19"
50 +
51 +LICENSE="MIT"
52 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
53 +
54 +ruby_add_rdepend "
55 + >=dev-ruby/coderay-1.1.0 =dev-ruby/coderay-1.1*
56 + =dev-ruby/method_source-1*"
57 +
58 +ruby_add_bdepend "
59 + test? (
60 + >=dev-ruby/open4-1.3
61 + >=dev-ruby/rake-0.9
62 + >=dev-ruby/mocha-1.0
63 + )"
64 +
65 +all_ruby_prepare() {
66 + # Avoid unneeded dependency on git.
67 + # Loosen coderay dependency.
68 + sed -e '/git ls-files/d' \
69 + -i ${RUBY_FAKEGEM_GEMSPEC} || die
70 + sed -e '/[Bb]undler/d' -i spec/spec_helper.rb || die
71 +
72 + # Skip integration tests because they depend to much on specifics of the environment.
73 + rm -f spec/integration/* || die
74 + sed -i -e '/loads files through repl and exits/askip "depends on parent directory"' spec/cli_spec.rb || die
75 +}