Skip to content

Commit

Permalink
sile: 0.15.6
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Dec 3, 2024
1 parent 4d73290 commit 90ff2bc
Showing 1 changed file with 11 additions and 17 deletions.
28 changes: 11 additions & 17 deletions Formula/s/sile.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
class Sile < Formula
desc "Modern typesetting system inspired by TeX"
homepage "https://sile-typesetter.org"
url "https://github.com/sile-typesetter/sile/releases/download/v0.15.5/sile-0.15.5.tar.zst"
sha256 "d20137b02d16302d287670fd285ad28ac3b8d3af916460aa6bc8cbff9321b9f9"
url "https://github.com/sile-typesetter/sile/releases/download/v0.15.6/sile-0.15.6.tar.zst"
sha256 "0ad3efc5ba6adbfab0b8034fa7d5c32501e5c486c589a35926f619794c7fc321"
license "MIT"
revision 3
revision 1

bottle do
sha256 cellar: :any, arm64_sequoia: "840aacf2bbfbac9fd5fc325774bf97b5b8f856744ac4d586b21818e2739409c6"
Expand Down Expand Up @@ -45,8 +45,8 @@ class Sile < Formula
end

resource "compat53" do
url "https://luarocks.org/manifests/lunarmodules/compat53-0.12-1.rockspec"
sha256 "880cdad8d1789a0756f2023d2c98f36d94e6d2c1cc507190b4f9883420435746"
url "https://luarocks.org/manifests/lunarmodules/compat53-0.14.3-1.rockspec"
sha256 "16218188112c20e9afa9e9057f753d29d7affb10fe3fb2ac74cab17c6de9a030"
end

resource "linenoise" do
Expand Down Expand Up @@ -74,11 +74,9 @@ class Sile < Formula
sha256 "adc3e279ce67fb477ce7bf88cfb87607491d1c50d9c785b1567066c353f192f9"
end

# This resource cannot be updated
# Ref: https://github.com/Homebrew/homebrew-core/pull/128136#issuecomment-1505583956
resource "luaexpat" do
url "https://luarocks.org/manifests/lunarmodules/luaexpat-1.4.1-1.src.rock"
sha256 "b2b31f62fd09252d7ec0218d083cf9b8d9fc6a20f4594559f96649beee172233"
url "https://luarocks.org/manifests/lunarmodules/luaexpat-1.5.2-1.src.rock"
sha256 "a88ac147d2ceaf168fddedd2245928f35d4c0218094142b054db7e9bae0b5b82"
end

# depends on lpeg
Expand Down Expand Up @@ -110,8 +108,8 @@ class Sile < Formula

# depends on luafilesystem
resource "penlight" do
url "https://luarocks.org/manifests/tieske/penlight-1.13.1-1.src.rock"
sha256 "fa028f7057cad49cdb84acdd9fe362f090734329ceca8cc6abb2d95d43b91835"
url "https://luarocks.org/manifests/tieske/penlight-1.14.0-2.src.rock"
sha256 "f36affa14fb43e208a59f2e96d214f774b957bcd05d9c07ec52b39eac7f4a05d"
end

# depends on penlight
Expand Down Expand Up @@ -143,10 +141,6 @@ class Sile < Formula
end

def install

Check failure on line 143 in Formula/s/sile.rb

View workflow job for this annotation

GitHub Actions / macOS 14-arm64

`brew install --verbose --formula --build-bottle sile` failed on macOS Sonoma (14) on Apple Silicon!

