[23409] trunk/dports/archivers/zlib/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Sat Mar 31 00:44:01 PDT 2007


Revision: 23409
          http://trac.macosforge.org/projects/macports/changeset/23409
Author:   jkh at macports.org
Date:     2007-03-31 00:44:01 -0700 (Sat, 31 Mar 2007)

Log Message:
-----------
Someone was very confused about how to use the command syntax:

1. There is no command called "command" - I don't know how this even worked before
2. command_exec is the way you invoke a command (in the port(1) sense of the term)
3. This is a really fugly way to build a static version of this and needs a rewrite at some point.

Modified Paths:
--------------
    trunk/dports/archivers/zlib/Portfile

Modified: trunk/dports/archivers/zlib/Portfile
===================================================================
--- trunk/dports/archivers/zlib/Portfile	2007-03-31 07:35:31 UTC (rev 23408)
+++ trunk/dports/archivers/zlib/Portfile	2007-03-31 07:44:01 UTC (rev 23409)
@@ -32,10 +32,10 @@
 post-destroot {
     ui_msg "$UI_PREFIX Configuring libz.a"
     configure.args-delete --shared
-    run_command configure
+    command_exec configure
     modify_ldshared
     ui_msg "$UI_PREFIX Building libz.a"
-    run_command build
+    command_exec build
     ui_msg "$UI_PREFIX Staging libz.a into destroot"
     xinstall ${worksrcpath}/libz.a ${destroot}${prefix}/lib/
 }
@@ -56,9 +56,3 @@
                   "${worksrcpath}/Makefile"
     }
 }
-
-proc run_command {cmd} {
-    if {[catch {system "[command $cmd]"} result]} {
-        return -code error "[format [msgcat::mc "%s failure: %s"] $cmd $result]"
-    }
-}
\ No newline at end of file

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070331/8ba3fd89/attachment.html


More information about the macports-changes mailing list