Revision
118239
Author
ryandesign@macports.org
Date
2014-03-26 17:49:57 -0700 (Wed, 26 Mar 2014)

Log Message

py-pyqt4: use system -W X "Y" instead of system "cd X && Y"

Modified Paths

Diff

Modified: trunk/dports/python/py-pyqt4/Portfile (118238 => 118239)


--- trunk/dports/python/py-pyqt4/Portfile	2014-03-26 23:00:31 UTC (rev 118238)
+++ trunk/dports/python/py-pyqt4/Portfile	2014-03-27 00:49:57 UTC (rev 118239)
@@ -191,9 +191,9 @@
             # This file exists if Qt was installed non-universal.
             # Easiest just to check if it was created.
             if {[file exists ${worksrcpath}/designer/python.pro ]} {
-                system "cd ${worksrcpath}/designer && \
-                    ${qt_qmake_cmd} -spec ${qt_mkspecs_dir}/macx-g++ \
-                        -o Makefile python.pro"
+                system -W ${worksrcpath}/designer "${qt_qmake_cmd} \
+                    -spec ${qt_mkspecs_dir}/macx-g++ \
+                    -o Makefile python.pro"
             }
         }
     }