parent
6ddf867d7f
commit
9381b2990d
|
@ -45,9 +45,9 @@ class Petsc < Formula
|
|||
rm_f lib/"petsc/conf/configure-hash"
|
||||
|
||||
if OS.mac?
|
||||
inreplace lib/"petsc/conf/petscvariables", "#{HOMEBREW_SHIMS_PATH}/mac/super/", ""
|
||||
elsif File.readlines("#{lib}/petsc/conf/petscvariables").grep(/#{HOMEBREW_SHIMS_PATH}/o).any?
|
||||
inreplace lib/"petsc/conf/petscvariables", "#{HOMEBREW_SHIMS_PATH}/linux/super/", ""
|
||||
inreplace lib/"petsc/conf/petscvariables", Superenv.shims_path, ""
|
||||
elsif File.readlines("#{lib}/petsc/conf/petscvariables").grep(Superenv.shims_path.to_s).any?
|
||||
inreplace lib/"petsc/conf/petscvariables", Superenv.shims_path, ""
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue