summaryrefslogtreecommitdiff
blob: f7bc2da2f20ab729bf32b242206ef3c2477b7b14 (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-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=5
USE_RUBY="ruby22 ruby23 ruby24"

RUBY_FAKEGEM_RECIPE_DOC="rdoc"
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.markdown README.markdown"

RUBY_FAKEGEM_GEMSPEC="web-console.gemspec"

inherit ruby-fakegem

DESCRIPTION="A debugging tool for your Ruby on Rails applications"
HOMEPAGE="https://github.com/rails/web-console"
SRC_URI="https://github.com/rails/web-console/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""

ruby_add_rdepend "
	>=dev-ruby/activemodel-4.0:*
	>=dev-ruby/binding_of_caller-0.7.2
	>=dev-ruby/railties-4.0:*
	>=dev-ruby/sprockets-rails-2.0:* <dev-ruby/sprockets-rails-4.0:*
"

ruby_add_bdepend "test? (
	dev-ruby/bundler
	dev-ruby/rails:4.2
	dev-ruby/sqlite3
	dev-ruby/mocha
	dev-ruby/simplecov
)"

all_ruby_prepare() {
	# Use an installed rails version rather than live source from github.
	sed -i -e "/'rails'/ s/,/, '~> 4.2' #/" \
		-e "/'arel'/ s/,/#/" \
		-e '/simplecov/ s:^:#:' Gemfile || die
	sed -i -e '/simplecov/I s:^:#:' test/test_helper.rb || die
}