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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Tue May 1 18:24:02 2012 UTC (2 years, 2 months ago) by armin76
Branch: MAIN
Changes since 1.5: +3 -3 lines
Drop ia64/sparc keywords

(Portage version: 2.1.10.53/cvs/Linux ia64, RepoMan options: --force)

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-2.3.14.ebuild,v 1.5 2011/08/27 19:07:01 armin76 Exp $
4
5 EAPI=2
6
7 USE_RUBY="ruby18 ree18 jruby"
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_DOCDIR="doc"
13 RUBY_FAKEGEM_EXTRADOC="CHANGELOG README"
14
15 inherit ruby-fakegem
16
17 DESCRIPTION="Eases web-request routing, handling, and response."
18 HOMEPAGE="http://rubyforge.org/projects/actionpack/"
19
20 LICENSE="MIT"
21 SLOT="2.3"
22 KEYWORDS="amd64 ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris ~x86-solaris"
23 IUSE=""
24
25 RUBY_PATCHES=( "${PN}-2.3.11-rails3.patch" "${PN}-2.3.10-i18n-0.4.2.patch" )
26
27 ruby_add_rdepend "~dev-ruby/activesupport-${PV}
28 >=dev-ruby/rack-1.1.0:0"
29
30 ruby_add_bdepend "
31 test? (
32 >=dev-ruby/mocha-0.9.7
33 dev-ruby/activerecord:${SLOT}
34 ~dev-ruby/actionmailer-${PV}
35 )"
36
37 all_ruby_prepare() {
38 # Custom template not found in package
39 sed -i -e '/horo/d' Rakefile || die
40
41 # This tries to load a “vendorized” copy of activerecord that we
42 # will never have. It can now also use a normally installed
43 # version but these tests fail.
44 sed -i -e '/PATH_TO_AR/s:^:#:' -e 's/self.able_to_connect = true/self.able_to_connect = false/' test/active_record_unit.rb || die
45
46 # Fix the testsuite, the symlink is not present in the gem for
47 # some reason
48 ln -s ../../symlink_parent test/fixtures/layout_tests/layouts/symlinked
49
50 # MemCacheStore tests no longer fail gracefully, and it's unlikely for
51 # someone to have them running anyway, so remove them for now.
52 rm test/controller/session/mem_cache_store_test.rb || die
53
54 # Fix tests when run against i18n 0.4.2 which ignores locale
55 # definitions with an empty data section.
56 sed -i -e 's/, {}/, {:test => "test"}/' test/template/render_test.rb || die
57 }

  ViewVC Help
Powered by ViewVC 1.1.20