[24159] trunk/dports/lang/nhc98/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Tue Apr 17 20:52:33 PDT 2007


Revision: 24159
          http://trac.macosforge.org/projects/macports/changeset/24159
Author:   jberry at macports.org
Date:     2007-04-17 20:52:32 -0700 (Tue, 17 Apr 2007)

Log Message:
-----------
Don't just exit on 386. This causes any operation that simply opens the portfile to exit out. Instead, return a failure code if a build is attempted on i386

Modified Paths:
--------------
    trunk/dports/lang/nhc98/Portfile

Modified: trunk/dports/lang/nhc98/Portfile
===================================================================
--- trunk/dports/lang/nhc98/Portfile	2007-04-18 02:22:14 UTC (rev 24158)
+++ trunk/dports/lang/nhc98/Portfile	2007-04-18 03:52:32 UTC (rev 24159)
@@ -38,13 +38,14 @@
 configure.args	--mandir=/${prefix}/share/man/man1	\
 		--buildwith=gcc
 
-platform darwin i386 {
-		ui_msg "nhc98 is not supported on OS X i386 yet"
-		exit 1
-}
+build	{ cd ${worksrcpath}
 
-build		{ cd ${worksrcpath}
-		  system "ulimit -s unlimited && make"
+			if {${os.platform} == "darwin" && ${os.arch} == "i386"} {
+				ui_error "nhc98 is not supported on OS X i386 yet"
+				return 1
+			}
+			
+			system "ulimit -s unlimited && make"
 		}
 
 post-destroot	{ file delete -force ${destroot}${prefix}/lib/hmake

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070417/2a641478/attachment.html


More information about the macports-changes mailing list