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

Contents of /dev-ruby/railties/railties-4.0.10.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.0.10.ebuild,v 1.1 2014/09/12 05:56:13 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 ~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 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/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