Skip to content

Commit a6a1130

Browse files
mfc: v5.1.0
1 parent a9797d4 commit a6a1130

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

Formula/mfc.rb

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -96,19 +96,19 @@ def install
9696
# Replace get_install_binpath to return Homebrew bin directory
9797
cat >> "toolchain/mfc/build.py" << 'PATCH_EOF'
9898
99-
# Homebrew patch: Override get_install_binpath to use pre-installed binaries
100-
_original_get_install_binpath = MFCTarget.get_install_binpath
101-
def _homebrew_get_install_binpath(self, case):
102-
return "#{bin}/" + self.name
103-
MFCTarget.get_install_binpath = _homebrew_get_install_binpath
104-
105-
# Override is_buildable to skip building main targets and syscheck
106-
_original_is_buildable = MFCTarget.is_buildable
107-
def _homebrew_is_buildable(self):
108-
if self.name in ["pre_process", "simulation", "post_process", "syscheck"]:
109-
return False # Skip building - use pre-installed binaries
110-
return _original_is_buildable(self)
111-
MFCTarget.is_buildable = _homebrew_is_buildable
99+
# Homebrew patch: Override get_install_binpath to use pre-installed binaries
100+
_original_get_install_binpath = MFCTarget.get_install_binpath
101+
def _homebrew_get_install_binpath(self, case):
102+
return "#{bin}/" + self.name
103+
MFCTarget.get_install_binpath = _homebrew_get_install_binpath
104+
105+
# Override is_buildable to skip building main targets and syscheck
106+
_original_is_buildable = MFCTarget.is_buildable
107+
def _homebrew_is_buildable(self):
108+
if self.name in ["pre_process", "simulation", "post_process", "syscheck"]:
109+
return False # Skip building - use pre-installed binaries
110+
return _original_is_buildable(self)
111+
MFCTarget.is_buildable = _homebrew_is_buildable
112112
PATCH_EOF
113113
114114
# Copy examples directory (required by mfc.sh Python code)

0 commit comments

Comments
 (0)