[83484] trunk/dports/fuse/macfuse/Portfile

dports at macports.org dports at macports.org
Sat Sep 3 00:30:54 PDT 2011


Revision: 83484
          http://trac.macports.org/changeset/83484
Author:   dports at macports.org
Date:     2011-09-03 00:30:54 -0700 (Sat, 03 Sep 2011)
Log Message:
-----------
macfuse: do not attempt to install on systems with 64-bit kernels;
suggest fuse4x instead

Modified Paths:
--------------
    trunk/dports/fuse/macfuse/Portfile

Modified: trunk/dports/fuse/macfuse/Portfile
===================================================================
--- trunk/dports/fuse/macfuse/Portfile	2011-09-03 07:28:40 UTC (rev 83483)
+++ trunk/dports/fuse/macfuse/Portfile	2011-09-03 07:30:54 UTC (rev 83484)
@@ -57,6 +57,14 @@
     # and we don't want to error out if someone says +universal
 }
 
+# error out if running a 64-bit kernel; MacFUSE is 32-bit only
+pre-archivefetch {
+    set kernel_arch [exec /usr/bin/uname -m]
+    if {${kernel_arch} == "x86_64" || ${kernel_arch} == "ppc64"} {
+        return -code error "MacFUSE does not support 64-bit kernels; consider installing Fuse4X instead"
+    }
+}
+
 # ensure that user is running OS X 10.5 or higher: MacFUSE requires XCode 3
 pre-fetch {
     if {${os.platform} != "darwin" || [rpm-vercomp ${os.version} 9.0.0] < 0} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110903/683b9f80/attachment.html>


More information about the macports-changes mailing list