env MACOSX_DEPLOYMENT_TARGET=11.0 gcc -L/opt/homebrew/opt/luajit/lib -bundle -undefined dynamic_lookup -all_load -o /private/tmp/luarocks_build-lua-zlib-1.2-2-9347785/zlib.so lua_zlib.o -lz lua-zlib 1.2-2 is now installed in /opt/homebrew/Cellar/sile/0.15.6_1/libexec/vendor (license: MIT) cp -p /Users/brew/Library/Caches/Homebrew/downloads/069e1d53bc51c7fd0bb0447eb764bb462f20b0b0abe3090bf83ea13b9e0c01cc--luaexpat-1.5.2-1.src.rock /private/tmp/sile--luaexpat-20241203-16572-19kx7k/luaexpat-1.5.2-1.src.rock ==> luarocks make ZLIB_DIR=/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr EXPAT_DIR=/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr OPENSSL_DIR=/opt/homebrew/opt/openssl@3 --tree=/opt/homebrew/Cellar/sile/0.15.6_1/libexec/vendor --lua-dir=/opt/homebrew/opt/luajit luaexpat-1.5.2-1.rockspec src/lxplib.c:12:10: fatal error: 'expat_config.h' file not found 12 | #include "expat_config.h" | ^~~~~~~~~~~~~~~~ 1 error generated. Error: Build error: Failed compiling object src/lxplib.o luaexpat 1.5.2-1 depends on lua >= 5.1 (5.1-1 provided by VM: success) env MACOSX_DEPLOYMENT_TARGET=11.0 gcc -O2 -fPIC -I/opt/homebrew/opt/luajit/include/luajit-2.1 -c src/lxplib.c -o src/lxplib.o -I/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include -Isrc/ ==> Formula Path: /opt/homebrew/Library/Taps/homebrew/homebrew-core/Formula/s/sile.rb ==> Configuration HOMEBREW_VERSION: 4.4.9-7-gd4c8ce0 ORIGIN: https://github.com/Homebrew/brew HEAD: d4c8ce0bba65ba80c05ae3c0b8656d651e47bfce Last commit: 72 minutes ago Branch: master Core tap HEAD: c7c346db04fa178b300f720dddc9d95027b32008 Core tap last commit: 8 minutes ago Core tap JSON: 03 Dec 10:36 UTC Core cask tap JSON: 03 Dec 10:36 UTC HOMEBREW_PREFIX: /opt/homebrew HOMEBREW_BOOTSNAP: set HOMEBREW_CACHE: /Users/brew/Library/Caches/Homebrew HOMEBREW_CASK_OPTS: [] HOMEBREW_COLOR: set HOMEBREW_CURL_PATH: /usr/bin/curl HOMEBREW_FAIL_LOG_LINES: 150 HOMEBREW_GITHUB_API_TOKEN: set HOMEBREW_GIT_EMAIL: [email protected] HOMEBREW_GIT_NAME: BrewTestBot HOMEBREW_GIT_PATH: /usr/bin/git HOMEBREW_LOGS: /Users/brew/actions-runner/_work/homebrew-core/homebrew-core/bottles/logs HOMEBREW_MAKE_JOBS: 4 HOMEBREW_NO_AUTO_UPDATE: set HOMEBREW_NO_EMOJI: set HOMEBREW_NO_ENV_HINTS: set HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: set HOMEBREW_NO_INSTALL_FROM_API: set HOMEBREW_SORBET_RUNTIME: set HOMEBREW_VERIFY_ATTESTATIONS: set Homebrew Ruby: 3.3.6 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.6/bin/ruby CPU: quad-core 64-bit dunno Clang: 16.0.0 build 1600 Git: 2.39.5 => /usr/bin/git Curl: 8.7.1 => /usr/bin/curl macOS: 14.7-arm64 CLT: 16.1.0.0.1.1729049160 Xcode: 16.1 Rosetta 2: false ==> ENV HOMEBREW_CC: clang HOMEBREW_CXX: clang++ CPPFLAGS: -I/opt/homebrew/opt/luajit/include/luajit-2.1 LDFLAGS: -L/opt/homebrew/opt/luajit/lib MAKEFLAGS: -j4 CMAKE_PREFIX_PATH: /opt/homebrew/opt/readline:/opt/homebrew/opt/sqlite:/opt/homebrew/opt/icu4c@76:/opt/homebrew CMAKE_INCLUDE_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers CMAKE_LIBRARY_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries CMAKE_FRAMEWORK_PATH: /opt/homebrew/opt/[email protected]/Frameworks PKG_CONFIG_PATH: /opt/homebrew/opt/jq/lib/pkgconfig:/opt/homebrew/opt/pkgconf/lib/pkgconfig:/opt/homebrew/opt/poppler/lib/pkgconfig:/opt/homebrew/opt/libpng/lib/pkgconfig:/opt/homebrew/opt/freetype/lib/pkgconfig:/opt/homebrew/opt/fontconfig/lib/pkgconfig:/opt/homebrew/opt/pcre2/lib/pkgconfig:/opt/homebrew/opt/mpdecimal/lib/pkgconfig:/opt/homebrew/opt/openssl@3/lib/pkgconfig:/opt/homebrew/opt/readline/lib/pkgconfig:/opt/homebrew/opt/sqlite/lib/pkgconfig:/opt/homebrew/opt/xz/lib/pkgconfig:/opt/homebrew/opt/[email protected]/lib/pkgconfig:/opt/homebrew/opt/glib/lib/pkgconfig:/opt/homebrew/opt/libxau/lib/pkgconfig:/opt/homebrew/opt/libxdmcp/lib/pkgconfig:/opt/homebrew/opt/libxcb/lib/pkgconfig:/opt/homebrew/opt/libx11/lib/pkgconfig:/opt/homebrew/op

