blob: bcfeb0d11811e1038c823bef59caf279b36dee69 (
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
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
USE_RUBY="ruby20 ruby21 ruby22"
RUBY_FAKEGEM_RECIPE_DOC="yard"
RUBY_FAKEGEM_RECIPE_TEST="rspec"
RUBY_FAKEGEM_EXTRADOC="README.md CHANGELOG.md"
RUBY_FAKEGEM_GEMSPEC=${PN}.gemspec
inherit ruby-fakegem
DESCRIPTION="Pry is a powerful alternative to the standard IRB shell for Ruby"
HOMEPAGE="https://github.com/pry/pry/wiki"
SRC_URI="https://github.com/pry/pry/archive/v${PV}.tar.gz -> ${P}.tar.gz"
IUSE=""
SLOT="ruby19"
LICENSE="MIT"
KEYWORDS="~amd64 ~arm ~ppc64 ~x86"
ruby_add_rdepend "
>=dev-ruby/coderay-1.1.0 =dev-ruby/coderay-1.1*
>=dev-ruby/slop-3.4.1:3
>=dev-ruby/method_source-0.8.1 =dev-ruby/method_source-0.8*"
ruby_add_bdepend "
test? (
>=dev-ruby/open4-1.3
>=dev-ruby/rake-0.9
>=dev-ruby/mocha-1.0
)"
all_ruby_prepare() {
# Avoid unneeded dependency on git.
# Loosen coderay dependency.
sed -e '/git ls-files/d' \
-e '/coderay/s/~>/>=/' \
-e '/bundler/d' \
-i ${RUBY_FAKEGEM_GEMSPEC} || die
sed -e '/[Bb]undler/d' -e "1irequire 'mocha/api'\ " -i spec/helper.rb || die
sed -e "1irequire 'ostruct'\ " -i spec/hooks_spec.rb || die
sed -e '/of Class after the singleton classes/,+4d' -i spec/method_spec.rb || die
# Out of date tests
rm spec/commands/gist_spec.rb || die
}
|