summaryrefslogtreecommitdiff
blob: 4e08d5f314aeb198b5f149de554fe730742ef8cc (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
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/awesome_print/awesome_print-1.0.2.ebuild,v 1.1 2012/07/30 18:27:50 graaff Exp $

EAPI=2
USE_RUBY="ruby18 ruby19 ree18 jruby"

RUBY_FAKEGEM_RECIPE_TEST="rspec"

RUBY_FAKEGEM_TASK_DOC=""
RUBY_FAKEGEM_EXTRADOC="CHANGELOG README.md"

inherit ruby-fakegem

DESCRIPTION="Ruby library that pretty prints Ruby objects in full color with proper indentation."
HOMEPAGE="http://github.com/michaeldv/awesome_print"
LICENSE="MIT"

KEYWORDS="~amd64 ~hppa ~x86 ~x86-fbsd"
SLOT="0"
IUSE=""

all_ruby_prepare() {
	# Avoid intermittent hash-ordering test failure:
	# https://github.com/michaeldv/awesome_print/issues/74
	sed -i -e '/handle array grep when pattern contains/,/end/ s:^:#:' spec/formats_spec.rb || die
	sed -i -e '/should pass the matching string within the block/,/^  end/ s:^:#:' spec/methods_spec.rb || die
}