/[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.7 - (hide annotations) (download)
Sun Jan 20 15:00:23 2013 UTC (5 years, 6 months ago) by graaff
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
Remove vulnerable versions.

(Portage version: 2.1.11.31/cvs/Linux x86_64, signed Manifest commit with key 0x8883FA56A308A8D7!)

1 armin76 1.6 # Copyright 1999-2012 Gentoo Foundation
2 graaff 1.1 # Distributed under the terms of the GNU General Public License v2
3 graaff 1.7 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/rails/rails-2.3.14.ebuild,v 1.6 2012/05/01 18:24:10 armin76 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 armin76 1.6 KEYWORDS="amd64 ppc ppc64 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