forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
awesome_print-1.8.0.ebuild
39 lines (28 loc) · 978 Bytes
/
awesome_print-1.8.0.ebuild
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
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
USE_RUBY="ruby21 ruby22 ruby23"
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
RUBY_FAKEGEM_TASK_DOC=""
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
inherit ruby-fakegem
DESCRIPTION="Library to pretty print Ruby objects in full color with proper indentation"
HOMEPAGE="https://github.com/awesome-print/awesome_print"
SRC_URI="https://github.com/awesome-print/awesome_print/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
KEYWORDS="~alpha ~amd64 ~hppa ~ppc64 ~x86 ~x86-fbsd"
SLOT="0"
IUSE=""
ruby_add_bdepend "test? (
dev-ruby/nokogiri
)"
all_ruby_prepare() {
sed -i -e '/codeclimate/I s:^:#:' \
-e '/simplecov/I s:^:#:' \
spec/spec_helper.rb || die
# Avoid activerecord specs since they don't run
# consistently accross rails versions and not all
# arches have rails
rm -f spec/ext/active_record_spec.rb || die
}