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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sat Jul 12 07:01:07 2014 UTC (5 years, 3 months ago) by graaff
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Remove vulnerable versions.

(Portage version: 2.2.8-r1/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-3.2.18.ebuild,v 1.2 2014/05/06 21:20:17 mrueg Exp $
4
5 EAPI=5
6 USE_RUBY="ruby19 ruby20"
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/archive/v${PV}.tar.gz -> rails-${PV}.tgz"
22
23 LICENSE="MIT"
24 SLOT="$(get_version_component_range 1-2)"
25 KEYWORDS="~amd64 ~arm ~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-${PV}/${PN}"
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.13
48 )
49 doc? (
50 >=dev-ruby/redcloth-4.1.1
51 )"
52
53 all_ruby_prepare() {
54 # Remove items from the common Gemfile that we don't need for this
55 # test run. This also requires handling some gemspecs.
56 sed -i -e '/\(uglifier\|system_timer\|sdoc\|w3c_validators\|pg\)/d' ../Gemfile || die
57
58 # Also allow rdoc 4.x
59 sed -i -e 's/~> 3.4/>= 3.4/' ${RUBY_FAKEGEM_GEMSPEC} || die
60 }
61
62 all_ruby_install() {
63 all_fakegem_install
64
65 if use doc ; then
66 mv guides/output guides/guides || die
67 dohtml -r guides/guides
68 fi
69
70 ruby_fakegem_binwrapper rails rails-${PV}
71 }
72
73 pkg_postinst() {
74 elog "To select between slots of rails, use:"
75 elog "\teselect rails"
76
77 eselect rails update
78 }
79
80 pkg_postrm() {
81 eselect rails update
82 }

  ViewVC Help
Powered by ViewVC 1.1.20