Skip to content

Commit 939fcb8

Browse files
committed
fix
1 parent 4c3fa39 commit 939fcb8

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

packaging/homebrew/mfc.rb

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -96,20 +96,20 @@ 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
112-
PATCH_EOF
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
112+
PATCH_EOF
113113
114114
# Copy examples directory (required by mfc.sh Python code)
115115
cp -R "#{prefix}/examples" "examples"

0 commit comments

Comments
 (0)