Check failure on line 143 in Formula/s/sile.rb

View workflow job for this annotation

GitHub Actions / macOS 13-arm64

`brew install --verbose --formula --build-bottle sile` failed on macOS Ventura (13) on Apple Silicon!

env MACOSX_DEPLOYMENT_TARGET=11.0 gcc -L/opt/homebrew/opt/luajit/lib -bundle -undefined dynamic_lookup -all_load -o /private/tmp/luarocks_build-lua-zlib-1.2-2-319683/zlib.so lua_zlib.o -lz lua-zlib 1.2-2 is now installed in /opt/homebrew/Cellar/sile/0.15.6_1/libexec/vendor (license: MIT) cp -p /Users/brew/Library/Caches/Homebrew/downloads/069e1d53bc51c7fd0bb0447eb764bb462f20b0b0abe3090bf83ea13b9e0c01cc--luaexpat-1.5.2-1.src.rock /private/tmp/sile--luaexpat-20241203-16429-478ah7/luaexpat-1.5.2-1.src.rock ==> luarocks make ZLIB_DIR=/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr EXPAT_DIR=/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr OPENSSL_DIR=/opt/homebrew/opt/openssl@3 --tree=/opt/homebrew/Cellar/sile/0.15.6_1/libexec/vendor --lua-dir=/opt/homebrew/opt/luajit luaexpat-1.5.2-1.rockspec src/lxplib.c:12:10: fatal error: 'expat_config.h' file not found #include "expat_config.h" ^~~~~~~~~~~~~~~~ 1 error generated. Error: Build error: Failed compiling object src/lxplib.o luaexpat 1.5.2-1 depends on lua >= 5.1 (5.1-1 provided by VM: success) env MACOSX_DEPLOYMENT_TARGET=11.0 gcc -O2 -fPIC -I/opt/homebrew/opt/luajit/include/luajit-2.1 -c src/lxplib.c -o src/lxplib.o -I/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include -Isrc/ ==> Formula Path: /opt/homebrew/Library/Taps/homebrew/homebrew-core/Formula/s/sile.rb ==> Configuration HOMEBREW_VERSION: 4.4.9-7-gd4c8ce0 ORIGIN: https://github.com/Homebrew/brew HEAD: d4c8ce0bba65ba80c05ae3c0b8656d651e47bfce Last commit: 72 minutes ago Branch: master Core tap HEAD: c7c346db04fa178b300f720dddc9d95027b32008 Core tap last commit: 8 minutes ago Core tap JSON: 03 Dec 10:36 UTC Core cask tap JSON: 03 Dec 10:36 UTC HOMEBREW_PREFIX: /opt/homebrew HOMEBREW_BOOTSNAP: set HOMEBREW_CACHE: /Users/brew/Library/Caches/Homebrew HOMEBREW_CASK_OPTS: [] HOMEBREW_COLOR: set HOMEBREW_CURL_PATH: /usr/bin/curl HOMEBREW_FAIL_LOG_LINES: 150 HOMEBREW_GITHUB_API_TOKEN: set HOMEBREW_GIT_EMAIL: [email protected] HOMEBREW_GIT_NAME: BrewTestBot HOMEBREW_GIT_PATH: /usr/bin/git HOMEBREW_LOGS: /Users/brew/actions-runner/_work/homebrew-core/homebrew-core/bottles/logs HOMEBREW_MAKE_JOBS: 4 HOMEBREW_NO_AUTO_UPDATE: set HOMEBREW_NO_EMOJI: set HOMEBREW_NO_ENV_HINTS: set HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: set HOMEBREW_NO_INSTALL_FROM_API: set HOMEBREW_SORBET_RUNTIME: set HOMEBREW_VERIFY_ATTESTATIONS: set Homebrew Ruby: 3.3.6 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.6/bin/ruby CPU: quad-core 64-bit dunno Clang: 15.0.0 build 1500 Git: 2.39.3 => /usr/bin/git Curl: 8.7.1 => /usr/bin/curl macOS: 13.7-arm64 CLT: 15.1.0.0.1.1700200546 Xcode: 15.2 Rosetta 2: false ==> ENV HOMEBREW_CC: clang HOMEBREW_CXX: clang++ CPPFLAGS: -I/opt/homebrew/opt/luajit/include/luajit-2.1 LDFLAGS: -L/opt/homebrew/opt/luajit/lib MAKEFLAGS: -j4 CMAKE_PREFIX_PATH: /opt/homebrew/opt/readline:/opt/homebrew/opt/sqlite:/opt/homebrew/opt/icu4c@76:/opt/homebrew CMAKE_INCLUDE_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers CMAKE_LIBRARY_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries CMAKE_FRAMEWORK_PATH: /opt/homebrew/opt/[email protected]/Frameworks PKG_CONFIG_PATH: /opt/homebrew/opt/jq/lib/pkgconfig:/opt/homebrew/opt/pkgconf/lib/pkgconfig:/opt/homebrew/opt/poppler/lib/pkgconfig:/opt/homebrew/opt/libpng/lib/pkgconfig:/opt/homebrew/opt/freetype/lib/pkgconfig:/opt/homebrew/opt/fontconfig/lib/pkgconfig:/opt/homebrew/opt/pcre2/lib/pkgconfig:/opt/homebrew/opt/mpdecimal/lib/pkgconfig:/opt/homebrew/opt/openssl@3/lib/pkgconfig:/opt/homebrew/opt/readline/lib/pkgconfig:/opt/homebrew/opt/sqlite/lib/pkgconfig:/opt/homebrew/opt/xz/lib/pkgconfig:/opt/homebrew/opt/[email protected]/lib/pkgconfig:/opt/homebrew/opt/glib/lib/pkgconfig:/opt/homebrew/opt/libxau/lib/pkgconfig:/opt/homebrew/opt/libxdmcp/lib/pkgconfig:/opt/homebrew/opt/libxcb/lib/pkgconfig:/opt/homebrew/opt/libx11/lib/pkgconfig:/opt/homebrew/opt/libxext/lib/pkg
# Workaround for ICU 76+.
# Issue ref: https://github.com/sile-typesetter/sile/issues/2152
inreplace "configure", '"icu-uc icu-io"', '"icu-uc icu-i18n icu-io"' if build.stable?

lua = Formula["luajit"]
luaversion = "5.1"
luapath = libexec/"vendor"
Expand Down Expand Up @@ -182,17 +176,17 @@ def install
r.stage do
rock = Pathname.pwd.children(false).first
unpack_dir = Utils.safe_popen_read("luarocks", "unpack", rock).split("\n")[-2]

spec = "#{r.name}-#{r.version}.rockspec"
cd(unpack_dir) { system "luarocks", "make", *luarocks_args, spec }
end
end

configure_args = %w[
configure_args = %W[
FCMATCH=true
--disable-silent-rules
--with-system-luarocks
--with-system-lua-sources
--with-vendored-luarocks-dir=#{luapath}
]

system "./bootstrap.sh" if build.head?
Expand Down

0 comments on commit 90ff2bc

Please sign in to comment.