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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Nov 7 10:13:15 2014 UTC (4 years, 11 months ago) by graaff
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Remove vulnerable versions.

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

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/railties/railties-4.1.5.ebuild,v 1.1 2014/08/18 22:19:06 graaff Exp $
4
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 HOMEPAGE="http://github.com/rails/rails"
20 SRC_URI="http://github.com/rails/rails/archive/v${PV}.tar.gz -> rails-${PV}.tgz"
21
22 LICENSE="MIT"
23 SLOT="$(get_version_component_range 1-2)"
24 KEYWORDS="~amd64 ~arm ~ppc ~ppc64"
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 RDEPEND+=">=app-admin/eselect-rails-0.19"
35
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/actionview-${PV}
45 dev-ruby/mocha:0.13
46 )"
47
48 all_ruby_prepare() {
49 rm "${S}/../Gemfile" || die "Unable to remove Gemfile"
50 sed -i -e '/load_paths/d' test/abstract_unit.rb || die "Unable to remove load paths"
51 sed -i -e '1igem "minitest", "~>4.0"' test/abstract_unit.rb || die
52
53 # Also allow rdoc 4.x
54 sed -i -e 's/~> 3.4/>= 3.4/' ${RUBY_FAKEGEM_GEMSPEC} || die
55 }
56
57 all_ruby_install() {
58 all_fakegem_install
59
60 ruby_fakegem_binwrapper rails rails-${PV}
61 }
62
63 pkg_postinst() {
64 elog "To select between slots of rails, use:"
65 elog "\teselect rails"
66
67 eselect rails update
68 }
69
70 pkg_postrm() {
71 eselect rails update
72 }

  ViewVC Help
Powered by ViewVC 1.1.20