| 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/tilt/tilt-1.3.3.ebuild,v 1.4 2012/05/01 18:24:08 armin76 Exp $
|
| 4 |
|
| 5 |
EAPI=2
|
| 6 |
|
| 7 |
# jruby fails tests
|
| 8 |
USE_RUBY="ruby18 ruby19 ree18"
|
| 9 |
|
| 10 |
RUBY_FAKEGEM_TASK_DOC=""
|
| 11 |
RUBY_FAKEGEM_EXTRADOC="README.md TEMPLATES.md"
|
| 12 |
|
| 13 |
inherit ruby-fakegem
|
| 14 |
|
| 15 |
DESCRIPTION="A thin interface over a Ruby template engines to make their usage as generic as possible."
|
| 16 |
HOMEPAGE="http://github.com/rtomayko/tilt"
|
| 17 |
|
| 18 |
LICENSE="MIT"
|
| 19 |
SLOT="0"
|
| 20 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
| 21 |
IUSE=""
|
| 22 |
|
| 23 |
RUBY_PATCHES=( "${P}-yajl-test.patch" )
|
| 24 |
|
| 25 |
ruby_add_bdepend "test? ( virtual/ruby-test-unit dev-ruby/nokogiri )"
|
| 26 |
ruby_add_rdepend ">=dev-ruby/builder-2.0.0"
|
| 27 |
|
| 28 |
# Tests fail when markaby is not new enough, but it's optional.
|
| 29 |
DEPEND="${DEPEND} !!<dev-ruby/markaby-0.6.9-r1"
|
| 30 |
RDEPEND="${RDEPEND}"
|
| 31 |
|
| 32 |
all_ruby_prepare() {
|
| 33 |
# Remove rdoc template tests since these are no longer compatible
|
| 34 |
# with newer versions.
|
| 35 |
rm test/tilt_rdoctemplate_test.rb || die
|
| 36 |
|
| 37 |
# Avoid test broken due to hash unordering in ruby 1.8. Fixed upstream.
|
| 38 |
sed -i -e '/template can end with any statement/,/ end/ s:^:#:' test/tilt_yajltemplate_test.rb || die
|
| 39 |
|
| 40 |
# Disable tests failing on whitespace differences and already fixed upstream.
|
| 41 |
sed -i -e '/"disabling coffee-script wrapper"/,/ end/ s:^:#:' test/tilt_coffeescripttemplate_test.rb || die
|
| 42 |
}
|