1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 USE_RUBY="ruby19 ruby20 ruby21 ruby22"
8 RUBY_FAKEGEM_TASK_DOC="man"
9 RUBY_FAKEGEM_EXTRADOC="README"
13 DESCRIPTION="A pipe to browser utility for use at the shell and within editors like Vim or Emacs"
14 HOMEPAGE="https://github.com/rtomayko/bcat"
18 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
21 # Collides on /usr/bin/bcat, bug 418301
22 RDEPEND="${RDEPEND} !!<app-accessibility/speech-tools-2.1-r3"
24 ruby_add_bdepend "doc? ( app-text/ronn )"
26 ruby_add_rdepend "dev-ruby/rack"
29 sed -i -e "s/a2h/#{ENV['RUBY']} -S a2h/" test/test_bcat_a2h.rb || die
33 # The Rakefile uses weird trickery with load path that causes gems
34 # not to be found. Run tests directly instead and do the trickery
35 # here to support popen calls for the bins in this package.
36 RUBY=${RUBY} RUBYLIB=lib:${RUBYLIB} PATH=bin:${PATH} ${RUBY} -S testrb test/test_*.rb || die