diff options
author | Hans de Graaff <graaff@gentoo.org> | 2011-02-14 19:43:38 +0000 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2011-02-14 19:43:38 +0000 |
commit | e085c1b5795257f4ed4963bf668fa44ebd130242 (patch) | |
tree | cf659097b001d6339ee6fd52b15ebfd4bcb8fd6d /dev-ruby/rubigen/rubigen-1.5.6.ebuild | |
parent | alpha/ia64/sparc stable wrt #349053 (diff) | |
download | gentoo-2-e085c1b5795257f4ed4963bf668fa44ebd130242.tar.gz gentoo-2-e085c1b5795257f4ed4963bf668fa44ebd130242.tar.bz2 gentoo-2-e085c1b5795257f4ed4963bf668fa44ebd130242.zip |
Version bump. Add ree18.
(Portage version: 2.1.9.25/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby/rubigen/rubigen-1.5.6.ebuild')
-rw-r--r-- | dev-ruby/rubigen/rubigen-1.5.6.ebuild | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/dev-ruby/rubigen/rubigen-1.5.6.ebuild b/dev-ruby/rubigen/rubigen-1.5.6.ebuild new file mode 100644 index 000000000000..5c97f6ae8d07 --- /dev/null +++ b/dev-ruby/rubigen/rubigen-1.5.6.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubigen/rubigen-1.5.6.ebuild,v 1.1 2011/02/14 19:43:38 graaff Exp $ + +EAPI="2" +USE_RUBY="ruby18 ree18" + +RUBY_FAKEGEM_TASK_DOC="docs" +RUBY_FAKEGEM_DOCDIR="doc" +RUBY_FAKEGEM_EXTRADOC="History.txt README.rdoc Todo.txt" + +RUBY_FAKEGEM_EXTRAINSTALL="app_generators generators rubygems_generators script test_unit_generators" + +inherit ruby-fakegem + +DESCRIPTION="A framework to allow Ruby applications to generate file/folder stubs." +HOMEPAGE="https://github.com/drnic/rubigen" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~ppc64 ~x86" +IUSE="" + +# The presence of a self-dependency is needed as per bug #320781; +# since this is a bad situation, don't close the bug, but try working +# it around. +ruby_add_bdepend "test? ( + >=dev-ruby/mocha-0.9.8 + >=dev-ruby/shoulda-2.10.3 + >=dev-util/cucumber-0.6.2 + >=dev-ruby/hoe-2.5.0 + =${CATEGORY}/${PF} + virtual/ruby-test-unit + !dev-ruby/test-unit:2 +)" + +ruby_add_rdepend "=dev-ruby/activesupport-2.3*" + +all_ruby_prepare() { + # Remove newgem requirement from the Rakefile since it is not + # needed for our purposes and we don't have it in CVS. + sed -i '/newgem/d' Rakefile || die "Unable to remove unneeded newgem support." + + rm -f test/test_generate_builtin_application.rb || die "Unable to remove broken test." + + # Fix features when RSpec 2.x is present. Reported upstream via pull + # request: https://github.com/drnic/rubigen/pull/5 + sed -i -e "s/gem 'rspec'/gem 'rspec', '~> 1.2'/" features/support/env.rb || die +} + +each_ruby_test() { + each_fakegem_test + + # Run all features not related to creating and distributing the gem itself + ${RUBY} -S cucumber features/help.feature features/rubigen_cli.feature || die "tests failed" +} |