summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2011-12-25 09:27:08 +0000
committerHans de Graaff <graaff@gentoo.org>2011-12-25 09:27:08 +0000
commit17987fc6f4b6765b37ebb3b772a1daa62b9c45f3 (patch)
tree1d562840ac284271c6c52088add31c868a59a185 /dev-ruby/tilt/tilt-1.3.3.ebuild
parentRemove old version. (diff)
downloadgentoo-2-17987fc6f4b6765b37ebb3b772a1daa62b9c45f3.tar.gz
gentoo-2-17987fc6f4b6765b37ebb3b772a1daa62b9c45f3.tar.bz2
gentoo-2-17987fc6f4b6765b37ebb3b772a1daa62b9c45f3.zip
Version bump. Apply fixes from upstream to pass tests.
(Portage version: 2.1.10.41/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby/tilt/tilt-1.3.3.ebuild')
-rw-r--r--dev-ruby/tilt/tilt-1.3.3.ebuild39
1 files changed, 39 insertions, 0 deletions
diff --git a/dev-ruby/tilt/tilt-1.3.3.ebuild b/dev-ruby/tilt/tilt-1.3.3.ebuild
new file mode 100644
index 000000000000..9d823db460cf
--- /dev/null
+++ b/dev-ruby/tilt/tilt-1.3.3.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/tilt/tilt-1.3.3.ebuild,v 1.1 2011/12/25 09:27:08 graaff Exp $
+
+EAPI=2
+
+# jruby fails tests
+USE_RUBY="ruby18 ruby19 ree18"
+
+RUBY_FAKEGEM_TASK_DOC=""
+RUBY_FAKEGEM_EXTRADOC="README.md TEMPLATES.md"
+
+inherit ruby-fakegem
+
+DESCRIPTION="A thin interface over a Ruby template engines to make their usage as generic as possible."
+HOMEPAGE="http://github.com/rtomayko/tilt"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+RUBY_PATCHES=( "${P}-yajl-test.patch" )
+
+ruby_add_bdepend "test? ( virtual/ruby-test-unit dev-ruby/nokogiri )"
+ruby_add_rdepend ">=dev-ruby/builder-2.0.0"
+
+# Tests fail when markaby is not new enough, but it's optional.
+DEPEND="${DEPEND} !!<dev-ruby/markaby-0.6.9-r1"
+RDEPEND="${RDEPEND}"
+
+all_ruby_prepare() {
+ # Remove rdoc template tests since these are no longer compatible
+ # with newer versions.
+ rm test/tilt_rdoctemplate_test.rb || die
+
+ # Avoid test broken due to hash unordering in ruby 1.8. Fixed upstream.
+ sed -i -e '/template can end with any statement/,/ end/ s:^:#:' test/tilt_yajltemplate_test.rb || die
+}