36 lines
1.5 KiB
Ruby
36 lines
1.5 KiB
Ruby
class Buildapp < Formula
|
|
desc "Creates executables with SBCL"
|
|
homepage "https://www.xach.com/lisp/buildapp/"
|
|
url "https://github.com/xach/buildapp/archive/release-1.5.6.tar.gz"
|
|
sha256 "d77fb6c151605da660b909af058206f7fe7d9faf972e2c30876d42cb03d6a3ed"
|
|
license "BSD-2-Clause"
|
|
revision 3
|
|
head "https://github.com/xach/buildapp.git", branch: "master"
|
|
|
|
bottle do
|
|
sha256 arm64_ventura: "2b0fa0169991beae8813c92b3d80c514a80824d73c528ca95ae9e5708a29207c"
|
|
sha256 arm64_monterey: "c6a7dd43bd91f0e656162985b9786a8ec621fbfb593c84fd817fe5b1341ac9ed"
|
|
sha256 arm64_big_sur: "3a4d0ac54096f853b8b271e02369dd2666e5b69c975d3b3f18ae6e54b4adf966"
|
|
sha256 ventura: "5de604ca969929fb1ead705f6b976bc75933a19273d7557bd2b82d067271dfbd"
|
|
sha256 monterey: "f1899b47ef6aa32c5e121deb5509b263e4b112af9886722422ba764edaa27a1e"
|
|
sha256 big_sur: "55bb441ef8f0eed0e698f246541dcf874bbe652de2897d9deb89a2999c2c239b"
|
|
sha256 catalina: "631fa946cd687d3cc593fa43e489c96814de75fc6b98adebf11258d1f2043bd5"
|
|
sha256 mojave: "607c7238095cd1da76f2439679ed77ec4467649febfbbf99a24aefe0f23616b9"
|
|
end
|
|
|
|
depends_on "sbcl"
|
|
|
|
def install
|
|
bin.mkpath
|
|
system "make", "install", "DESTDIR=#{prefix}"
|
|
end
|
|
|
|
test do
|
|
code = "(defun f (a) (declare (ignore a)) (write-line \"Hello, homebrew\"))"
|
|
system "#{bin}/buildapp", "--eval", code,
|
|
"--entry", "f",
|
|
"--output", "t"
|
|
assert_equal `./t`, "Hello, homebrew\n"
|
|
end
|
|
end
|