[80346] trunk/dports/science/emos/Portfile

takeshi at macports.org takeshi at macports.org
Sun Jul 10 01:25:02 PDT 2011


Revision: 80346
          http://trac.macports.org/changeset/80346
Author:   takeshi at macports.org
Date:     2011-07-10 01:25:01 -0700 (Sun, 10 Jul 2011)
Log Message:
-----------
emos: removed dependency to grib_api

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

Modified: trunk/dports/science/emos/Portfile
===================================================================
--- trunk/dports/science/emos/Portfile	2011-07-10 08:04:15 UTC (rev 80345)
+++ trunk/dports/science/emos/Portfile	2011-07-10 08:25:01 UTC (rev 80346)
@@ -5,6 +5,7 @@
 
 name                emos
 version             000382
+revision            1
 platforms           darwin
 maintainers         takeshi
 license             LGPL
@@ -20,8 +21,6 @@
     The Interpolation library (EMOSLIB) includes Interpolation software \
     and GRIB, BUFR, CREX encoding/decoding routines.
 
-depends_build       port:grib_api
-
 post-patch {
     reinplace "s:^void \\*memcpy://void *memcpy:" ${worksrcpath}/gribex/gdecode.h
     reinplace "s: | O_LARGEFILE::" ${worksrcpath}/interpolation/sharedlib.c
@@ -49,15 +48,15 @@
     close $f
     file copy -force ${worksrcpath}/Makefile.in ${worksrcpath}/Makefile
     reinplace "s:reals:R64:" ${worksrcpath}/Makefile
-    reinplace "s:glue:grib_api_merging:" ${worksrcpath}/Makefile
-    foreach d {gribex pbio bufrdc bufrtables crexdc interpolation fft grib_api_merging} {
+# skip grib_api_merging (grib_api and emos depend upon each other)
+    reinplace "s:glue::" ${worksrcpath}/Makefile
+    foreach d {gribex pbio bufrdc bufrtables crexdc interpolation fft} {
         file copy -force ${worksrcpath}/${d}/Makefile.in ${worksrcpath}/${d}/Makefile
         reinplace "s:reals:R64:" ${worksrcpath}/${d}/Makefile
         reinplace "s:arch:linux:" ${worksrcpath}/${d}/Makefile
         reinplace "s:depl:${name}:" ${worksrcpath}/${d}/Makefile
         reinplace "s:\$(ARCH)\$(CNAME)\$(R64)\$(A64):site:" ${worksrcpath}/${d}/Makefile
     }
-    reinplace "s:I\$(GRIB_API_PATH):I${prefix}:" ${worksrcpath}/grib_api_merging/Makefile
     reinplace "s:`cat -s .r64`:R64:" ${worksrcpath}/install
     reinplace "s:`cat -s .emos`:${destroot}${prefix}/lib/${name}:" ${worksrcpath}/install
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110710/a4ad50b7/attachment.html>


More information about the macports-changes mailing list