[53994] trunk/dports/science

takeshi at macports.org takeshi at macports.org
Fri Jul 17 23:42:28 PDT 2009


Revision: 53994
          http://trac.macports.org/changeset/53994
Author:   takeshi at macports.org
Date:     2009-07-17 23:42:27 -0700 (Fri, 17 Jul 2009)
Log Message:
-----------
udunits2: adding udunits2 package

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

Added Paths:
-----------
    trunk/dports/science/udunits2/
    trunk/dports/science/udunits2/Portfile

Modified: trunk/dports/science/nco/Portfile
===================================================================
--- trunk/dports/science/nco/Portfile	2009-07-18 00:30:54 UTC (rev 53993)
+++ trunk/dports/science/nco/Portfile	2009-07-18 06:42:27 UTC (rev 53994)
@@ -4,15 +4,15 @@
 PortSystem                  1.0
 
 name                        nco
-version                     3.9.8
+version                     3.9.9
 platforms                   darwin
 maintainers                 takeshi
 categories                  science
 description                 The netCDF Operators
 master_sites                http://${name}.sourceforge.net/src/
-checksums                   md5    412e3dce53abef435d415d39c0dc36a0         \
-                            sha1   c8d803282d028f87891a3a464ef2ca5029877a17 \
-                            rmd160 10e79a92b114c808614f1ccbb8743155d349d386
+checksums                   md5    0340b2adc2fc189c3766160b1c96ef7c         \
+                            sha1   f8e62993423cdf3c444637a8c280a8a62e725651 \
+                            rmd160 e1721bf3f9ad1473dc0120651b6130830cd7c77c
 homepage                    http://nco.sourceforge.net/
 long_description \
     Each NCO operator (e.g., ncks) takes netCDF or HDF input file(s), \
@@ -42,13 +42,15 @@
 
 configure.env               HAVE_ANTLR=yes ANTLR_ROOT=${prefix} \
                             NETCDF4_ROOT=${prefix}
-configure.cppflags-append   -I/usr/include/malloc
+configure.cppflags-append   -I/usr/include/malloc -DHAVE_NETCDF4_H
 configure.args              --disable-dependency-tracking \
                             --mandir=${prefix}/share/man  \
+                            --enable-udunits --disable-udunits2 \
                             --enable-dap-netcdf           \
                             --disable-dap-opendap         \
                             --enable-netcdf4
 
+
 post-destroot {
     xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
     foreach f {ANNOUNCE ChangeLog LICENSE NEWS README TODO VERSION *.txt *.pdf} {
@@ -58,15 +60,22 @@
 }
 
 variant mpich2 description {enable MPI with mpich2} {
-    depends_lib-append port:mpich2
-    configure.args-append --enable-mpi
+    depends_lib-append      port:mpich2
+    configure.args-append   --enable-mpi
 }
 
 variant openmpi description {enable MPI with openmpi} {
-    depends_lib-append port:openmpi
-    configure.args-append --enable-mpi
+    depends_lib-append      port:openmpi
+    configure.args-append   --enable-mpi
 }
 
+variant udunits2 description {compile with udunits2} {
+    depends_lib-delete      port:udunits
+    depends_lib-append      port:udunits2
+    configure.args-delete   --enable-udunits --disable-udunits2
+    configure.args-append   --disable-udunits --enable-udunits2
+}
+
 livecheck.check regex
 livecheck.url   ${homepage}
 livecheck.regex  {Current NCO version is ([0-9]+\.[0-9]+\.[0-9]+)}

Added: trunk/dports/science/udunits2/Portfile
===================================================================
--- trunk/dports/science/udunits2/Portfile	                        (rev 0)
+++ trunk/dports/science/udunits2/Portfile	2009-07-18 06:42:27 UTC (rev 53994)
@@ -0,0 +1,59 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id: Portfile 53383 2009-07-04 13:32:49Z takeshi at macports.org $
+
+PortSystem 1.0
+
+name            udunits2
+version         2.1.8
+distname        udunits-${version}
+maintainers     takeshi
+platforms       darwin
+categories      science
+
+description     Improved Unidata unit conversion libraray
+long_description \
+    The UDUNITS package supports units of physical quantities           \
+    (e.g., meters, seconds).  Specifically, it supports conversion      \
+    between string and binary representations of units,                 \
+    arithmetic manipulation of units, and conversion of numeric values  \
+    between compatible units. The UDUNIT-2 package differs from         \
+    the original UDUNITS package in the following ways:                 \
+    support for non-ASCII characters, support for logarithmic units,    \
+    persistent value converters, improved API, XML unit database,       \
+    and no Fortran or Perl API.
+
+homepage        http://www.unidata.ucar.edu/software/udunits/
+
+master_sites    ftp://ftp.unidata.ucar.edu/pub/udunits/ \
+                ftp://www.gfd-dennou.org/arch-large1/ucar/unidata/pub/udunits
+checksums       md5    011355a8d27fa5b079d34095affa8965         \
+                sha1   78a332e1eea9dfb2e63bd11e8e1fc0f01d7263db \
+                rmd160 d92b72d5b5c30457a2454ebdfafa6ded99fd71b1
+
+depends_lib     port:expat
+
+patch {
+    reinplace "s|SUBDIRS = expat|SUBDIRS = |" ${worksrcpath}/Makefile.in
+    reinplace "s|../expat/libexpat.la|${prefix}/lib/libexpat.la|" ${worksrcpath}/lib/Makefile.in
+}
+
+configure.args-append   --disable-udunits-1 --disable-dependency-tracking
+#patch {
+#        reinplace "s|\$(prefix)/man|\$(prefix)/share/man|" ${worksrcpath}/port/master.mk.in
+#}
+
+#configure.cppflags-append       "-DNDEBUG -Df2cFortran"
+#configure.cflags-append         -fno-common
+
+#pre-destroot {
+#        file delete ${worksrcpath}/lib/libudunits.a
+#}
+
+#destroot.destdir    DESTDIR=${destroot} \
+#                    prefix=${destroot}${prefix} \
+#                    exec_prefix=${destroot}${prefix}
+
+livecheck.check regex
+livecheck.url   http://www.unidata.ucar.edu/downloads/udunits/index.jsp
+livecheck.regex {Current release ([0-9]+\.[0-9]+\.[0-9]+)} 
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090717/769fe8a5/attachment-0001.html>


More information about the macports-changes mailing list