[64316] trunk/dports/science/nco/Portfile

takeshi at macports.org takeshi at macports.org
Mon Mar 1 17:27:53 PST 2010


Revision: 64316
          http://trac.macports.org/changeset/64316
Author:   takeshi at macports.org
Date:     2010-03-01 17:27:53 -0800 (Mon, 01 Mar 2010)
Log Message:
-----------
nco: returns error when netcdf +netcdf4 is not installed

Modified Paths:
--------------
    trunk/dports/science/nco/Portfile

Modified: trunk/dports/science/nco/Portfile
===================================================================
--- trunk/dports/science/nco/Portfile	2010-03-01 23:54:11 UTC (rev 64315)
+++ trunk/dports/science/nco/Portfile	2010-03-02 01:27:53 UTC (rev 64316)
@@ -43,8 +43,15 @@
     patch {
         reinplace "s/ncgen/ncgen3/g" ${worksrcpath}/configure
     }
+} else {
+    pre-extract {
+        if {![file exists ${prefix}/bin/ncgen4]} {
+            return -code error "netcdf4 variants does not seem to be specified in netcdf port.\nnetcdf +netcdf4 must be installed compile nco +netcdf4"
+        }
+    }
 }
 
+
 configure.env               HAVE_ANTLR=yes ANTLR_ROOT=${prefix} \
                             NETCDF_INC=${prefix}/include
 configure.cppflags-append   -I/usr/include/malloc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100301/73b9fb79/attachment.html>


More information about the macports-changes mailing list