forked from Homebrew/homebrew-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchicken.rb
33 lines (28 loc) · 985 Bytes
/
chicken.rb
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
class Chicken < Formula
desc "Compiler for the Scheme programming language"
homepage "https://www.call-cc.org/"
url "https://code.call-cc.org/releases/5.1.0/chicken-5.1.0.tar.gz"
sha256 "5c1101a8d8faabfd500ad69101e0c7c8bd826c68970f89c270640470e7b84b4b"
head "https://code.call-cc.org/git/chicken-core.git"
bottle do
sha256 "f08f36b85d0a45fae786647581714722d8aaff881ce57f0504548fe1b7c76a5b" => :mojave
sha256 "7700eba9ea0485079f542114f81109f6951908aba573b3aafa020574614bf700" => :high_sierra
sha256 "7c79e7ec3d377cf3cc4aacae7c997859d6d11d8e081d609d3423b4cffcb48e22" => :sierra
end
def install
ENV.deparallelize
args = %W[
PLATFORM=macosx
PREFIX=#{prefix}
C_COMPILER=#{ENV.cc}
LIBRARIAN=ar
POSTINSTALL_PROGRAM=install_name_tool
ARCH=x86-64
]
system "make", *args
system "make", "install", *args
end
test do
assert_equal "25", shell_output("#{bin}/csi -e '(print (* 5 5))'").strip
end
end