[71648] trunk/dports/science/mpich2/Portfile

ryandesign at macports.org ryandesign at macports.org
Sat Sep 18 14:37:28 PDT 2010


Revision: 71648
          http://trac.macports.org/changeset/71648
Author:   ryandesign at macports.org
Date:     2010-09-18 14:37:27 -0700 (Sat, 18 Sep 2010)
Log Message:
-----------
mpich2: fix documentation and examples directories (see #26527) and remove questionable mpecheckinstall and mpeuninstall scripts

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

Modified: trunk/dports/science/mpich2/Portfile
===================================================================
--- trunk/dports/science/mpich2/Portfile	2010-09-18 21:33:18 UTC (rev 71647)
+++ trunk/dports/science/mpich2/Portfile	2010-09-18 21:37:27 UTC (rev 71648)
@@ -4,6 +4,7 @@
 PortSystem          1.0
 name                mpich2
 version             1.2.1p1
+revision            1
 categories          science parallel net
 platforms           darwin
 maintainers         nomaintainer
@@ -31,9 +32,9 @@
                     --enable-timer-type=gettimeofday \
                     --enable-cxx \
                     --mandir=${prefix}/share/man \
-                    --with-htmldir=${prefix}/share/doc/${name} \
+                    --docdir=${prefix}/share/doc/${name} \
+                    --htmldir=${prefix}/share/doc/${name} \
                     --includedir=${prefix}/include/${name} \
-                    --with-docdir=${prefix}/share/doc/${name} \
                     --with-python=${prefix}/bin/python2.5 \
                     --disable-f77 --disable-f90
 
@@ -76,5 +77,23 @@
    configure.args-append   --enable-sharedlibs=osx-gcc
 }
 
+post-destroot {
+    # Fix misplaced documentation directories
+    foreach d {jumpshot-4 www4} {
+        move ${destroot}${prefix}/share/doc/${d} ${destroot}${prefix}/share/doc/${name}/${d}
+    }
+    
+    # Fix misplaced examples directories
+    xinstall -d ${destroot}${prefix}/share/examples/${name}
+    foreach p {collchk graphics logging} {
+        move ${destroot}${prefix}/share/examples_${p} ${destroot}${prefix}/share/examples/${name}/${p}
+    }
+    
+    # Remove questionable scripts
+    foreach f {mpecheckinstall mpeuninstall} {
+        delete ${destroot}${prefix}/sbin/${f}
+    }
+}
+
 livecheck.type      regex
 livecheck.regex     ${name}-(\[0-9.p\]+)${extract.suffix}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100918/765f35a4/attachment-0001.html>


More information about the macports-changes mailing list