Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sile 0.15.8 #197800

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 25 additions & 19 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.8/sile-0.15.8.tar.zst"
sha256 "64c17abafd5b1ef30419a81b000998870c1b081b6372d55bc31df9c3b83f0f6a"
license "MIT"
revision 3
revision 1

bottle do
sha256 cellar: :any, arm64_sequoia: "840aacf2bbfbac9fd5fc325774bf97b5b8f856744ac4d586b21818e2739409c6"
Expand All @@ -15,15 +15,12 @@
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
Expand All @@ -45,8 +42,8 @@
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 @@ -110,8 +107,8 @@

# 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 @@ -142,10 +139,17 @@
sha256 "fcfa781a72b9372c37ee20a5863f98e07112a88efea08c8b15631e911bc2b441"
end

def install

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

View workflow job for this annotation

GitHub Actions / macOS 15-arm64

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

autoreconf: running: /opt/homebrew/Cellar/autoconf/2.72/bin/autoconf --force autoreconf: configure.ac: not using Autoheader autoreconf: running: automake --add-missing --copy --force-missing configure.ac:20: installing 'build-aux/compile' configure.ac:6: installing 'build-aux/missing' aminclude.am:216: error: 'rusile.so' is not a standard library name aminclude.am:216: did you mean 'librusile.a'? Makefile.am:119: 'aminclude.am' included from here justenough/Makefile.am: installing 'build-aux/depcomp' autoreconf: Leaving directory '.' cp -p /Users/brew/Library/Caches/Homebrew/downloads/438cb138442de623c855b100ebe360536cceb7437cf37e9b82ed0043c950789b--compat53-0.14.3-1.rockspec /private/tmp/sile--compat53-20241214-16506-fbwf48/compat53-0.14.3-1.rockspec ==> luarocks make ZLIB_DIR=/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr EXPAT_DIR=/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr OPENSSL_DIR=/opt/homebrew/opt/openssl@3 --tree=/opt/homebrew/Cellar/sile/0.15.8_1/libexec/vendor --lua-dir=/opt/homebrew/opt/luajit compat53-0.14.3-1.rockspec compat53 0.14.3-1 depends on lua >= 5.1, < 5.5 (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 liolib.c -o liolib.o env MACOSX_DEPLOYMENT_TARGET=11.0 gcc -L/opt/homebrew/opt/luajit/lib -bundle -undefined dynamic_lookup -all_load -o /private/tmp/luarocks_build-compat53-0.14.3-1-3400165/compat53/io.so liolib.o env MACOSX_DEPLOYMENT_TARGET=11.0 gcc -O2 -fPIC -I/opt/homebrew/opt/luajit/include/luajit-2.1 -c lutf8lib.c -o lutf8lib.o env MACOSX_DEPLOYMENT_TARGET=11.0 gcc -L/opt/homebrew/opt/luajit/lib -bundle -undefined dynamic_lookup -all_load -o /private/tmp/luarocks_build-compat53-0.14.3-1-3400165/compat53/utf8.so lutf8lib.o env MACOSX_DEPLOYMENT_TARGET=11.0 gcc -O2 -fPIC -I/opt/homebrew/opt/luajit/include/luajit-2.1 -c lstrlib.c -o lstrlib.o env MACOSX_DEPLOYMENT_TARGET=11.0 gcc -L/opt/homebrew/opt/luajit/lib -bundle -undefined dynamic_lookup -all_load -o /private/tmp/luarocks_build-compat53-0.14.3-1-3400165/compat53/string.so lstrlib.o env MACOSX_DEPLOYMENT_TARGET=11.0 gcc -O2 -fPIC -I/opt/homebrew/opt/luajit/include/luajit-2.1 -c ltablib.c -o ltablib.o env MACOSX_DEPLOYMENT_TARGET=11.0 gcc -L/opt/homebrew/opt/luajit/lib -bundle -undefined dynamic_lookup -all_load -o /private/tmp/luarocks_build-compat53-0.14.3-1-3400165/compat53/table.so ltablib.o No existing manifest. Attempting to rebuild... compat53 0.14.3-1 is now installed in /opt/homebrew/Cellar/sile/0.15.8_1/libexec/vendor (license: MIT) cp -p /Users/brew/Library/Caches/Homebrew/downloads/2605f45c878d68513a2392174bc3bf6c9352390ad14392a18f8400a2fa0b1f54--linenoise-0.9-1.rockspec /private/tmp/sile--linenoise-20241214-16506-iem34t/linenoise-0.9-1.rockspec ==> luarocks make ZLIB_DIR=/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr EXPAT_DIR=/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr OPENSSL_DIR=/opt/homebrew/opt/openssl@3 --tree=/opt/homebrew/Cellar/sile/0.15.8_1/libexec/vendor --lua-dir=/opt/homebrew/opt/luajit linenoise-0.9-1.rockspec linenoise 0.9-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 linenoise.c -o linenoise.o env MACOSX_DEPLOYMENT_TARGET=11.0 gcc -O2 -fPIC -I/opt/homebrew/opt/luajit/include/luajit-2.1 -c linenoiselib.c -o linenoiselib.o env MACOSX_DEPLOYMENT_TARGET=11.0 gcc -O2 -fPIC -I/opt/homebrew/opt/luajit/include/luajit-2.1 -c encodings/utf8.c -o encodings/utf8.o env MACOSX_DEPLOYMENT_TARGET=11.0 gcc -L/opt/homebrew/opt/luajit/lib -bundle -undefined dynamic_lookup -all_load -o /private/tmp/luarocks_build-linenoise-0.9-1-4689189/linenoise.so linenoise.o linenoiselib.o encodings/utf8.o linenoise 0.9-1 is now installed in /opt/homebrew/Cellar/sile/0.15.8_1/libexec/vendor (license: MIT/X11) cp -p /Users/brew/Library/Caches/Homebrew/downloads/1b4d75b086b8a0b26d8de88e4bfacb25ce48d2b4d48572b510c32b3106ff35f4--lpeg-1.1.0-1.src.rock /private/tmp/sile--lpeg-20

Check failure on line 142 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!

autoreconf: running: /opt/homebrew/Cellar/autoconf/2.72/bin/autoconf --force autoreconf: configure.ac: not using Autoheader autoreconf: running: automake --add-missing --copy --force-missing configure.ac:20: installing 'build-aux/compile' configure.ac:6: installing 'build-aux/missing' aminclude.am:216: error: 'rusile.so' is not a standard library name aminclude.am:216: did you mean 'librusile.a'? Makefile.am:119: 'aminclude.am' included from here justenough/Makefile.am: installing 'build-aux/depcomp' autoreconf: Leaving directory '.' cp -p /Users/brew/Library/Caches/Homebrew/downloads/438cb138442de623c855b100ebe360536cceb7437cf37e9b82ed0043c950789b--compat53-0.14.3-1.rockspec /private/tmp/sile--compat53-20241214-16760-jtpz3j/compat53-0.14.3-1.rockspec ==> 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.8_1/libexec/vendor --lua-dir=/opt/homebrew/opt/luajit compat53-0.14.3-1.rockspec compat53 0.14.3-1 depends on lua >= 5.1, < 5.5 (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 liolib.c -o liolib.o env MACOSX_DEPLOYMENT_TARGET=11.0 gcc -L/opt/homebrew/opt/luajit/lib -bundle -undefined dynamic_lookup -all_load -o /private/tmp/luarocks_build-compat53-0.14.3-1-2663053/compat53/io.so liolib.o env MACOSX_DEPLOYMENT_TARGET=11.0 gcc -O2 -fPIC -I/opt/homebrew/opt/luajit/include/luajit-2.1 -c ltablib.c -o ltablib.o env MACOSX_DEPLOYMENT_TARGET=11.0 gcc -L/opt/homebrew/opt/luajit/lib -bundle -undefined dynamic_lookup -all_load -o /private/tmp/luarocks_build-compat53-0.14.3-1-2663053/compat53/table.so ltablib.o env MACOSX_DEPLOYMENT_TARGET=11.0 gcc -O2 -fPIC -I/opt/homebrew/opt/luajit/include/luajit-2.1 -c lstrlib.c -o lstrlib.o env MACOSX_DEPLOYMENT_TARGET=11.0 gcc -L/opt/homebrew/opt/luajit/lib -bundle -undefined dynamic_lookup -all_load -o /private/tmp/luarocks_build-compat53-0.14.3-1-2663053/compat53/string.so lstrlib.o env MACOSX_DEPLOYMENT_TARGET=11.0 gcc -O2 -fPIC -I/opt/homebrew/opt/luajit/include/luajit-2.1 -c lutf8lib.c -o lutf8lib.o env MACOSX_DEPLOYMENT_TARGET=11.0 gcc -L/opt/homebrew/opt/luajit/lib -bundle -undefined dynamic_lookup -all_load -o /private/tmp/luarocks_build-compat53-0.14.3-1-2663053/compat53/utf8.so lutf8lib.o No existing manifest. Attempting to rebuild... compat53 0.14.3-1 is now installed in /opt/homebrew/Cellar/sile/0.15.8_1/libexec/vendor (license: MIT) cp -p /Users/brew/Library/Caches/Homebrew/downloads/2605f45c878d68513a2392174bc3bf6c9352390ad14392a18f8400a2fa0b1f54--linenoise-0.9-1.rockspec /private/tmp/sile--linenoise-20241214-16760-mp81sn/linenoise-0.9-1.rockspec ==> 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.8_1/libexec/vendor --lua-dir=/opt/homebrew/opt/luajit linenoise-0.9-1.rockspec linenoise 0.9-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 linenoise.c -o linenoise.o env MACOSX_DEPLOYMENT_TARGET=11.0 gcc -O2 -fPIC -I/opt/homebrew/opt/luajit/include/luajit-2.1 -c linenoiselib.c -o linenoiselib.o env MACOSX_DEPLOYMENT_TARGET=11.0 gcc -O2 -fPIC -I/opt/homebrew/opt/luajit/include/luajit-2.1 -c encodings/utf8.c -o encodings/utf8.o env MACOSX_DEPLOYMENT_TARGET=11.0 gcc -L/opt/homebrew/opt/luajit/lib -bundle -undefined dynamic_lookup -all_load -o /private/tmp/luarocks_build-linenoise-0.9-1-8155861/linenoise.so linenoise.o linenoiselib.o encodings/utf8.o linenoise 0.9-1 is now installed in /opt/homebrew/Cellar/sile/0.15.8_1/libexec/vendor (license: MIT/X11) cp -p /Users/brew/Library/Caches/Homebrew/downloads/1b4d75b086b8a0b26d8de88e4bfacb25ce48d2b4d48572b510c32b3106ff35f4--lpeg-1.1.0-1.src.rock /private/tmp/sile--lpeg-20

Check failure on line 142 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!

autoreconf: running: /opt/homebrew/Cellar/autoconf/2.72/bin/autoconf --force autoreconf: configure.ac: not using Autoheader autoreconf: running: automake --add-missing --copy --force-missing configure.ac:20: installing 'build-aux/compile' configure.ac:6: installing 'build-aux/missing' aminclude.am:216: error: 'rusile.so' is not a standard library name aminclude.am:216: did you mean 'librusile.a'? Makefile.am:119: 'aminclude.am' included from here justenough/Makefile.am: installing 'build-aux/depcomp' autoreconf: Leaving directory '.' cp -p /Users/brew/Library/Caches/Homebrew/downloads/438cb138442de623c855b100ebe360536cceb7437cf37e9b82ed0043c950789b--compat53-0.14.3-1.rockspec /private/tmp/sile--compat53-20241214-16613-9yhcip/compat53-0.14.3-1.rockspec ==> 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.8_1/libexec/vendor --lua-dir=/opt/homebrew/opt/luajit compat53-0.14.3-1.rockspec compat53 0.14.3-1 depends on lua >= 5.1, < 5.5 (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 liolib.c -o liolib.o env MACOSX_DEPLOYMENT_TARGET=11.0 gcc -L/opt/homebrew/opt/luajit/lib -bundle -undefined dynamic_lookup -all_load -o /private/tmp/luarocks_build-compat53-0.14.3-1-8565549/compat53/io.so liolib.o env MACOSX_DEPLOYMENT_TARGET=11.0 gcc -O2 -fPIC -I/opt/homebrew/opt/luajit/include/luajit-2.1 -c lutf8lib.c -o lutf8lib.o env MACOSX_DEPLOYMENT_TARGET=11.0 gcc -L/opt/homebrew/opt/luajit/lib -bundle -undefined dynamic_lookup -all_load -o /private/tmp/luarocks_build-compat53-0.14.3-1-8565549/compat53/utf8.so lutf8lib.o env MACOSX_DEPLOYMENT_TARGET=11.0 gcc -O2 -fPIC -I/opt/homebrew/opt/luajit/include/luajit-2.1 -c ltablib.c -o ltablib.o env MACOSX_DEPLOYMENT_TARGET=11.0 gcc -L/opt/homebrew/opt/luajit/lib -bundle -undefined dynamic_lookup -all_load -o /private/tmp/luarocks_build-compat53-0.14.3-1-8565549/compat53/table.so ltablib.o env MACOSX_DEPLOYMENT_TARGET=11.0 gcc -O2 -fPIC -I/opt/homebrew/opt/luajit/include/luajit-2.1 -c lstrlib.c -o lstrlib.o env MACOSX_DEPLOYMENT_TARGET=11.0 gcc -L/opt/homebrew/opt/luajit/lib -bundle -undefined dynamic_lookup -all_load -o /private/tmp/luarocks_build-compat53-0.14.3-1-8565549/compat53/string.so lstrlib.o No existing manifest. Attempting to rebuild... compat53 0.14.3-1 is now installed in /opt/homebrew/Cellar/sile/0.15.8_1/libexec/vendor (license: MIT) cp -p /Users/brew/Library/Caches/Homebrew/downloads/2605f45c878d68513a2392174bc3bf6c9352390ad14392a18f8400a2fa0b1f54--linenoise-0.9-1.rockspec /private/tmp/sile--linenoise-20241214-16613-j8rssx/linenoise-0.9-1.rockspec ==> 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.8_1/libexec/vendor --lua-dir=/opt/homebrew/opt/luajit linenoise-0.9-1.rockspec linenoise 0.9-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 linenoise.c -o linenoise.o env MACOSX_DEPLOYMENT_TARGET=11.0 gcc -O2 -fPIC -I/opt/homebrew/opt/luajit/include/luajit-2.1 -c linenoiselib.c -o linenoiselib.o env MACOSX_DEPLOYMENT_TARGET=11.0 gcc -O2 -fPIC -I/opt/homebrew/opt/luajit/include/luajit-2.1 -c encodings/utf8.c -o encodings/utf8.o env MACOSX_DEPLOYMENT_TARGET=11.0 gcc -L/opt/homebrew/opt/luajit/lib -bundle -undefined dynamic_lookup -all_load -o /private/tmp/luarocks_build-linenoise-0.9-1-9687670/linenoise.so linenoise.o linenoiselib.o encodings/utf8.o linenoise 0.9-1 is now installed in /opt/homebrew/Cellar/sile/0.15.8_1/libexec/vendor (license: MIT/X11) cp -p /Users/brew/Library/Caches/Homebrew/downloads/1b4d75b086b8a0b26d8de88e4bfacb25ce48d2b4d48572b510c32b3106ff35f4--lpeg-1.1.0-1.src.rock /private/tmp/sile--lpeg-20
# 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?
# Workaround upstream Darwin detection not triggering autoreconf
if build.stable? && !OS.linux?
# inreplace "Makefile.in", "rusile_so", "rusile_dylib"
# inreplace "Makefile.in", "rusile.so", "rusile.dylib"
# inreplace "aminclude.am", "rusile_so", "rusile_dylib"
# inreplace "aminclude.am", "rusile.so", "rusile.dylib"
inreplace "configure.ac", "AC_CANONICAL_TARGET", "AC_CANONICAL_HOST"
inreplace "configure.ac", "target_os", "host_os"
system "autoreconf", "-fiv"
end

lua = Formula["luajit"]
luaversion = "5.1"
Expand Down Expand Up @@ -182,21 +186,23 @@
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?
system "./configure", *configure_args, *std_configure_args
system "grep", "-R", "SHARED_LIB_EXT"
system "grep", "-R", "librusile"
system "make"
system "make", "install"
end
Expand Down
Loading