[103995] trunk/dports/_resources/port1.0/group/ruby-1.0.tcl

kimuraw at macports.org kimuraw at macports.org
Tue Mar 12 06:29:49 PDT 2013


Revision: 103995
          https://trac.macports.org/changeset/103995
Author:   kimuraw at macports.org
Date:     2013-03-12 06:29:49 -0700 (Tue, 12 Mar 2013)
Log Message:
-----------
port1.0/group/ruby-1.0.tcl: let ruby.setup to accept ruby20

- ruby.branch and ruby.setup supports ruby20
- ruby.suffix is enable with ruby.branch
- fix installation of ri and rdoc from ruby.setup gem

Modified Paths:
--------------
    trunk/dports/_resources/port1.0/group/ruby-1.0.tcl

Modified: trunk/dports/_resources/port1.0/group/ruby-1.0.tcl
===================================================================
--- trunk/dports/_resources/port1.0/group/ruby-1.0.tcl	2013-03-12 13:04:37 UTC (rev 103994)
+++ trunk/dports/_resources/port1.0/group/ruby-1.0.tcl	2013-03-12 13:29:49 UTC (rev 103995)
@@ -45,7 +45,7 @@
 #     build.cmd        ${ruby.bin}
 
 # options:
-#   ruby.branch: select ruby version. 1.8 or 1.9.
+#   ruby.branch: select ruby version. 1.8, 1.9 or 2.0.
 #   ruby.link_binaries: whether generate suffixed symlink under ${prefix}/bin
 #        or not.
 # values:
@@ -93,6 +93,9 @@
     }
     set ruby.link_binaries_suffix -${ruby.branch}
     set ruby.prog_suffix    ${ruby.branch}
+    if {${ruby.branch} eq "1.8"} {
+        set ruby.prog_suffix     ""
+    }
 }
 
 proc ruby.extract_config {var {default ""}} {
@@ -137,12 +140,12 @@
 
     if {${implementation} eq "ruby19"} {
         ruby.branch 1.9
-        set ruby.prog_suffix 1.9
+    } elseif {${implementation} eq "ruby20"} {
+        ruby.branch 2.0
     } elseif {${implementation} eq "ruby"} {
         ruby.branch 1.8
-        set ruby.prog_suffix ""
     } else {
-        ui_error "ruby.setup: unknown implementation '${implementation}' specified (ruby, ruby19 possible)"
+        ui_error "ruby.setup: unknown implementation '${implementation}' specified (ruby, ruby19, ruby20 possible)"
         return -code error "ruby.setup failed"
     }
 
@@ -383,7 +386,7 @@
             }
 
             destroot {
-                system "cd ${worksrcpath} && ${ruby.gem} install --no-ri --no-rdoc --local --force --install-dir ${destroot}${ruby.gemdir} ${distpath}/${distname}"
+                system "cd ${worksrcpath} && ${ruby.gem} install --local --force --install-dir ${destroot}${ruby.gemdir} ${distpath}/${distname}"
 
                 set binDir ${destroot}${ruby.gemdir}/bin
                 if {[file isdirectory $binDir]} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130312/989f13cc/attachment.html>


More information about the macports-changes mailing list