homebrew-core/Formula/guile.rb

45 lines
1.2 KiB
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Guile < Formula
homepage 'http://www.gnu.org/software/guile/'
url 'http://ftpmirror.gnu.org/guile/guile-1.8.8.tar.gz'
mirror 'http://ftp.gnu.org/gnu/guile/guile-1.8.8.tar.gz'
sha1 '548d6927aeda332b117f8fc5e4e82c39a05704f9'
devel do
url 'http://ftpmirror.gnu.org/guile/guile-2.0.7.tar.gz'
mirror 'http://ftp.gnu.org/gnu/guile/guile-2.0.7.tar.gz'
sha1 '4425cc1a60ffe5637972a328880f98746c2a0f5b'
end
depends_on 'pkg-config' => :build
depends_on :libtool
2010-04-30 16:03:46 +00:00
depends_on 'libffi'
depends_on 'libunistring'
depends_on 'bdw-gc'
depends_on 'gmp'
2010-04-30 16:03:46 +00:00
# GNU Readline is required; libedit won't work.
depends_on 'readline'
fails_with :llvm do
build 2336
cause "Segfaults during compilation"
end
2011-03-22 16:55:25 +00:00
fails_with :clang do
build 211
cause "Segfaults during compilation"
end if build.devel?
2011-03-21 21:24:22 +00:00
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