Repository navigation
Expand file tree
/
Copy pathecl-fork.rb
More file actions
54 lines (46 loc) · 1.81 KB
/
Copy pathecl-fork.rb
File metadata and controls
54 lines (46 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
class EclFork < Formula
desc "Embeddable Common Lisp"
homepage "https://ecl.common-lisp.dev"
url "https://ecl.common-lisp.dev/static/files/release/ecl-26.5.5.tgz"
sha256 "a01a5bcda8c5b73e59dda3494fd13e5fec5db6aa1dad782c3cc3bb57f1633435"
license "LGPL-2.1-or-later"
head "https://gitlab.com/embeddable-common-lisp/ecl.git", branch: "develop"
livecheck do
url "https://ecl.common-lisp.dev/static/files/release/"
regex(/href=.*?ecl[._-]v?(\d+(?:\.\d+)+)\.t/i)
end
bottle do
root_url "https://github.com/dimpase/homebrew-tap/releases/download/ecl-fork-26.5.5"
sha256 arm64_tahoe: "5ef2bdfd13f4c88ea4dd029fb795af8e32dd8c2ef78b2e72e35768d28fb5c8ea"
sha256 x86_64_linux: "72dd7a6a87ad2ed15086e5f2fd7fbd743fa2b67795e127eb5b52d9302c47a1ee"
end
disable! date: "2026-07-01", because: "mainline ecl is good now"
depends_on "texinfo" => :build # Apple's is too old
depends_on "bdw-gc"
depends_on "gmp"
uses_from_macos "libffi"
conflicts_with "ecl", because: "mainline ecl is installed by default"
def install
ENV.deparallelize
libffi_prefix = if OS.mac?
MacOS.sdk_path
else
formula_opt_prefix("libffi")
end
system "./configure", "--prefix=#{prefix}",
"--enable-threads=yes",
"--enable-boehm=system",
"--enable-gmp=system",
"--with-gmp-prefix=#{formula_opt_prefix("gmp")}",
"--with-libffi-prefix=#{libffi_prefix}",
"--with-libgc-prefix=#{formula_opt_prefix("bdw-gc")}"
system "make"
system "make", "install"
end
test do
(testpath/"simple.cl").write <<~LISP
(write-line (write-to-string (+ 2 2)))
LISP
assert_equal "4", shell_output("#{bin}/ecl -shell #{testpath}/simple.cl").chomp
end
end