/[gentoo-x86]/dev-ruby/activerecord/activerecord-3.2.22.ebuild
Gentoo

Contents of /dev-ruby/activerecord/activerecord-3.2.22.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Tue Jun 16 21:12:29 2015 UTC (2 years, 5 months ago) by graaff
Branch: MAIN
CVS Tags: HEAD
Version bump.

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0x8883FA56A308A8D7!)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/activerecord/activerecord-3.2.21.ebuild,v 1.2 2015/06/09 14:39:00 mrueg Exp $
4
5 EAPI=5
6 USE_RUBY="ruby19 ruby20 ruby21"
7
8 # this is not null so that the dependencies will actually be filled
9 RUBY_FAKEGEM_TASK_TEST="test"
10
11 RUBY_FAKEGEM_TASK_DOC=""
12 RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.rdoc"
13
14 RUBY_FAKEGEM_GEMSPEC="activerecord.gemspec"
15
16 inherit ruby-fakegem versionator
17
18 DESCRIPTION="Implements the ActiveRecord pattern (Fowler, PoEAA) for ORM"
19 HOMEPAGE="http://rubyforge.org/projects/activerecord/"
20 SRC_URI="http://github.com/rails/rails/archive/v${PV}.tar.gz -> rails-${PV}.tgz"
21
22 LICENSE="MIT"
23 SLOT="$(get_version_component_range 1-2)"
24 KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
25 IUSE="mysql postgres sqlite"
26
27 RUBY_S="rails-${PV}/${PN}"
28
29 ruby_add_rdepend "~dev-ruby/activesupport-${PV}
30 ~dev-ruby/activemodel-${PV}
31 >=dev-ruby/arel-3.0.2:3.0
32 >=dev-ruby/tzinfo-0.3.29:0
33 sqlite? ( >=dev-ruby/sqlite3-1.3.5 )
34 mysql? ( >=dev-ruby/mysql2-0.3.10:0.3 )
35 postgres? ( >=dev-ruby/pg-0.11.0 )"
36
37 ruby_add_bdepend "
38 test? (
39 dev-ruby/bundler
40 ~dev-ruby/actionpack-${PV}
41 >=dev-ruby/sqlite3-1.3.5
42 dev-ruby/mocha:0.13
43 )"
44
45 all_ruby_prepare() {
46 # Remove items from the common Gemfile that we don't need for this
47 # test run. This also requires handling some gemspecs.
48 sed -i -e "/\(uglifier\|system_timer\|sdoc\|w3c_validators\|pg\|jquery-rails\|'mysql'\|journey\|ruby-prof\|benchmark-ips\|nokogiri\)/d" ../Gemfile || die
49 sed -i -e '/rack-ssl/d' -e 's/~> 3.4/>= 3.4/' ../railties/railties.gemspec || die
50 sed -i -e '/mail/d' ../actionmailer/actionmailer.gemspec || die
51 # sed -i -e '/[Bb]undler/d' ../load_paths.rb || die
52 sed -i -e '/bcrypt/ s/3.0.0/3.0/' ../Gemfile || die
53
54 # Avoid tests depending on hash ordering
55 sed -i -e '/test_should_automatically_build_new_associated/,/ end/ s:^:#:' test/cases/nested_attributes_test.rb || die
56
57 # Avoid test depending on mysql adapter which we don't support for
58 # this Rails version to simplify our dependencies.
59 rm test/cases/connection_specification/resolver_test.rb || die
60
61 # Avoid test depending on specific sqlite3 binding or database version.
62 sed -i -e '/test_uniqueness_violations_are_translated/,/^ end/ s:^:#:' test/cases/adapter_test.rb || die
63 }
64
65 each_ruby_test() {
66 if use sqlite; then
67 ${RUBY} -I. -S rake test_sqlite3 || die "sqlite3 tests failed"
68 fi
69 }

  ViewVC Help
Powered by ViewVC 1.1.20