Skip to content

Commit 84435a8

Browse files
committed
fheroes2: avoid copying dylibs
1 parent 01c143f commit 84435a8

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Formula/f/fheroes2.rb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,10 @@ class Fheroes2 < Formula
3030

3131
uses_from_macos "zlib"
3232

33-
on_macos do
34-
depends_on "dylibbundler" => :build
35-
end
36-
3733
def install
34+
# Avoid running dylibbundler to prevent copying dylibs
35+
inreplace "CMakeLists.txt", /^(\s*run_dylibbundler)\s+ALL$/, "\\1"
36+
3837
args = std_cmake_args
3938
args << "-DMACOS_APP_BUNDLE=ON" if OS.mac?
4039
system "cmake", "-S", ".", "-B", "build", *args

0 commit comments

Comments
 (0)