/[gentoo-x86]/dev-ruby/rubigen/rubigen-1.5.7.ebuild
Gentoo

Contents of /dev-ruby/rubigen/rubigen-1.5.7.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Sun Sep 16 07:02:14 2012 UTC (8 months, 1 week ago) by graaff
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Cleanup.

(Portage version: 2.1.11.9/cvs/Linux x86_64)

1 graaff 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 graaff 1.2 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubigen/rubigen-1.5.7.ebuild,v 1.1 2012/01/01 08:47:38 graaff Exp $
4 graaff 1.1
5     EAPI="2"
6     USE_RUBY="ruby18 ree18"
7    
8     RUBY_FAKEGEM_TASK_DOC="docs"
9     RUBY_FAKEGEM_DOCDIR="doc"
10     RUBY_FAKEGEM_EXTRADOC="History.txt README.rdoc Todo.txt"
11    
12     RUBY_FAKEGEM_EXTRAINSTALL="app_generators generators rubygems_generators script test_unit_generators"
13    
14     inherit ruby-fakegem
15    
16     DESCRIPTION="A framework to allow Ruby applications to generate file/folder stubs."
17     HOMEPAGE="https://github.com/drnic/rubigen"
18    
19     LICENSE="MIT"
20     SLOT="0"
21     KEYWORDS="~amd64 ~ppc64 ~x86"
22     IUSE=""
23    
24     # The presence of a self-dependency is needed as per bug #320781;
25     # since this is a bad situation, don't close the bug, but try working
26     # it around.
27     ruby_add_bdepend "test? (
28     >=dev-ruby/mocha-0.9.8
29     >=dev-ruby/shoulda-2.10.3
30     >=dev-util/cucumber-0.6.2
31     >=dev-ruby/hoe-2.5.0
32     =${CATEGORY}/${PF}
33     )"
34    
35     ruby_add_rdepend "=dev-ruby/activesupport-2.3*"
36    
37     all_ruby_prepare() {
38     # Remove newgem requirement from the Rakefile since it is not
39     # needed for our purposes and we don't have it in CVS.
40     sed -i '/newgem/d' Rakefile || die "Unable to remove unneeded newgem support."
41    
42     # Provide missing file for test_generate_builtin_application.rb
43     mkdir -p app_generators/ruby_app/templates/configs || die
44     touch app_generators/ruby_app/templates/configs/empty_log || die
45    
46     # Needs to be explicit, most likely due to changes in newer cucumber.
47     sed -i -e '2 i include Spec::Matchers' features/support/matchers.rb || die
48     }
49    
50     each_ruby_test() {
51     each_fakegem_test
52    
53     # Run all features not related to creating and distributing the gem itself
54     ${RUBY} -S cucumber features/help.feature features/rubigen_cli.feature || die "tests failed"
55     }

  ViewVC Help
Powered by ViewVC 1.1.13