From 9381b2990d83bcf9c55314c71eafda19917edcb2 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Wed, 8 Sep 2021 13:56:43 +0100 Subject: [PATCH] petsc: use Superenv.shims_path Added in https://github.com/Homebrew/brew/pull/11987. --- Formula/petsc.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Formula/petsc.rb b/Formula/petsc.rb index 1d147b11a76..9b9520b3f05 100644 --- a/Formula/petsc.rb +++ b/Formula/petsc.rb @@ -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