- Provide the correct value for TOPDIR in ruby 1.9.

- Bump portrevision.

Reported by:	Jase Thew (irc)
This commit is contained in:
Stanislav Sedov 2010-09-20 01:28:36 +00:00
parent 768a05df17
commit c7dfe5824e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=261459
2 changed files with 14 additions and 4 deletions

View file

@ -199,7 +199,7 @@ RUBY19= "@comment "
# Ruby 1.9
#
RUBY_RELVERSION= 1.9.1
RUBY_PORTREVISION= 0
RUBY_PORTREVISION= 1
RUBY_PORTEPOCH= 1
RUBY_PATCHLEVEL= 430

View file

@ -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