/[gentoo-x86]/dev-ruby/bcat/bcat-0.6.2.ebuild
Gentoo

Contents of /dev-ruby/bcat/bcat-0.6.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (hide annotations) (download)
Sun Aug 19 10:56:10 2012 UTC (2 years, 3 months ago) by blueness
Branch: MAIN
Changes since 1.6: +2 -2 lines
Keyword ~ppc ~ppc64, bug #417573

(Portage version: 2.1.11.9/cvs/Linux x86_64)

1 graaff 1.2 # Copyright 1999-2012 Gentoo Foundation
2 graaff 1.1 # Distributed under the terms of the GNU General Public License v2
3 blueness 1.7 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/bcat/bcat-0.6.2.ebuild,v 1.6 2012/07/22 13:40:28 graaff Exp $
4 graaff 1.1
5     EAPI=4
6 graaff 1.2 USE_RUBY="ruby18 ruby19 ree18"
7 graaff 1.1
8     RUBY_FAKEGEM_TASK_DOC="man"
9     RUBY_FAKEGEM_EXTRADOC="README"
10    
11     inherit ruby-fakegem
12    
13     DESCRIPTION="A pipe to browser utility for use at the shell and within editors like Vim or Emacs."
14     HOMEPAGE="http://github.com/rtomayko/bcat"
15    
16     LICENSE="MIT"
17     SLOT="0"
18 blueness 1.7 KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86 ~x86-fbsd"
19 graaff 1.1 IUSE=""
20    
21 graaff 1.6 # Collides on /usr/bin/bcat, bug 418301
22     RDEPEND="${RDEPEND} !!app-accessibility/speech-tools"
23    
24 graaff 1.1 ruby_add_bdepend "doc? ( app-text/ronn )"
25     ruby_add_bdepend "test? ( virtual/ruby-test-unit )"
26    
27     ruby_add_rdepend "dev-ruby/rack"
28    
29 graaff 1.2 each_ruby_prepare() {
30     sed -i -e "s/a2h/#{ENV['RUBY']} -S a2h/" test/test_bcat_a2h.rb || die
31     }
32    
33     each_ruby_test() {
34     # The Rakefile uses weird trickery with load path that causes gems
35     # not to be found. Run tests directly instead and do the trickery
36     # here to support popen calls for the bins in this package.
37     RUBY=${RUBY} RUBYLIB=lib:${RUBYLIB} PATH=bin:${PATH} ${RUBY} -S testrb test/test_*.rb || die
38     }
39    
40 graaff 1.1 all_ruby_install() {
41     all_fakegem_install
42    
43     doman man/*.1
44     }

  ViewVC Help
Powered by ViewVC 1.1.20