[93346] trunk/dports/math/gaul-devel/Portfile
jmr at macports.org
jmr at macports.org
Sun May 20 10:25:37 PDT 2012
Revision: 93346
https://trac.macports.org/changeset/93346
Author: jmr at macports.org
Date: 2012-05-20 10:25:36 -0700 (Sun, 20 May 2012)
Log Message:
-----------
gaul-devel: don't fail to parse if sysctl fails
Modified Paths:
--------------
trunk/dports/math/gaul-devel/Portfile
Modified: trunk/dports/math/gaul-devel/Portfile
===================================================================
--- trunk/dports/math/gaul-devel/Portfile 2012-05-20 17:23:40 UTC (rev 93345)
+++ trunk/dports/math/gaul-devel/Portfile 2012-05-20 17:25:36 UTC (rev 93346)
@@ -27,8 +27,10 @@
rmd160 efd4f1dad25bbe487e1e8bd56cb499a07c92a1e7
# Finds out the number of CPU on the machine
-set nb_th [expr [exec sysctl -n hw.logicalcpu] * 2]
+set nb_th 2
+catch {set nb_th [expr [exec sysctl -n hw.logicalcpu] * 2]}
+
# Configuration
configure.args-append --enable-g=yes
configure.args-append --enable-ccoptim=yes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120520/c6f006e5/attachment.html>
More information about the macports-changes
mailing list