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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Aug 11 08:37:13 2012 UTC (2 years, 2 months ago) by graaff
Branch: MAIN
Version bumps 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.1.7.ebuild,v 1.1 2012/07/28 07:38:38 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
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="3.1"
26 KEYWORDS="~amd64 ~ppc64 ~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.3.6:1.3
39 >=dev-ruby/rack-mount-0.8.2:0.8
40 >=dev-ruby/rack-test-0.6.1:0.6
41 >=dev-ruby/sprockets-2.0.4:2.0"
42
43 ruby_add_bdepend "
44 test? (
45 dev-ruby/mocha
46 dev-ruby/bundler
47 ~dev-ruby/activerecord-${PV}
48 ~dev-ruby/actionmailer-${PV}
49 >=dev-ruby/tzinfo-0.3.29
50 )"
51
52 all_ruby_prepare() {
53 # Remove items from the common Gemfile that we don't need for this
54 # test run. This also requires handling some gemspecs.
55 sed -i -e '/\(uglifier\|system_timer\|sdoc\|w3c_validators\|pg\|jquery-rails\|"mysql"\|ruby-prof\)/d' ../Gemfile || die
56
57 sed -i -e '/rack-ssl/d' ../railties/railties.gemspec || die
58 sed -i -e '/mail/d' ../actionmailer/actionmailer.gemspec || die
59 sed -i -e "s/, '< 1.3'//" ../activesupport/activesupport.gemspec || die
60
61 # Loosen mocha version restriction
62 sed -i -e 's/0.10.5/>= 0.10.5/' ../Gemfile || die
63
64 # Avoid fragile tests depending on hash ordering
65 sed -i -e '/cookie_3=chocolate/ s:^:#:' test/controller/integration_test.rb || die
66 sed -i -e '/test_to_s/,/end/ s:^:#:' test/template/html-scanner/tag_node_test.rb || die
67 sed -i -e '/"name":"david"/ s:^:#:' test/controller/mime_responds_test.rb || die
68 sed -i -e '/test_option_html_attributes_with_multiple_element_hash/, / end/ s:^:#:' test/template/form_options_helper_test.rb || die
69 sed -i -e '/test_option_html_attributes_with_multiple_hashes/, / end/ s:^:#:' test/template/form_options_helper_test.rb || die
70 }

  ViewVC Help
Powered by ViewVC 1.1.20