/[gentoo-x86]/dev-ruby/thor/thor-0.15.2.ebuild
Gentoo

Contents of /dev-ruby/thor/thor-0.15.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Jun 7 21:57:39 2012 UTC (2 years, 1 month ago) by flameeyes
Branch: MAIN
Version bump; new dependency, fixed tests.

(Portage version: 2.2.0_alpha110/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/thor/thor-0.14.6.ebuild,v 1.7 2012/05/01 18:24:26 armin76 Exp $
4
5 EAPI=4
6 USE_RUBY="ruby18 ree18 ruby19 jruby"
7
8 RUBY_FAKEGEM_TASK_DOC=""
9 RUBY_FAKEGEM_TASK_TEST=""
10 RUBY_FAKEGEM_DOCDIR="rdoc"
11 RUBY_FAKEGEM_EXTRADOC="CHANGELOG.rdoc README.md"
12 RUBY_FAKEGEM_BINWRAP="thor"
13
14 RUBY_S="wycats-${PN}-*"
15
16 inherit ruby-fakegem
17
18 DESCRIPTION="A scripting framework that replaces rake and sake"
19 HOMEPAGE="http://github.com/wycats/thor"
20
21 SRC_URI="http://github.com/wycats/${PN}/tarball/v${PV} -> ${PN}-git-${PV}.tgz"
22
23 LICENSE="MIT"
24 SLOT="0"
25 KEYWORDS="~amd64"
26 IUSE="doc"
27
28 ruby_add_bdepend "
29 test? (
30 dev-ruby/fakeweb
31 dev-ruby/rspec:2
32 dev-ruby/childlabor
33 )
34 doc? (
35 dev-ruby/rdoc
36 )"
37
38 all_ruby_prepare() {
39 # Remove rspec default options (as we might not have the last
40 # rspec).
41 rm .rspec || die
42
43 # Remove Bundler
44 rm Gemfile || die
45 sed -i -e '/[Bb]undler/d' Thorfile || die
46
47 # Remove mandatory coverage collection using simplecov which is not
48 # packaged.
49 sed -i -e '/require .simplecov/, /^end/ d' spec/spec_helper.rb || die
50 }
51
52 all_ruby_compile() {
53 if use doc; then
54 ruby -Ilib bin/thor rdoc || die "RDoc generation failed"
55 fi
56 }
57
58 each_ruby_test() {
59 ${RUBY} -S rspec spec || die "Tests for ${RUBY} failed"
60 }

  ViewVC Help
Powered by ViewVC 1.1.20