[120732] trunk/dports/science/mpich/Portfile

sean at macports.org sean at macports.org
Thu Jun 5 20:54:01 PDT 2014


Revision: 120732
          https://trac.macports.org/changeset/120732
Author:   sean at macports.org
Date:     2014-06-05 20:54:01 -0700 (Thu, 05 Jun 2014)
Log Message:
-----------
mpich: update to 3.1.1

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

Modified: trunk/dports/science/mpich/Portfile
===================================================================
--- trunk/dports/science/mpich/Portfile	2014-06-06 03:53:56 UTC (rev 120731)
+++ trunk/dports/science/mpich/Portfile	2014-06-06 03:54:01 UTC (rev 120732)
@@ -6,8 +6,7 @@
 PortGroup           select 1.0
 
 name                mpich
-version             3.1
-revision            1
+version             3.1.1
 
 license             BSD
 categories          science parallel net
@@ -39,9 +38,8 @@
 # see, https://trac.macports.org/ticket/20240
 universal_variant   no
 
-checksums \
-    rmd160  8d682dd615f38b927197c94d8255625be3a24a54 \
-    sha256  fcf96dbddb504a64d33833dc455be3dda1e71c7b3df411dfcf9df066d7c32c39
+checksums           rmd160  d4a6d0992b45a4ad7000e8a40eb953f7af9feb82 \
+                    sha256  455ccfaf4ec724d2cf5d8bff1f3d26a958ad196121e7ea26504fd3018757652d
 
 livecheck.type      regex
 livecheck.regex     mpich-(\[0-9.p\]+)${extract.suffix}
@@ -180,6 +178,33 @@
                 delete ${destroot}${prefix}/share/doc
             }
         }
+
+        # 3.1.1 added weird variables to be replaced
+        foreach bin {cc cxx fort} {
+            reinplace -W ${destroot}${prefix}/bin \
+                "s,__PREFIX_TO_BE_FILLED_AT_INSTALL_TIME__,${prefix}," \
+                mpi$bin-${name}-${cname}
+
+            reinplace -W ${destroot}${prefix}/bin \
+                "s,__EXEC_PREFIX_TO_BE_FILLED_AT_INSTALL_TIME__,${prefix}/bin," \
+                mpi$bin-${name}-${cname}
+
+            reinplace -W ${destroot}${prefix}/bin \
+                "s,__SYSCONFDIR_TO_BE_FILLED_AT_INSTALL_TIME__,${prefix}/etc/${name}-${cname}," \
+                mpi$bin-${name}-${cname}
+
+            reinplace -W ${destroot}${prefix}/bin \
+                "s,__INCLUDEDIR_TO_BE_FILLED_AT_INSTALL_TIME__,${prefix}/include/${name}-${cname}," \
+                mpi$bin-${name}-${cname}
+
+            reinplace -W ${destroot}${prefix}/bin \
+                "s,__LIBDIR_TO_BE_FILLED_AT_INSTALL_TIME__,${prefix}/lib/${name}-${cname}," \
+                mpi$bin-${name}-${cname}
+        }
+
+        # 3.1.1 doesn't seem to provide mpif77 nor mpif90 wrappers anymore
+        ln -s ${prefix}/bin/mpifort-${name}-${cname} ${destroot}${prefix}/bin/mpif77-${name}-${cname}
+        ln -s ${prefix}/bin/mpifort-${name}-${cname} ${destroot}${prefix}/bin/mpif90-${name}-${cname}
     }
 
     if { [string first gcc $cname] == 0 } {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140605/fb33fd18/attachment.html>


More information about the macports-changes mailing list