/[gentoo-x86]/dev-ruby/actionpack/actionpack-3.2.8.ebuild
Gentoo

Contents of /dev-ruby/actionpack/actionpack-3.2.8.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Aug 10 06:43:45 2012 UTC (2 years, 4 months ago) by graaff
Branch: MAIN
Version bump for security bug 430718.

(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/actionpack/actionpack-3.2.7.ebuild,v 1.1 2012/07/27 06:14:14 graaff Exp $
4
5 EAPI=4
6
7 USE_RUBY="ruby18 ruby19 ree18"
8
9 # The default test task tries to test activerecord with SQLite as well.
10 RUBY_FAKEGEM_TASK_TEST="test_action_pack"
11
12 RUBY_FAKEGEM_TASK_DOC=""
13 RUBY_FAKEGEM_DOCDIR="doc"
14 RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.rdoc"
15
16 RUBY_FAKEGEM_GEMSPEC="actionpack.gemspec"
17
18 inherit ruby-fakegem versionator
19
20 DESCRIPTION="Eases web-request routing, handling, and response."
21 HOMEPAGE="http://rubyforge.org/projects/actionpack/"
22 SRC_URI="http://github.com/rails/rails/tarball/v${PV} -> rails-${PV}.tgz"
23
24 LICENSE="MIT"
25 SLOT="$(get_version_component_range 1-2)"
26 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
27 IUSE=""
28
29 RUBY_S="rails-rails-*/actionpack"
30
31 ruby_add_rdepend "
32 ~dev-ruby/activemodel-${PV}
33 ~dev-ruby/activesupport-${PV}
34 >=dev-ruby/rack-cache-1.2
35 >=dev-ruby/builder-3.0.0:3
36 >=dev-ruby/erubis-2.7.0
37 >=dev-ruby/i18n-0.6:0.6
38 >=dev-ruby/rack-1.4.0:1.4
39 >=dev-ruby/rack-test-0.6.1:0.6
40 >=dev-ruby/journey-1.0.4:1.0
41 >=dev-ruby/sprockets-2.1.3:2.1"
42
43 ruby_add_bdepend "
44 test? (
45 >=dev-ruby/mocha-0.12.1
46 dev-ruby/bundler
47 ~dev-ruby/activerecord-${PV}
48 ~dev-ruby/actionmailer-${PV}
49 >=dev-ruby/tzinfo-0.3.29
50 >=dev-ruby/uglifier-1.0.3
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 "/\(system_timer\|sdoc\|w3c_validators\|pg\|jquery-rails\|'mysql'\|journey\|ruby-prof\)/d" ../Gemfile || die
57
58 sed -i -e '/rack-ssl/d' ../railties/railties.gemspec || die
59 sed -i -e '/mail/d' ../actionmailer/actionmailer.gemspec || die
60
61 # Avoid fragile tests depending on hash ordering
62 sed -i -e '/cookie_3=chocolate/ s:^:#:' test/controller/integration_test.rb || die
63 sed -i -e '/test_to_s/,/end/ s:^:#:' test/template/html-scanner/tag_node_test.rb || die
64 sed -i -e '/"name":"david"/ s:^:#:' test/controller/mime_responds_test.rb || die
65 sed -i -e '/test_option_html_attributes_with_multiple_element_hash/, / end/ s:^:#:' test/template/form_options_helper_test.rb || die
66 sed -i -e '/test_option_html_attributes_with_multiple_hashes/, / end/ s:^:#:' test/template/form_options_helper_test.rb || die
67 }

  ViewVC Help
Powered by ViewVC 1.1.20