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

takeshi at macports.org takeshi at macports.org
Sun Jul 10 01:57:29 PDT 2011


Revision: 80349
          http://trac.macports.org/changeset/80349
Author:   takeshi at macports.org
Date:     2011-07-10 01:57:28 -0700 (Sun, 10 Jul 2011)
Log Message:
-----------
emos: reverted to r80345. dependency to emos from grib_api was removed in r80348

Revision Links:
--------------
    http://trac.macports.org/changeset/80345
    http://trac.macports.org/changeset/80348

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

Modified: trunk/dports/science/emos/Portfile
===================================================================
--- trunk/dports/science/emos/Portfile	2011-07-10 08:55:39 UTC (rev 80348)
+++ trunk/dports/science/emos/Portfile	2011-07-10 08:57:28 UTC (rev 80349)
@@ -5,7 +5,7 @@
 
 name                emos
 version             000382
-revision            1
+revision            2
 platforms           darwin
 maintainers         takeshi
 license             LGPL
@@ -21,6 +21,8 @@
     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
@@ -48,15 +50,15 @@
     close $f
     file copy -force ${worksrcpath}/Makefile.in ${worksrcpath}/Makefile
     reinplace "s:reals:R64:" ${worksrcpath}/Makefile
-# 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} {
+    reinplace "s:glue:grib_api_merging:" ${worksrcpath}/Makefile
+    foreach d {gribex pbio bufrdc bufrtables crexdc interpolation fft grib_api_merging} {
         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/a62db750/attachment.html>


More information about the macports-changes mailing list