aboutsummaryrefslogtreecommitdiff
path: root/lang/ruby19/files
diff options
context:
space:
mode:
authorStanislav Sedov <stas@FreeBSD.org>2010-09-20 01:28:36 +0000
committerStanislav Sedov <stas@FreeBSD.org>2010-09-20 01:28:36 +0000
commitc7dfe5824ec313c0013e48c73d4da865d8d7dce1 (patch)
tree4584f0eee9a7b082adc6b0ddfaeeea93e14e8e0f /lang/ruby19/files
parent768a05df175ac293fee85106e1d0fae5ae29a165 (diff)
downloadports-c7dfe5824ec313c0013e48c73d4da865d8d7dce1.tar.gz
ports-c7dfe5824ec313c0013e48c73d4da865d8d7dce1.zip
Notes
Diffstat (limited to 'lang/ruby19/files')
-rw-r--r--lang/ruby19/files/patch-mkconfig.rb16
1 files changed, 13 insertions, 3 deletions
diff --git a/lang/ruby19/files/patch-mkconfig.rb b/lang/ruby19/files/patch-mkconfig.rb
index c95d111ff95f..0fe5aa92d6f4 100644
--- a/lang/ruby19/files/patch-mkconfig.rb
+++ b/lang/ruby19/files/patch-mkconfig.rb
@@ -1,6 +1,16 @@
---- mkconfig.rb.orig 2009-02-09 19:56:48.000000000 +0300
-+++ mkconfig.rb 2009-02-09 19:59:30.000000000 +0300
-@@ -140,7 +140,7 @@
+--- mkconfig.rb.orig 2008-12-12 06:54:37.000000000 -0800
++++ mkconfig.rb 2010-09-19 17:51:43.000000000 -0700
+@@ -102,7 +102,8 @@
+
+ drive = File::PATH_SEPARATOR == ';'
+
+-prefix = '/lib/ruby/' + RUBY_VERSION + '/' + RUBY_PLATFORM
++major, minor, *rest = RUBY_VERSION.split('.')
++prefix = '/lib/ruby/' + "#{major}.#{minor}/" + RUBY_PLATFORM
+ print " TOPDIR = File.dirname(__FILE__).chomp!(#{prefix.dump})\n"
+ print " DESTDIR = ", (drive ? "TOPDIR && TOPDIR[/\\A[a-z]:/i] || " : ""), "'' unless defined? DESTDIR\n"
+ print " CONFIG = {}\n"
+@@ -140,7 +141,7 @@
print(*v_fast)
print(*v_others)
print <<EOS