--- Portfile.orig	2012-05-16 11:30:50.000000000 -0500
+++ Portfile	2012-05-16 14:12:33.000000000 -0500
@@ -51,6 +51,8 @@
 	foreach bin {mpirun mpiexec} {
 		system -W ${destroot}${prefix}/bin \
 			"ln -sf ${prefix}/lib/${name}/bin/orterun open${bin}"
+		move ${destroot}${prefix}/share/man/man1/${bin}.1 \
+			${destroot}${prefix}/share/man/man1/open${bin}.1 
 	}
 	foreach bin ${wrappers} {
 		system -W ${destroot}${prefix}/bin \
@@ -58,7 +60,19 @@
 		system -W ${destroot}${prefix}/share/${name} \
 			"ln -sf ${prefix}/share/${name}/${bin}-wrapper-data.txt \
 			open${bin}-wrapper-data.txt"
+		move ${destroot}${prefix}/share/man/man1/${bin}.1 \
+			${destroot}${prefix}/share/man/man1/open${bin}.1 
 	}
+	if {![variant_isset man3]} {
+		delete ${destroot}${prefix}/share/man/man3
+	}
+}
+
+default_variants    +man3
+
+variant man3 description {\
+	Install man3 (MPI functions) man pages; conflicts with mpich2} {
+		conflicts         mpich2
 }
 
 variant threads description {enable threads for MPI applications} {
