forked from lotia/homebrew-versions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathguile18.rb
51 lines (42 loc) · 1.45 KB
/
guile18.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
class Guile18 < Formula
homepage "https://www.gnu.org/software/guile/"
url "https://ftpmirror.gnu.org/guile/guile-1.8.8.tar.gz"
mirror "https://ftp.gnu.org/gnu/guile/guile-1.8.8.tar.gz"
sha256 "c3471fed2e72e5b04ad133bbaaf16369e8360283679bcf19800bc1b381024050"
bottle do
sha256 "f6cc7fc10e96c8a0f3f9995d553928e59c4cbb009ddc474cd9e4f46987b4a309" => :sierra
sha256 "870763907c7b555f280cd68e816789490105318d5a5ff40f6ad4f463ce87cdb0" => :el_capitan
sha256 "82b956361a7353c23e1b7109f7cf1b5f4bf3c723e47ffca9283688d67d339508" => :yosemite
end
revision 1
depends_on "pkg-config" => :build
depends_on "libtool" => :run
depends_on "libffi"
depends_on "libunistring"
depends_on "bdw-gc"
depends_on "gmp"
depends_on "readline"
fails_with :llvm do
build 2336
cause "Segfaults during compilation"
end
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--with-libreadline-prefix=#{Formula["readline"].opt_prefix}"
system "make", "install"
# A really messed up workaround required on OS X --mkhl
Pathname.glob("#{lib}/*.dylib") do |dylib|
lib.install_symlink dylib.basename => "#{dylib.basename(".dylib")}.so"
end
end
test do
hello = testpath/"hello.scm"
hello.write <<-EOS.undent
(display "Hello World")
(newline)
EOS
ENV["GUILE_AUTO_COMPILE"] = "0"
system bin/"guile", hello
end
end