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