aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authorstas <stas@FreeBSD.org>2010-09-20 09:28:36 +0800
committerstas <stas@FreeBSD.org>2010-09-20 09:28:36 +0800
commit5ae76ebf7a0d88047b9e823cf4f3c9c18595364c (patch)
tree4dd136d2d2f34bc95be4e1caaa8534aac6b22418 /lang
parentb70e09db8161a11d07d3e5100f3b47a557684125 (diff)
downloadfreebsd-ports-gnome-5ae76ebf7a0d88047b9e823cf4f3c9c18595364c.tar.gz
freebsd-ports-gnome-5ae76ebf7a0d88047b9e823cf4f3c9c18595364c.tar.zst
freebsd-ports-gnome-5ae76ebf7a0d88047b9e823cf4f3c9c18595364c.zip
- Provide the correct value for TOPDIR in ruby 1.9.
- Bump portrevision. Reported by: Jase Thew (irc)
Diffstat (limited to 'lang')
-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