Ticket #12639: Portfile.diff

File Portfile.diff, 3.9 KB (added by takeshi@…, 17 years ago)
  • Portfile_3.9.

    old new  
    11# $Id: Portfile 28624 2007-09-05 13:15:18Z simon@macports.org $
    22PortSystem      1.0
    33
    4 name            nco
    5 version         3.9.1
    6 platforms       darwin
    7 maintainers     takeshi@mac.com
    8 categories      science
    9 description     The netCDF Operators
    10 master_sites    http://${name}.sourceforge.net/src/
    11 checksums       sha1 3da4747545c05e34a88c3f2bba4e7f7b7eca1774
    12 homepage        http://nco.sourceforge.net/
     4name               nco
     5version            3.9.2
     6platforms          darwin
     7maintainers        takeshi@mac.com
     8categories         science
     9description        The netCDF Operators
     10master_sites       http://${name}.sourceforge.net/src/
     11checksums          sha1 4a8a3e141d95cf4130ebac39fedf7e21d692b910
     12homepage           http://nco.sourceforge.net/
    1313long_description \
    14                 Each NCO operator (e.g., ncks) takes netCDF or HDF input file(s), \
    15                 performs an operation (e.g., averaging, hyperslabbing, or renaming), \
    16                 and outputs a processed netCDF file. Although most users of \
    17                 netCDF and HDF data are involved in scientific research, \
    18                 these data formats, and thus NCO, are generic and \
    19                 are equally useful in fields like finance. \
    20                 This version is OPeNDAP/DODS enabled, so it can be given \
    21                 URLs to read remote datasets as if they were local netCDF files.
    22 
    23 depends_lib     port:curl \
    24                 port:gettext \
    25                 port:libdap \
    26                 port:libiconv \
    27                 port:libnc-dap \
    28                 port:libxml2 \
    29                 port:netcdf \
    30                 port:openssl \
    31                 port:udunits \
    32                 port:zlib \
    33                 port:antlr
    34 depends_build   port:bison \
    35                 port:m4
    36 
    37 configure.env   MACOSX_DEPLOYMENT_TARGET=10.4 \
    38                 HAVE_ANTLR=yes ANTLR_ROOT=${prefix}
     14    Each NCO operator (e.g., ncks) takes netCDF or HDF input file(s), \
     15    performs an operation (e.g., averaging, hyperslabbing, or renaming), \
     16    and outputs a processed netCDF file. Although most users of netCDF \
     17    and HDF data are involved in scientific research, these data formats, \
     18    and thus NCO, are generic and are equally useful in fields like finance. \
     19    This version is OPeNDAP/DODS enabled, so it can be given \
     20    URLs to read remote datasets as if they were local netCDF files.
     21
     22depends_lib        port:curl \
     23                   port:gettext \
     24                   port:libdap \
     25                   port:libiconv \
     26                   port:libnc-dap \
     27                   port:libxml2 \
     28                   port:netcdf \
     29                   port:openssl \
     30                   port:udunits \
     31                   port:zlib \
     32                   port:antlr
     33depends_build      port:bison \
     34                   port:m4
     35
     36patchfiles         patch-src_nco++_Makefile.in
     37configure.env      MACOSX_DEPLOYMENT_TARGET=10.4 \
     38                   HAVE_ANTLR=yes ANTLR_ROOT=${prefix}
    3939configure.cppflags -I/usr/include/malloc
    40 configure.args  --disable-dependency-tracking \
    41                 --mandir=${prefix}/share/man
    42 
    43 post-extract {
    44     file rename ${worksrcpath}/src/nco++/ncap2.hh \
    45                 ${worksrcpath}/src/nco++/ncap.hh
    46     foreach f {ncoGrammer.g ncoLexer.hpp ncoParser.hpp \
    47                               ncoTree.hpp ncap2_utl.cc} {
    48         reinplace "s|ncap2.hh|ncap.hh|" ${worksrcpath}/src/nco++/$f
    49     }
    50     system "cd ${workpath}; \
    51             tar zxvf ${distpath}/${distname}${extract.suffix} \
    52                    ./${distname}/src/nco++/Ncap2.hh"
    53 }
     40configure.args     --disable-dependency-tracking \
     41                   --mandir=${prefix}/share/man
    5442
    5543post-destroot {
    5644    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
     
    5947    }
    6048}
    6149
     50