| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/awesome_print/awesome_print-1.0.2.ebuild,v 1.2 2012/08/19 11:00:17 blueness Exp $
|
| 4 |
|
| 5 |
EAPI=2
|
| 6 |
USE_RUBY="ruby18 ruby19 ree18 jruby"
|
| 7 |
|
| 8 |
RUBY_FAKEGEM_RECIPE_TEST="rspec"
|
| 9 |
|
| 10 |
RUBY_FAKEGEM_TASK_DOC=""
|
| 11 |
RUBY_FAKEGEM_EXTRADOC="CHANGELOG README.md"
|
| 12 |
|
| 13 |
inherit ruby-fakegem
|
| 14 |
|
| 15 |
DESCRIPTION="Ruby library that pretty prints Ruby objects in full color with proper indentation."
|
| 16 |
HOMEPAGE="http://github.com/michaeldv/awesome_print"
|
| 17 |
LICENSE="MIT"
|
| 18 |
|
| 19 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
|
| 20 |
SLOT="0"
|
| 21 |
IUSE=""
|
| 22 |
|
| 23 |
all_ruby_prepare() {
|
| 24 |
# Avoid intermittent hash-ordering test failure:
|
| 25 |
# https://github.com/michaeldv/awesome_print/issues/74
|
| 26 |
sed -i -e '/handle array grep when pattern contains/,/end/ s:^:#:' spec/formats_spec.rb || die
|
| 27 |
sed -i -e '/should pass the matching string within the block/,/^ end/ s:^:#:' spec/methods_spec.rb || die
|
| 28 |
}
|