/[gentoo-x86]/dev-ruby/rails/rails-2.3.14.ebuild
Gentoo

Contents of /dev-ruby/rails/rails-2.3.14.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Thu Aug 18 17:44:53 2011 UTC (7 years, 3 months ago) by xarthisius
Branch: MAIN
Changes since 1.2: +2 -2 lines
ppc64/ppc stable wrt #379511

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

1 graaff 1.1 # Copyright 1999-2011 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 xarthisius 1.3 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/rails/rails-2.3.14.ebuild,v 1.2 2011/08/18 10:08:27 chainsaw Exp $
4 graaff 1.1
5     EAPI=2
6     USE_RUBY="ruby18 ree18"
7    
8     RUBY_FAKEGEM_EXTRAINSTALL="builtin configs doc dispatches environments fresh_rakefile helpers html README"
9     RUBY_FAKEGEM_EXTRADOC="README CHANGELOG"
10    
11     RUBY_FAKEGEM_BINWRAP=""
12    
13     # gem lacks tests
14     RUBY_FAKEGEM_TASK_TEST=""
15    
16     inherit ruby-fakegem
17    
18     DESCRIPTION="ruby on rails is a web-application and persistance framework"
19     HOMEPAGE="http://www.rubyonrails.org"
20    
21     LICENSE="MIT"
22     SLOT="2.3"
23 xarthisius 1.3 KEYWORDS="amd64 ~ia64 ppc ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris ~x86-solaris"
24 graaff 1.1
25     IUSE=""
26    
27     RDEPEND=">=app-admin/eselect-rails-0.15"
28    
29     ruby_add_rdepend ">=dev-ruby/rake-0.8.3
30     dev-ruby/rdoc
31     ~dev-ruby/activerecord-${PV}
32     ~dev-ruby/activeresource-${PV}
33     ~dev-ruby/activesupport-${PV}
34     ~dev-ruby/actionmailer-${PV}
35     ~dev-ruby/actionpack-${PV}"
36     ruby_add_bdepend "doc? ( dev-ruby/redcloth )"
37    
38     all_ruby_prepare() {
39     sed -i -e '/horo/d' Rakefile || die "Could not remove reference to unavailable documentation template."
40    
41     # Create the documentation that we create on the fly in a separate
42     # directory, since we need to install the doc directory for the
43     # rails script.
44     sed -i -e "s/rdoc_dir = 'doc'/rdoc_dir = 'rdoc'/" Rakefile || die
45    
46     }
47    
48     all_ruby_install() {
49     all_fakegem_install
50    
51     ruby_fakegem_binwrapper rails rails-${PV}
52    
53     if use doc; then
54     pushd rdoc
55     docinto api
56     dohtml -r *
57     popd
58     fi
59     }
60    
61     pkg_postinst() {
62     elog "To select between slots of rails, use:"
63     elog "\teselect rails"
64    
65     eselect rails update
66     }
67    
68     pkg_postrm() {
69     eselect rails update
70     }

  ViewVC Help
Powered by ViewVC 1.1.20