/[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.16 - (show annotations) (download)
Mon Jan 28 15:16:10 2013 UTC (3 months, 3 weeks ago) by aballier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.15: +3 -3 lines
keyword ~amd64-fbsd

(Portage version: 2.2.0_alpha161/cvs/Linux x86_64, signed Manifest commit with key 160F534A)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/rake/rake-0.9.2.2.ebuild,v 1.15 2012/11/06 16:54:02 jer Exp $
4
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 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
21 IUSE="bash-completion doc"
22
23 DEPEND="${DEPEND} app-arch/gzip"
24 RDEPEND="${RDEPEND}"
25
26 ruby_add_bdepend "doc? ( dev-ruby/rdoc )
27 test? ( dev-ruby/minitest )"
28
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 # Avoid tests which can't work in bootstrapping because the test runs
34 # in a directory that can't access the file being loaded.
35 rm test/test_rake_clean.rb || die
36 sed -i -e '/test_run_code_rake/,/^ end/ s:^:#:' test/test_rake_test_task.rb || die
37
38 # Decompress the file. The compressed version has errors, ignore them.
39 zcat doc/rake.1.gz > doc/rake.1
40 }
41
42 all_ruby_compile() {
43 if use doc; then
44 ruby -Ilib bin/rake rdoc || die "doc generation failed"
45 fi
46 }
47
48 each_ruby_test() {
49 ${RUBY} bin/rake test || die "tests failed"
50 }
51
52 all_ruby_install() {
53 ruby_fakegem_binwrapper rake
54
55 if use doc; then
56 pushd html
57 dohtml -r *
58 popd
59 fi
60
61 doman doc/rake.1
62
63 dobashcompletion "${FILESDIR}"/rake.bash-completion rake
64 }

  ViewVC Help
Powered by ViewVC 1.1.13