[147085] trunk/dports/science/esmf/Portfile

takeshi at macports.org takeshi at macports.org
Sat Mar 26 02:16:31 PDT 2016


Revision: 147085
          https://trac.macports.org/changeset/147085
Author:   takeshi at macports.org
Date:     2016-03-26 02:16:31 -0700 (Sat, 26 Mar 2016)
Log Message:
-----------
esmf: fix header path in esmf.mk and install src

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

Modified: trunk/dports/science/esmf/Portfile
===================================================================
--- trunk/dports/science/esmf/Portfile	2016-03-26 07:46:07 UTC (rev 147084)
+++ trunk/dports/science/esmf/Portfile	2016-03-26 09:16:31 UTC (rev 147085)
@@ -12,7 +12,7 @@
 
 name                esmf
 version             6_3_0rp1
-revision            1
+revision            2
 categories          science devel
 platforms           darwin
 license             UoI-NCSA
@@ -153,7 +153,9 @@
 post-destroot {
     reinplace "s|${destroot}||g" ${destroot}${prefix}/lib/esmf.mk
     reinplace "s|-L${worksrcpath}/lib||g" ${destroot}${prefix}/lib/esmf.mk
-    reinplace "s|-I${worksrcpath}/src/Infrastructure/stubs/.*||g" ${destroot}${prefix}/lib/esmf.mk
+    reinplace "s|-I${worksrcpath}/src/Infrastructure/stubs|-I${prefix}/share/esmf/src/Infrastructure/stubs|g" ${destroot}${prefix}/lib/esmf.mk
+    xinstall -d ${destroot}${prefix}/share/${name}
+    file copy ${worksrcpath}/src ${destroot}${prefix}/share/${name}
     system -W ${destroot}${prefix}/lib "ranlib libesmf.a"
     foreach l {libesmf.dylib libesmf_fullylinked.dylib} {
         if {[file exists ${destroot}${prefix}/lib/${l}]} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160326/b3546497/attachment.html>


More information about the macports-changes mailing list