aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorCharlie Sharpsteen2011-09-08 09:10:25 -0700
committerCharlie Sharpsteen2011-09-08 09:10:25 -0700
commitf858968ba116084079a23d908df08a4aaf003c2f (patch)
tree943c0b66248fffd68a6ba094577ed5c69c96cd90 /Library/Formula
parenta68e250663702d8a5309b845aaa7d1e421e6141d (diff)
downloadhomebrew-f858968ba116084079a23d908df08a4aaf003c2f.tar.bz2
Open-MPI: Install Fortran `.mod` file to `include`
Fixes #7356.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/open-mpi.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Formula/open-mpi.rb b/Library/Formula/open-mpi.rb
index c9443fb72..ecf46925b 100644
--- a/Library/Formula/open-mpi.rb
+++ b/Library/Formula/open-mpi.rb
@@ -11,5 +11,9 @@ class OpenMpi < Formula
ENV.delete('CXXFLAGS')
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
system "make install"
+
+ # If Fortran bindings were built, there will be a stra `.mod` file (Fortran
+ # header) in `lib` that needs to be moved to `include`.
+ mv lib + 'mpi.mod', include if (lib + 'mpi.mod').exist?
end
end