[28808] trunk/dports/science/nco

source_changes at macosforge.org source_changes at macosforge.org
Sun Sep 9 05:11:21 PDT 2007


Revision: 28808
          http://trac.macosforge.org/projects/macports/changeset/28808
Author:   simon at macports.org
Date:     2007-09-09 05:11:20 -0700 (Sun, 09 Sep 2007)

Log Message:
-----------
science/nco: Updated to version, closes #12639. Maintainer update, thanks to takeshi at mac.com.

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

Added Paths:
-----------
    trunk/dports/science/nco/files/patch-src_nco++_Makefile.in

Modified: trunk/dports/science/nco/Portfile
===================================================================
--- trunk/dports/science/nco/Portfile	2007-09-09 12:05:53 UTC (rev 28807)
+++ trunk/dports/science/nco/Portfile	2007-09-09 12:11:20 UTC (rev 28808)
@@ -1,61 +1,48 @@
 # $Id$
 PortSystem      1.0
 
-name            nco
-version         3.9.1
-platforms       darwin
-maintainers     takeshi at mac.com
-categories      science
-description     The netCDF Operators
-master_sites    http://${name}.sourceforge.net/src/
-checksums       sha1 3da4747545c05e34a88c3f2bba4e7f7b7eca1774
-homepage        http://nco.sourceforge.net/
+name               nco
+version            3.9.2
+platforms          darwin
+maintainers        takeshi at mac.com
+categories         science
+description        The netCDF Operators
+master_sites       http://${name}.sourceforge.net/src/
+checksums          sha1 4a8a3e141d95cf4130ebac39fedf7e21d692b910
+homepage           http://nco.sourceforge.net/
 long_description \
-                Each NCO operator (e.g., ncks) takes netCDF or HDF input file(s), \
-                performs an operation (e.g., averaging, hyperslabbing, or renaming), \
-                and outputs a processed netCDF file. Although most users of \
-                netCDF and HDF data are involved in scientific research, \
-                these data formats, and thus NCO, are generic and \
-                are equally useful in fields like finance. \
-                This version is OPeNDAP/DODS enabled, so it can be given \
-                URLs to read remote datasets as if they were local netCDF files.
+    Each NCO operator (e.g., ncks) takes netCDF or HDF input file(s), \
+    performs an operation (e.g., averaging, hyperslabbing, or renaming), \
+    and outputs a processed netCDF file. Although most users of netCDF \
+    and HDF data are involved in scientific research, these data formats, \
+    and thus NCO, are generic and are equally useful in fields like finance. \
+    This version is OPeNDAP/DODS enabled, so it can be given \
+    URLs to read remote datasets as if they were local netCDF files.
 
-depends_lib     port:curl \
-                port:gettext \
-                port:libdap \
-                port:libiconv \
-                port:libnc-dap \
-                port:libxml2 \
-                port:netcdf \
-                port:openssl \
-                port:udunits \
-                port:zlib \
-                port:antlr
-depends_build   port:bison \
-                port:m4
+depends_lib        port:curl \
+                   port:gettext \
+                   port:libdap \
+                   port:libiconv \
+                   port:libnc-dap \
+                   port:libxml2 \
+                   port:netcdf \
+                   port:openssl \
+                   port:udunits \
+                   port:zlib \
+                   port:antlr
+depends_build      port:bison \
+                   port:m4
 
-configure.env   MACOSX_DEPLOYMENT_TARGET=10.4 \
-                HAVE_ANTLR=yes ANTLR_ROOT=${prefix}
+patchfiles         patch-src_nco++_Makefile.in
+configure.env      MACOSX_DEPLOYMENT_TARGET=10.4 \
+                   HAVE_ANTLR=yes ANTLR_ROOT=${prefix}
 configure.cppflags -I/usr/include/malloc
-configure.args  --disable-dependency-tracking \
-                --mandir=${prefix}/share/man
+configure.args     --disable-dependency-tracking \
+                   --mandir=${prefix}/share/man 
 
-post-extract {
-    file rename ${worksrcpath}/src/nco++/ncap2.hh \
-                ${worksrcpath}/src/nco++/ncap.hh
-    foreach f {ncoGrammer.g ncoLexer.hpp ncoParser.hpp \
-                              ncoTree.hpp ncap2_utl.cc} {
-        reinplace "s|ncap2.hh|ncap.hh|" ${worksrcpath}/src/nco++/$f
-    }
-    system "cd ${workpath}; \
-            tar zxvf ${distpath}/${distname}${extract.suffix} \
-                   ./${distname}/src/nco++/Ncap2.hh"
-}
-
 post-destroot {
     xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
     foreach f {ANNOUNCE ChangeLog LICENSE NEWS README TODO VERSION *.txt *.pdf} {
         eval xinstall -m 644 [glob ${worksrcpath}/doc/${f}] ${destroot}${prefix}/share/doc/${name}
     }
 }
-

Added: trunk/dports/science/nco/files/patch-src_nco++_Makefile.in
===================================================================
--- trunk/dports/science/nco/files/patch-src_nco++_Makefile.in	                        (rev 0)
+++ trunk/dports/science/nco/files/patch-src_nco++_Makefile.in	2007-09-09 12:11:20 UTC (rev 28808)
@@ -0,0 +1,11 @@
+--- src/nco++/Makefile.in.orig	2007-09-08 13:31:20.000000000 +0900
++++ src/nco++/Makefile.in	2007-09-08 14:05:38.000000000 +0900
+@@ -230,7 +230,7 @@
+ 
+ # fxm: Split off all sources except front-end into nco++ library
+ ncap2_SOURCES = Invoke.cc ncap2.cc ncap2_utl.cc sdo_utl.cc fmc_cls.cc prs_cls.cc NcapVarVector.cc ncoLexer.cpp ncoParser.cpp ncoTree.cpp
+-ncap2_LDADD = -lnco -lantlr
++ncap2_LDADD = ../nco/.libs/libnco.dylib -lantlr
+ ncap2_LDFLAGS = -L../nco
+ INCLUDES = -I./ -I../nco
+ 

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


More information about the macports-changes mailing list