/[gentoo-x86]/dev-ruby/rake/rake-0.9.2.2.ebuild
Gentoo

Contents of /dev-ruby/rake/rake-0.9.2.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (hide annotations) (download)
Fri Jul 13 06:09:53 2012 UTC (10 months, 1 week ago) by graaff
Branch: MAIN
Changes since 1.5: +2 -2 lines
Don't manipulate the include path for tests since the rake tasks already handle this. Fixes bug 426270.

(Portage version: 2.1.10.65/cvs/Linux x86_64)

1 graaff 1.3 # Copyright 1999-2012 Gentoo Foundation
2 graaff 1.1 # Distributed under the terms of the GNU General Public License v2
3 graaff 1.6 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/rake/rake-0.9.2.2.ebuild,v 1.5 2012/05/26 06:15:10 graaff Exp $
4 graaff 1.1
5     EAPI=4
6     USE_RUBY="ruby18 ree18 ruby19 jruby"
7    
8     RUBY_FAKEGEM_TASK_DOC=""
9     RUBY_FAKEGEM_EXTRADOC="CHANGES README.rdoc TODO"
10    
11     RUBY_FAKEGEM_TASK_TEST=""
12    
13     inherit bash-completion ruby-fakegem
14    
15     DESCRIPTION="Make-like scripting in Ruby"
16     HOMEPAGE="http://rake.rubyforge.org/"
17    
18     LICENSE="MIT"
19     SLOT="0"
20 grobian 1.2 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
21 graaff 1.1 IUSE="bash-completion doc"
22    
23     DEPEND="${DEPEND} app-arch/gzip"
24     RDEPEND="${RDEPEND}"
25    
26 graaff 1.3 ruby_add_bdepend "doc? ( dev-ruby/rdoc )
27     test? ( dev-ruby/minitest )"
28 graaff 1.1
29     all_ruby_prepare() {
30     # Comment out unimportant test which failes on ruby18 at least.
31     sed -i -e '/def test_classic_namespace/,/^ end/ s:^:#:' test/test_rake_application_options.rb || die
32    
33     # Decompress the file. The compressed version has errors, ignore them.
34     zcat doc/rake.1.gz > doc/rake.1
35     }
36    
37     all_ruby_compile() {
38     if use doc; then
39     ruby -Ilib bin/rake rdoc || die "doc generation failed"
40     fi
41     }
42    
43     each_ruby_test() {
44 graaff 1.6 ${RUBY} bin/rake test || die "tests failed"
45 graaff 1.1 }
46    
47     all_ruby_install() {
48     ruby_fakegem_binwrapper rake
49    
50     if use doc; then
51     pushd html
52     dohtml -r *
53     popd
54     fi
55    
56     doman doc/rake.1
57    
58     dobashcompletion "${FILESDIR}"/rake.bash-completion rake
59     }

  ViewVC Help
Powered by ViewVC 1.1.13