summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2010-07-14 20:37:20 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2010-07-14 20:37:20 +0000
commit08bbd91c3581069eb81ede0b8538a28a000531e2 (patch)
treec1f2b8e7c948ceed71b6f03c911baa0aa280fd42 /dev-ruby/racc/racc-1.4.6.ebuild
parentMake sure that the . is in the library loading paths (for 1.9.2). (diff)
downloadgentoo-2-08bbd91c3581069eb81ede0b8538a28a000531e2.tar.gz
gentoo-2-08bbd91c3581069eb81ede0b8538a28a000531e2.tar.bz2
gentoo-2-08bbd91c3581069eb81ede0b8538a28a000531e2.zip
Make sure that the . is in the library loading paths (for 1.9.2).
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby/racc/racc-1.4.6.ebuild')
-rw-r--r--dev-ruby/racc/racc-1.4.6.ebuild5
1 files changed, 4 insertions, 1 deletions
diff --git a/dev-ruby/racc/racc-1.4.6.ebuild b/dev-ruby/racc/racc-1.4.6.ebuild
index bba116dc76f7..6e339f2ebda3 100644
--- a/dev-ruby/racc/racc-1.4.6.ebuild
+++ b/dev-ruby/racc/racc-1.4.6.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/racc/racc-1.4.6.ebuild,v 1.7 2010/05/22 22:45:52 a3li Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/racc/racc-1.4.6.ebuild,v 1.8 2010/07/14 20:37:20 flameeyes Exp $
EAPI=2
@@ -23,6 +23,9 @@ IUSE=""
ruby_add_bdepend "test? ( virtual/ruby-test-unit )"
all_ruby_prepare() {
+ # for Ruby 1.9.2 compatibility
+ sed -i -e '1i $: << "."' Rakefile || die
+
sed -i -e '/tasks\/email/s:^:#:' Rakefile || die "rakefile fix failed"
sed -i -e '/prerequisites/s:^:#:' tasks/test.rb || die "test task fix failed"
sed -i -e 's|/tmp/out|${TMPDIR:-/tmp}/out|' test/helper.rb || die "tests fix failed"