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/bcat/
Date: Sun, 25 Mar 2018 07:25:08
Message-Id: 1521962590.9944fd678900ad16b7522ffa8d5f646563ab4207.graaff@gentoo
1 commit: 9944fd678900ad16b7522ffa8d5f646563ab4207
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 25 07:23:10 2018 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 25 07:23:10 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9944fd67
7
8 fidev-ruby/bcat: x dev-ruby/rack dependency
9
10 Closes: https://bugs.gentoo.org/651110
11 Package-Manager: Portage-2.3.24, Repoman-2.3.6
12
13 dev-ruby/bcat/bcat-0.6.2-r3.ebuild | 43 ++++++++++++++++++++++++++++++++++++++
14 1 file changed, 43 insertions(+)
15
16 diff --git a/dev-ruby/bcat/bcat-0.6.2-r3.ebuild b/dev-ruby/bcat/bcat-0.6.2-r3.ebuild
17 new file mode 100644
18 index 00000000000..7cb16e2a1ed
19 --- /dev/null
20 +++ b/dev-ruby/bcat/bcat-0.6.2-r3.ebuild
21 @@ -0,0 +1,43 @@
22 +# Copyright 1999-2018 Gentoo Foundation
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=5
26 +USE_RUBY="ruby22 ruby23 ruby24"
27 +
28 +RUBY_FAKEGEM_TASK_DOC="man"
29 +RUBY_FAKEGEM_EXTRADOC="README"
30 +
31 +inherit ruby-fakegem
32 +
33 +DESCRIPTION="Pipe to browser utility for use at the shell and within editors"
34 +HOMEPAGE="https://github.com/rtomayko/bcat"
35 +
36 +LICENSE="MIT"
37 +SLOT="0"
38 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
39 +IUSE=""
40 +
41 +# Collides on /usr/bin/bcat, bug 418301
42 +RDEPEND="${RDEPEND} !!<app-accessibility/speech-tools-2.1-r3"
43 +
44 +ruby_add_bdepend "doc? ( app-text/ronn )
45 + test? ( dev-ruby/test-unit:2 )"
46 +
47 +ruby_add_rdepend "=dev-ruby/rack-1*:*"
48 +
49 +each_ruby_prepare() {
50 + sed -i -e "s/a2h/#{ENV['RUBY']} -S a2h/" test/test_bcat_a2h.rb || die
51 +}
52 +
53 +each_ruby_test() {
54 + # The Rakefile uses weird trickery with load path that causes gems
55 + # not to be found. Run tests directly instead and do the trickery
56 + # here to support popen calls for the bins in this package.
57 + RUBY=${RUBY} RUBYLIB=lib:${RUBYLIB} PATH=bin:${PATH} ${RUBY} -S testrb-2 test/test_*.rb || die
58 +}
59 +
60 +all_ruby_install() {
61 + all_fakegem_install
62 +
63 + doman man/*.1
64 +}