blob: b8f35dd84629e08dc43b584901c80f13c8dae0a5 (
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
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rails-observers/rails-observers-0.1.2.ebuild,v 1.3 2014/10/18 07:53:29 graaff Exp $
EAPI=5
USE_RUBY="ruby19 ruby20 ruby21"
RUBY_FAKEGEM_TASK_TEST="test:regular"
RUBY_FAKEGEM_TASK_DOC=""
RUBY_FAKEGEM_DOCDIR="doc"
RUBY_FAKEGEM_EXTRADOC="README.md"
inherit ruby-fakegem versionator
DESCRIPTION="Rails Observers"
HOMEPAGE="https://github.com/rails/rails-observers"
SRC_URI="https://github.com/rails/${PN}/archive/v${PV}.tar.gz -> ${P}.tgz"
LICENSE="MIT"
SLOT="$(get_version_component_range 1-2)"
KEYWORDS="~amd64"
IUSE=""
RUBY_PATCHES=( "${P}-fix-tests.patch" )
ruby_add_rdepend "=dev-ruby/activemodel-4*"
ruby_add_bdepend "
test? (
dev-ruby/bundler
>=dev-ruby/minitest-3
=dev-ruby/railties-4*
=dev-ruby/activerecord-4*
=dev-ruby/actionmailer-4*
=dev-ruby/actionpack-4*
>=dev-ruby/sqlite3-1.3
)"
all_ruby_prepare() {
# Avoid rake test since it will run with the wrong ruby interpreter.
rm test/rake_test.rb || die
}
|