36 lines
1.3 KiB
Ruby
36 lines
1.3 KiB
Ruby
class ChibiScheme < Formula
|
|
desc "Small footprint Scheme for use as a C Extension Language"
|
|
homepage "https://github.com/ashinn/chibi-scheme"
|
|
url "https://github.com/ashinn/chibi-scheme/archive/0.9.1.tar.gz"
|
|
sha256 "a9ee2afd7671418bc09a4d386448dbfd0662421ea1eb1c5ed3b68c071307854d"
|
|
license "BSD-3-Clause"
|
|
head "https://github.com/ashinn/chibi-scheme.git"
|
|
|
|
livecheck do
|
|
url :stable
|
|
regex(/^v?(\d+(?:\.\d+)+)$/i)
|
|
end
|
|
|
|
bottle do
|
|
sha256 arm64_big_sur: "72147f8c2e1d1c000e691fe2d02bef8ba00443f5f5d411abff7415363ca7ce7e"
|
|
sha256 big_sur: "4f474285e01e463347b461187271229e345c0a3771642f4dd39b22008be9583e"
|
|
sha256 catalina: "75122fe5413f7f206e9fcc717307d3603041a39a93b895c4b89a02845ac4c683"
|
|
sha256 mojave: "0ce202e52817dbed3e87e5911a74ad7f85e6f081b45deba0427d5d09b1dcb6ae"
|
|
sha256 high_sierra: "c3dac9e5642a0d725ae1d77e0a9139e829b24c7c34e8e85eb58e506d7ba2e240"
|
|
end
|
|
|
|
def install
|
|
ENV.deparallelize
|
|
|
|
# "make" and "make install" must be done separately
|
|
system "make", "PREFIX=#{prefix}"
|
|
system "make", "install", "PREFIX=#{prefix}"
|
|
end
|
|
|
|
test do
|
|
output = `#{bin}/chibi-scheme -mchibi -e "(for-each write '(0 1 2 3 4 5 6 7 8 9))"`
|
|
assert_equal "0123456789", output
|
|
assert_equal 0, $CHILD_STATUS.exitstatus
|
|
end
|
|
end
|