From 9ddd9ff5e4ffe09f2764a555c80bf0afa5f50b53 Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Fri, 13 Dec 2024 15:53:44 +0300 Subject: [PATCH] fixup! sile: 0.15.8 --- Formula/s/sile.rb | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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