# ChangeLog for dev-ruby/treetop
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/treetop/ChangeLog,v 1.14 2010/04/27 05:59:35 graaff Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/treetop/ChangeLog,v 1.15 2010/05/30 09:08:40 graaff Exp $
+
+*treetop-1.4.7 (30 May 2010)
+
+ 30 May 2010; Hans de Graaff <graaff@gentoo.org> +treetop-1.4.7.ebuild,
+ +files/treetop-1.4.7-fix-tmpdir.patch:
+ Version bump. Fix (new) broken specs and run them.
27 Apr 2010; Hans de Graaff <graaff@gentoo.org> -treetop-1.4.2.ebuild,
-treetop-1.4.3.ebuild, -treetop-1.4.4.ebuild:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
+AUX treetop-1.4.7-fix-tmpdir.patch 750 RMD160 c5a69342066857a58bf162b70e023bb3c453448a SHA1 ad576b8c04f34e8183a24e01eab2274b05ce1f02 SHA256 d3dcda7bbbbab16a7b2a918a8351d8171e1f884d3ceacc4692e4f1cff7d25f32
DIST treetop-1.4.5.gem 43520 RMD160 5aa77f1aa184cbfa345b0177a0313ad820556414 SHA1 551b58a7d6321698a86f8aab318b6967fa0d47ce SHA256 80ea7abd95f9f980650061681be1eca6ea3064dc9e0c66ab853d7e6e0523354b
+DIST treetop-1.4.7.gem 69632 RMD160 9868952b98d743893a35d24ea225c3fc1bcdabf2 SHA1 a396784adfd1479b55279a0552b3a8064a79cb8e SHA256 2620385fda04a7381c4f74cd663f8bb7ce494205f3ef3736b00f7717b532fb64
EBUILD treetop-1.4.5.ebuild 753 RMD160 c926ba93306a138b92a8dcc8981ff878d0dc07e0 SHA1 45e1f8e85e90a3d6f23d85fb3f154f13f4810254 SHA256 2be18685d8d59b46d1e0a31995d6faf4ea8811c5306432a8e0f91d36ab7e6d99
-MISC ChangeLog 1940 RMD160 bc26338d68f72a582d860c676869e61c39f7daa2 SHA1 3ab2cf14cd72ba7b3fe2b5b9615d2c8c6462c37f SHA256 9e7a55814e5c7cabd6f0e321a865bed1a8cd249818fa976721aeb28e7ca1c242
+EBUILD treetop-1.4.7.ebuild 831 RMD160 0f3106d17b5ae4fa1d8cfaf918c7366bb0f0edcc SHA1 edbf76b046e9d66b3c0694ee25a5107214238ed0 SHA256 4219bdb5d90bd30976feb500a60e3d088bec2a14e9d6217e8cab3d9aa1b5ef62
+MISC ChangeLog 2138 RMD160 c8136a4784a9dc59915125c60e0e4dbb0cb365b4 SHA1 346789d72ab4b2292adc056c1abe84850781b42c SHA256 0a564c20e491088926a3f722d66fe279e84ef9f39553d72f328a6f24dda82d10
MISC metadata.xml 157 RMD160 5d9e2c7ecba96ffebd936d38acedf859cdea84e1 SHA1 8ce15dcc608eeb5616aeec610dc695cbe6f93e02 SHA256 11fba03a217e2d996f5cd8895493a5692ece8ddac2c1a2dfc71d0e830555121c
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.14 (GNU/Linux)
+Version: GnuPG v2.0.15 (GNU/Linux)
-iEYEARECAAYFAkvWfUwACgkQeM7EJeUH71M7LACfaiwgYAd86YwQ6tBIoF7c/bxn
-IPUAniV131l24mztBsmGX44ExPaY8WU2
-=V/pC
+iEYEARECAAYFAkwCKyYACgkQeM7EJeUH71O/rwCdGemJKgxxUW9erIic2enVxAfI
+XT8An3dF2NOQdaV1Ok1K2mmWMmaGvWa5
+=DgRb
-----END PGP SIGNATURE-----
--- /dev/null
+diff --git a/spec/compiler/tt_compiler_spec.rb b/spec/compiler/tt_compiler_spec.rb
+index a453ad5..946691c 100644
+--- a/spec/compiler/tt_compiler_spec.rb
++++ b/spec/compiler/tt_compiler_spec.rb
+@@ -8,11 +8,13 @@ ENV['PATH'] = File.expand_path(File.dirname(__FILE__) + '../../../bin' +
+ $LOAD_PATH.unshift(File.expand_path('../../../../lib', __FILE__))
+
+ describe "The 'tt' comand line compiler" do
++ before(:each) do
++ @tmpdir = Dir.tmpdir
++ end
+
+ context 'when processing a single grammar file' do
+ before(:each) do
+ # create a fresh but dumb grammar file for each example
+- @tmpdir = Dir.tmpdir
+ @test_base = "dumb-#{rand(1000)}"
+ @test_path = "#{@tmpdir}/#{@test_base}"
+ @test_grammar = "#{@test_path}.tt"
--- /dev/null
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/treetop/treetop-1.4.7.ebuild,v 1.1 2010/05/30 09:08:40 graaff Exp $
+
+EAPI=2
+USE_RUBY="ruby18"
+
+RUBY_FAKEGEM_TASK_DOC=""
+RUBY_FAKEGEM_TASK_TEST="spec"
+
+RUBY_FAKEGEM_DOCDIR="doc"
+RUBY_FAKEGEM_EXTRADOC="README.md"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Treetop is a language for describing languages."
+HOMEPAGE="http://treetop.rubyforge.org/"
+LICENSE="Ruby"
+
+KEYWORDS="~amd64"
+SLOT="0"
+IUSE=""
+
+RUBY_PATCHES=( "${P}-fix-tmpdir.patch" )
+
+ruby_add_bdepend "test? ( dev-ruby/rr dev-ruby/rspec )"
+ruby_add_rdepend ">=dev-ruby/polyglot-0.3.1"
+
+all_ruby_install() {
+ all_fakegem_install
+
+ insinto /usr/share/doc/${PF}/examples
+ doins -r examples/* || die "Failed installing example files."
+}