blob: 9843a11acfd10c20d6abe2d052ac7946c5488e0e (
plain)
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
|
require 'formula'
class Guile < Formula
url 'ftp://ftp.gnu.org/gnu/guile/guile-1.8.7.tar.gz'
head 'ftp://alpha.gnu.org/gnu/guile/guile-1.9.15.tar.gz'
homepage 'http://www.gnu.org/software/guile/'
if ARGV.build_head?
sha1 '0b1cdd5f0506dcda3ed85324b2a0ff510920ee76'
else
sha1 '24cd2f06439c76d41d982a7384fe8a0fe5313b54'
end
depends_on 'pkg-config' => :build
depends_on 'libffi'
depends_on 'libunistring'
depends_on 'bdw-gc'
depends_on 'gmp'
# GNU Readline is required; libedit won't work.
depends_on 'readline'
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--with-libreadline-prefix=#{Formula.factory('readline').prefix}"
system "make install"
# A really messed up workaround required on OS X --mkhl
lib.cd { Dir["*.dylib"].each {|p| ln_sf p, File.basename(p, ".dylib")+".so" }}
end
end
|