1
1
class Sile < Formula
2
2
desc "Modern typesetting system inspired by TeX"
3
3
homepage "https://sile-typesetter.org"
4
- url "https://github.com/sile-typesetter/sile/releases/download/v0.15.5 /sile-0.15.5 .tar.zst"
5
- sha256 "d20137b02d16302d287670fd285ad28ac3b8d3af916460aa6bc8cbff9321b9f9 "
4
+ url "https://github.com/sile-typesetter/sile/releases/download/v0.15.7 /sile-0.15.7 .tar.zst"
5
+ sha256 "3e353a41f9fe1532f7bedeba9a42009ffb9758c3cf947f222ba076eb87a4222b "
6
6
license "MIT"
7
- revision 3
8
7
9
8
bottle do
10
9
sha256 cellar : :any , arm64_sequoia : "840aacf2bbfbac9fd5fc325774bf97b5b8f856744ac4d586b21818e2739409c6"
@@ -24,6 +23,7 @@ class Sile < Formula
24
23
end
25
24
26
25
depends_on "jq" => :build
26
+ depends_on "libtool" => :build
27
27
depends_on "pkgconf" => :build
28
28
depends_on "poppler" => :build
29
29
depends_on "rust" => :build
@@ -45,8 +45,8 @@ class Sile < Formula
45
45
end
46
46
47
47
resource "compat53" do
48
- url "https://luarocks.org/manifests/lunarmodules/compat53-0.12 -1.rockspec"
49
- sha256 "880cdad8d1789a0756f2023d2c98f36d94e6d2c1cc507190b4f9883420435746 "
48
+ url "https://luarocks.org/manifests/lunarmodules/compat53-0.14.3 -1.rockspec"
49
+ sha256 "16218188112c20e9afa9e9057f753d29d7affb10fe3fb2ac74cab17c6de9a030 "
50
50
end
51
51
52
52
resource "linenoise" do
@@ -110,8 +110,8 @@ class Sile < Formula
110
110
111
111
# depends on luafilesystem
112
112
resource "penlight" do
113
- url "https://luarocks.org/manifests/tieske/penlight-1.13.1-1 .src.rock"
114
- sha256 "fa028f7057cad49cdb84acdd9fe362f090734329ceca8cc6abb2d95d43b91835 "
113
+ url "https://luarocks.org/manifests/tieske/penlight-1.14.0-2 .src.rock"
114
+ sha256 "f36affa14fb43e208a59f2e96d214f774b957bcd05d9c07ec52b39eac7f4a05d "
115
115
end
116
116
117
117
# depends on penlight
@@ -143,10 +143,6 @@ class Sile < Formula
143
143
end
144
144
145
145
def install
146
- # Workaround for ICU 76+.
147
- # Issue ref: https://github.com/sile-typesetter/sile/issues/2152
148
- inreplace "configure" , '"icu-uc icu-io"' , '"icu-uc icu-i18n icu-io"' if build . stable?
149
-
150
146
lua = Formula [ "luajit" ]
151
147
luaversion = "5.1"
152
148
luapath = libexec /"vendor"
@@ -182,17 +178,17 @@ def install
182
178
r . stage do
183
179
rock = Pathname . pwd . children ( false ) . first
184
180
unpack_dir = Utils . safe_popen_read ( "luarocks" , "unpack" , rock ) . split ( "\n " ) [ -2 ]
185
-
186
181
spec = "#{ r . name } -#{ r . version } .rockspec"
187
182
cd ( unpack_dir ) { system "luarocks" , "make" , *luarocks_args , spec }
188
183
end
189
184
end
190
185
191
- configure_args = %w [
186
+ configure_args = %W [
192
187
FCMATCH=true
193
188
--disable-silent-rules
194
189
--with-system-luarocks
195
190
--with-system-lua-sources
191
+ --with-vendored-luarocks-dir=#{ luapath }
196
192
]
197
193
198
194
system "./bootstrap.sh" if build . head?
0 commit comments