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

larryv at macports.org larryv at macports.org
Tue Mar 12 13:14:21 PDT 2013


Revision: 104006
          https://trac.macports.org/changeset/104006
Author:   larryv at macports.org
Date:     2013-03-12 13:14:21 -0700 (Tue, 12 Mar 2013)
Log Message:
-----------
ruby-1.0: Use "file mkdir" and "system -W" instead of "mkdir -p" and "cd".

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 16:28:49 UTC (rev 104005)
+++ trunk/dports/_resources/port1.0/group/ruby-1.0.tcl	2013-03-12 20:14:21 UTC (rev 104006)
@@ -229,7 +229,7 @@
 
     post-extract {
         # Create the work directory for gem-based ruby ports.
-        system "mkdir -p ${worksrcpath}"
+        file mkdir ${worksrcpath}
         system "find ${worksrcpath} -type d -name CVS | xargs rm -rf"
     }
 
@@ -386,7 +386,7 @@
             }
 
             destroot {
-                system "cd ${worksrcpath} && ${ruby.gem} install --local --force --install-dir ${destroot}${ruby.gemdir} ${distpath}/${distname}"
+                system -W ${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/a9505d48/attachment.html>


More information about the macports-changes mailing list