# 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.1.ebuild,v 1.4 2012/07/08 16:37:20 jer Exp $ EAPI=2 USE_RUBY="ruby18 ruby19 ree18 jruby" RUBY_FAKEGEM_TASK_TEST="spec" 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="" ruby_add_bdepend "test? ( >=dev-ruby/rspec-2.5.0:2 )" all_ruby_prepare() { # Avoid intermittent hash-ordering test failure. sed -i -e '/handle array grep when pattern contains/,/end/ s:^:#:' spec/formats_spec.rb || die } each_ruby_test() { ${RUBY} -S rspec spec || die }