[133577] trunk/dports/multimedia/HandBrake/Portfile

larryv at macports.org larryv at macports.org
Thu Mar 5 12:34:45 PST 2015


Revision: 133577
          https://trac.macports.org/changeset/133577
Author:   larryv at macports.org
Date:     2015-03-05 12:34:45 -0800 (Thu, 05 Mar 2015)
Log Message:
-----------
HandBrake: Fix parsing when `sysctl` is unavailable

This should restore `HandBrake` and `HandBrakeCLI` to the pre-generated
port indices. Thanks to ionic for pointing this out.

Modified Paths:
--------------
    trunk/dports/multimedia/HandBrake/Portfile

Modified: trunk/dports/multimedia/HandBrake/Portfile
===================================================================
--- trunk/dports/multimedia/HandBrake/Portfile	2015-03-05 20:30:46 UTC (rev 133576)
+++ trunk/dports/multimedia/HandBrake/Portfile	2015-03-05 20:34:45 UTC (rev 133577)
@@ -54,9 +54,10 @@
 
 
 # TODO: Build correctly for a non-native arch.
-if {${os.arch} ne "i386"} {
+if {${os.arch} ne "i386"
+        || [catch {sysctl hw.cpu64bit_capable} isNative64Bit]} {
     supported_archs i386 x86_64
-} elseif {[sysctl hw.cpu64bit_capable]} {
+} elseif {$isNative64Bit} {
     supported_archs x86_64
 } else {
     supported_archs i386
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150305/e767ffae/attachment.html>


More information about the macports-changes mailing list