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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Tue May 1 18:24:26 2012 UTC (2 years, 5 months ago) by armin76
Branch: MAIN
Changes since 1.6: +3 -3 lines
Drop ia64/sparc keywords

(Portage version: 2.1.10.53/cvs/Linux ia64, RepoMan options: --force)

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.6 2011/12/31 21:42:46 grobian Exp $
4
5 EAPI=2
6 USE_RUBY="ruby18 ree18 ruby19"
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 inherit ruby-fakegem
15
16 DESCRIPTION="A scripting framework that replaces rake and sake"
17 HOMEPAGE="http://github.com/wycats/thor"
18
19 SRC_URI="http://github.com/wycats/${PN}/tarball/v${PV} -> ${PN}-git-${PV}.tgz"
20 S="${WORKDIR}/wycats-${PN}-*"
21
22 LICENSE="MIT"
23 SLOT="0"
24 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
25 IUSE="doc"
26
27 ruby_add_bdepend "
28 test? ( dev-ruby/fakeweb dev-ruby/rspec:2 )
29 doc? ( dev-ruby/rdoc )"
30
31 all_ruby_prepare() {
32 # Remove Bundler
33 rm Gemfile Gemfile.lock || die
34 sed -i -e '/[Bb]undler/d' Thorfile || die
35
36 # Remove mandatory coverage collection using simplecov which is not
37 # packaged.
38 sed -i -e '3,7d' spec/spec_helper.rb || die
39 }
40
41 all_ruby_compile() {
42 if use doc; then
43 ruby -Ilib bin/thor rdoc || die "RDoc generation failed"
44 fi
45 }
46
47 each_ruby_test() {
48 ${RUBY} -Ilib/ bin/thor spec || die "Tests for ${RUBY} failed"
49 }

  ViewVC Help
Powered by ViewVC 1.1.20