From 744fd9e76a7271931d593c59f0ad3aa541866c41 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 | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/Formula/s/sile.rb b/Formula/s/sile.rb index 2b2bba4969e35..1c051ba57830b 100644 --- a/Formula/s/sile.rb +++ b/Formula/s/sile.rb @@ -15,15 +15,12 @@ class Sile < Formula sha256 cellar: :any_skip_relocation, x86_64_linux: "dbd247ab127cc9f68e3f25e4404974e1ec87e074af1210fb19240bde79dd4ff1" end - head do - url "https://github.com/sile-typesetter/sile.git", branch: "master" - - depends_on "autoconf" => :build - depends_on "automake" => :build - depends_on "libtool" => :build - end + url "https://github.com/sile-typesetter/sile.git", branch: "master" if build.head? + depends_on "autoconf" => :build + depends_on "automake" => :build depends_on "jq" => :build + depends_on "libtool" => :build depends_on "pkgconf" => :build depends_on "poppler" => :build depends_on "rust" => :build @@ -143,9 +140,6 @@ 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? - lua = Formula["luajit"] luaversion = "5.1" luapath = libexec/"vendor" @@ -195,7 +189,11 @@ def install ] system "./bootstrap.sh" if build.head? + # Workaround Darwin detection *results* being baked in the generated Makefile in the tarball + system "autoreconf", "-fiv" if build.stable? system "./configure", *configure_args, *std_configure_args + system "grep", "-R", "SHARED_LIB_EXT" + system "grep", "-R", "librusile" system "make" system "make", "install" end