summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMamoru Komachi <usata@gentoo.org>2004-08-09 02:42:25 +0000
committerMamoru Komachi <usata@gentoo.org>2004-08-09 02:42:25 +0000
commit2fd4077becc8b1d7fc745e886c5bb2dfc6597b79 (patch)
treeadcf0be7ba99a3fc71107a374cbfac411bbf8161 /dev-ruby/ruby-gtk/ruby-gtk-0.34-r1.ebuild
parentgcc-3.4 fix for transcode-0.6.11 (diff)
downloadhistorical-2fd4077becc8b1d7fc745e886c5bb2dfc6597b79.tar.gz
historical-2fd4077becc8b1d7fc745e886c5bb2dfc6597b79.tar.bz2
historical-2fd4077becc8b1d7fc745e886c5bb2dfc6597b79.zip
Fixed compile error with ruby19.
Diffstat (limited to 'dev-ruby/ruby-gtk/ruby-gtk-0.34-r1.ebuild')
-rw-r--r--dev-ruby/ruby-gtk/ruby-gtk-0.34-r1.ebuild6
1 files changed, 4 insertions, 2 deletions
diff --git a/dev-ruby/ruby-gtk/ruby-gtk-0.34-r1.ebuild b/dev-ruby/ruby-gtk/ruby-gtk-0.34-r1.ebuild
index 95b46e0b69c9..f088cf3ffa5f 100644
--- a/dev-ruby/ruby-gtk/ruby-gtk-0.34-r1.ebuild
+++ b/dev-ruby/ruby-gtk/ruby-gtk-0.34-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-gtk/ruby-gtk-0.34-r1.ebuild,v 1.10 2004/07/14 22:08:51 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-gtk/ruby-gtk-0.34-r1.ebuild,v 1.11 2004/08/09 02:42:25 usata Exp $
inherit ruby-gnome2 ruby
@@ -22,5 +22,7 @@ src_unpack() {
unpack ${A}
cd ${S}
- sed -i -e "s/PLATFORM/RUBY_PLATFORM/g" extconf.rb
+
+ ruby -i -pe 'sub "PLATFORM","RUBY_PLATFORM"' \
+ extconf.rb src/makedefconst.rb || "substitution failed"
}