summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-ruby/rexml/files/rexml-1.2.5-gentoo.diff')
-rw-r--r--dev-ruby/rexml/files/rexml-1.2.5-gentoo.diff19
1 files changed, 19 insertions, 0 deletions
diff --git a/dev-ruby/rexml/files/rexml-1.2.5-gentoo.diff b/dev-ruby/rexml/files/rexml-1.2.5-gentoo.diff
new file mode 100644
index 000000000000..90db3d8abc66
--- /dev/null
+++ b/dev-ruby/rexml/files/rexml-1.2.5-gentoo.diff
@@ -0,0 +1,19 @@
+diff -ruN rexml.old/bin/install.rb rexml/bin/install.rb
+--- rexml.old/bin/install.rb Thu Jan 10 21:03:41 2002
++++ rexml/bin/install.rb Wed Feb 27 18:36:47 2002
+@@ -8,8 +8,13 @@
+ SRC = 'rexml'
+
+
+-INSTDIR = File.join Config::CONFIG['sitedir'],
+- "#{Config::CONFIG['MAJOR']}.#{Config::CONFIG['MINOR']}"
++if ENV["PORTAGETMP"]
++ INSTDIR = File.join ENV["PORTAGETMP"], Config::CONFIG['sitedir'],
++ "#{Config::CONFIG['MAJOR']}.#{Config::CONFIG['MINOR']}"
++else
++ INSTDIR = File.join Config::CONFIG['sitedir'],
++ "#{Config::CONFIG['MAJOR']}.#{Config::CONFIG['MINOR']}"
++end
+ DESTDIR = File.join INSTDIR, SRC
+
+ opts = GetoptLong.new( [ "--uninstall", "-u", GetoptLong::NO_ARGUMENT ] )