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
7
+ head "https://github.com/sile-typesetter/sile.git" , branch : "master"
8
8
9
9
bottle do
10
10
sha256 cellar : :any , arm64_sequoia : "840aacf2bbfbac9fd5fc325774bf97b5b8f856744ac4d586b21818e2739409c6"
@@ -15,15 +15,10 @@ class Sile < Formula
15
15
sha256 cellar : :any_skip_relocation , x86_64_linux : "dbd247ab127cc9f68e3f25e4404974e1ec87e074af1210fb19240bde79dd4ff1"
16
16
end
17
17
18
- head do
19
- url "https://github.com/sile-typesetter/sile.git" , branch : "master"
20
-
21
- depends_on "autoconf" => :build
22
- depends_on "automake" => :build
23
- depends_on "libtool" => :build
24
- end
25
-
18
+ depends_on "autoconf" => :build
19
+ depends_on "automake" => :build
26
20
depends_on "jq" => :build
21
+ depends_on "libtool" => :build
27
22
depends_on "pkgconf" => :build
28
23
depends_on "poppler" => :build
29
24
depends_on "rust" => :build
@@ -45,8 +40,8 @@ class Sile < Formula
45
40
end
46
41
47
42
resource "compat53" do
48
- url "https://luarocks.org/manifests/lunarmodules/compat53-0.12 -1.rockspec"
49
- sha256 "880cdad8d1789a0756f2023d2c98f36d94e6d2c1cc507190b4f9883420435746 "
43
+ url "https://luarocks.org/manifests/lunarmodules/compat53-0.14.3 -1.rockspec"
44
+ sha256 "16218188112c20e9afa9e9057f753d29d7affb10fe3fb2ac74cab17c6de9a030 "
50
45
end
51
46
52
47
resource "linenoise" do
@@ -110,8 +105,8 @@ class Sile < Formula
110
105
111
106
# depends on luafilesystem
112
107
resource "penlight" do
113
- url "https://luarocks.org/manifests/tieske/penlight-1.13.1-1 .src.rock"
114
- sha256 "fa028f7057cad49cdb84acdd9fe362f090734329ceca8cc6abb2d95d43b91835 "
108
+ url "https://luarocks.org/manifests/tieske/penlight-1.14.0-2 .src.rock"
109
+ sha256 "f36affa14fb43e208a59f2e96d214f774b957bcd05d9c07ec52b39eac7f4a05d "
115
110
end
116
111
117
112
# depends on penlight
@@ -143,10 +138,6 @@ class Sile < Formula
143
138
end
144
139
145
140
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
141
lua = Formula [ "luajit" ]
151
142
luaversion = "5.1"
152
143
luapath = libexec /"vendor"
@@ -182,17 +173,17 @@ def install
182
173
r . stage do
183
174
rock = Pathname . pwd . children ( false ) . first
184
175
unpack_dir = Utils . safe_popen_read ( "luarocks" , "unpack" , rock ) . split ( "\n " ) [ -2 ]
185
-
186
176
spec = "#{ r . name } -#{ r . version } .rockspec"
187
177
cd ( unpack_dir ) { system "luarocks" , "make" , *luarocks_args , spec }
188
178
end
189
179
end
190
180
191
- configure_args = %w [
181
+ configure_args = %W [
192
182
FCMATCH=true
193
183
--disable-silent-rules
194
184
--with-system-luarocks
195
185
--with-system-lua-sources
186
+ --with-vendored-luarocks-dir=#{ luapath }
196
187
]
197
188
198
189
system "./bootstrap.sh" if build . head?
0 commit comments