/[gentoo-x86]/dev-ruby/railties/railties-4.0.12.ebuild
Gentoo

Contents of /dev-ruby/railties/railties-4.0.12.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Sun May 24 18:49:40 2015 UTC (4 years, 5 months ago) by graaff
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Cleanup.

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

1 graaff 1.2 # Copyright 1999-2015 Gentoo Foundation
2 graaff 1.1 # Distributed under the terms of the GNU General Public License v2
3 graaff 1.4 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/railties/railties-4.0.12.ebuild,v 1.3 2015/03/31 19:22:42 ulm Exp $
4 graaff 1.1
5     EAPI=5
6     USE_RUBY="ruby19 ruby20 ruby21"
7    
8     RUBY_FAKEGEM_TASK_TEST="test:regular"
9     RUBY_FAKEGEM_TASK_DOC=""
10     RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.rdoc"
11    
12     RUBY_FAKEGEM_GEMSPEC="railties.gemspec"
13    
14     RUBY_FAKEGEM_BINWRAP=""
15    
16     inherit ruby-fakegem versionator
17    
18     DESCRIPTION="Tools for creating, working with, and running Rails applications"
19 graaff 1.2 HOMEPAGE="https://github.com/rails/rails"
20     SRC_URI="https://github.com/rails/rails/archive/v${PV}.tar.gz -> rails-${PV}.tgz"
21 graaff 1.1
22     LICENSE="MIT"
23     SLOT="$(get_version_component_range 1-2)"
24     KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
25     IUSE=""
26    
27     RUBY_S="rails-${PV}/${PN}"
28    
29     # The test suite has many failures, most likely due to a mismatch in
30     # exact dependencies or environment specifics. Needs further
31     # investigation.
32     RESTRICT="test"
33    
34 ulm 1.3 RDEPEND+=">=app-eselect/eselect-rails-0.19"
35 graaff 1.1
36     ruby_add_rdepend "
37     ~dev-ruby/activesupport-${PV}
38     ~dev-ruby/actionpack-${PV}
39     >=dev-ruby/thor-0.18.1
40     >=dev-ruby/rake-0.8.7"
41    
42     ruby_add_bdepend "
43     test? (
44     dev-ruby/mocha:0.13
45     )"
46    
47     all_ruby_prepare() {
48     rm "${S}/../Gemfile" || die "Unable to remove Gemfile"
49     sed -i -e '/load_paths/d' test/abstract_unit.rb || die "Unable to remove load paths"
50     sed -i -e '1igem "minitest", "~>4.0"' test/abstract_unit.rb || die
51    
52     # Also allow rdoc 4.x
53     sed -i -e 's/~> 3.4/>= 3.4/' ${RUBY_FAKEGEM_GEMSPEC} || die
54     }
55    
56     all_ruby_install() {
57     all_fakegem_install
58    
59     ruby_fakegem_binwrapper rails rails-${PV}
60     }
61    
62     pkg_postinst() {
63     elog "To select between slots of rails, use:"
64     elog "\teselect rails"
65    
66     eselect rails update
67     }
68    
69     pkg_postrm() {
70     eselect rails update
71     }

  ViewVC Help
Powered by ViewVC 1.1.20