diff --git a/Formula/s/sile.rb b/Formula/s/sile.rb index 2b2bba4969e35..2d3b563d94c97 100644 --- a/Formula/s/sile.rb +++ b/Formula/s/sile.rb @@ -143,8 +143,13 @@ class Sile < Formula end def install - # Workaround upstream darwin detection not picking up on e.g. aarch64-apple-darwin22.6.0 - inreplace "configure", "darwin*", "*darwin*" if build.stable? + # Workaround upstream Darwin detection not triggering autoreconf + stable do + inreplace "Makefile.am", "rusile.so", "rusile.dylib" + inreplace "Makefile.am", "rusile_so", "rusile_dylib" + inreplace "aminclude.am", "rusile.so", "rusile.dylib" + inreplace "aminclude.am", "rusile_so", "rusile_dylib" + end lua = Formula["luajit"] luaversion = "5.1" @@ -196,6 +201,8 @@ def install system "./bootstrap.sh" if build.head? system "./configure", *configure_args, *std_configure_args + system "grep", "-R", "SHARED_LIB_EXT" + system "grep", "-R", "librusile" system "make" system "make", "install" end