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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Aug 27 18:16:16 2012 UTC (7 years, 1 month ago) by graaff
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Remove vulnerable versions.

(Portage version: 2.1.11.9/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/railties/railties-3.2.7.ebuild,v 1.1 2012/07/27 06:15:43 graaff Exp $
4
5 EAPI=4
6 USE_RUBY="ruby18 ruby19 ree18"
7
8 RUBY_FAKEGEM_TASK_TEST="test:regular"
9 RUBY_FAKEGEM_TASK_DOC="generate_guides"
10 RUBY_FAKEGEM_DOCDIR="guides/output"
11 RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.rdoc"
12
13 RUBY_FAKEGEM_GEMSPEC="railties.gemspec"
14
15 RUBY_FAKEGEM_BINWRAP=""
16
17 inherit ruby-fakegem versionator
18
19 DESCRIPTION="Tools for creating, working with, and running Rails applications."
20 HOMEPAGE="http://github.com/rails/rails"
21 SRC_URI="http://github.com/rails/rails/tarball/v${PV} -> rails-${PV}.tgz"
22
23 LICENSE="MIT"
24 SLOT="$(get_version_component_range 1-2)"
25 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
26 IUSE=""
27
28 RUBY_S="rails-rails-*/railties"
29
30 # The test suite has many failures, most likely due to a mismatch in
31 # exact dependencies or environment specifics. Needs further
32 # investigation.
33 RESTRICT="test"
34
35 RDEPEND+=">=app-admin/eselect-rails-0.18"
36
37 ruby_add_rdepend "
38 ~dev-ruby/activesupport-${PV}
39 ~dev-ruby/actionpack-${PV}
40 >=dev-ruby/rdoc-3.4
41 >=dev-ruby/thor-0.14.6
42 >=dev-ruby/rack-ssl-1.3.2:1.3
43 >=dev-ruby/rake-0.8.7"
44
45 ruby_add_bdepend "
46 test? (
47 >=dev-ruby/mocha-0.9.5
48 virtual/ruby-test-unit
49 )
50 doc? (
51 >=dev-ruby/redcloth-4.1.1
52 )"
53
54 all_ruby_prepare() {
55 # Remove items from the common Gemfile that we don't need for this
56 # test run. This also requires handling some gemspecs.
57 sed -i -e '/\(uglifier\|system_timer\|sdoc\|w3c_validators\|pg\)/d' ../Gemfile || die
58 }
59
60 all_ruby_install() {
61 all_fakegem_install
62
63 ruby_fakegem_binwrapper rails rails-${PV}
64 }
65
66 pkg_postinst() {
67 elog "To select between slots of rails, use:"
68 elog "\teselect rails"
69
70 eselect rails update
71 }
72
73 pkg_postrm() {
74 eselect rails update
75 }

  ViewVC Help
Powered by ViewVC 1.1.20