2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-19 18:02:03 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Guile < Formula
|
2010-02-16 14:18:32 +00:00
|
|
|
homepage 'http://www.gnu.org/software/guile/'
|
2011-04-10 21:54:55 +00:00
|
|
|
url 'ftp://ftp.gnu.org/gnu/guile/guile-1.8.7.tar.gz'
|
2011-07-04 13:04:25 +00:00
|
|
|
head 'ftp://ftp.gnu.org/pub/gnu/guile/guile-2.0.2.tar.gz'
|
2010-02-16 14:18:32 +00:00
|
|
|
|
2010-07-09 19:40:41 +00:00
|
|
|
if ARGV.build_head?
|
2011-07-04 13:04:25 +00:00
|
|
|
sha1 '1943fd22417ce1e51babbdcd7681e66a794a8da3'
|
2010-02-16 14:18:32 +00:00
|
|
|
else
|
|
|
|
sha1 '24cd2f06439c76d41d982a7384fe8a0fe5313b54'
|
|
|
|
end
|
2009-09-19 18:02:03 +00:00
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2010-04-30 16:03:46 +00:00
|
|
|
depends_on 'libffi'
|
2009-09-19 18:02:03 +00:00
|
|
|
depends_on 'libunistring'
|
|
|
|
depends_on 'bdw-gc'
|
|
|
|
depends_on 'gmp'
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2010-04-30 16:03:46 +00:00
|
|
|
# GNU Readline is required; libedit won't work.
|
2009-09-19 18:02:03 +00:00
|
|
|
depends_on 'readline'
|
|
|
|
|
2011-03-21 21:24:22 +00:00
|
|
|
fails_with_llvm "Segfaults during compilation."
|
2011-03-22 16:55:25 +00:00
|
|
|
|
2011-03-21 21:24:22 +00:00
|
|
|
def install
|
2010-02-16 14:18:32 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--with-libreadline-prefix=#{Formula.factory('readline').prefix}"
|
2009-09-19 18:02:03 +00:00
|
|
|
system "make install"
|
2010-02-16 14:18:32 +00:00
|
|
|
|
|
|
|
# A really messed up workaround required on OS X --mkhl
|
2010-07-09 19:40:41 +00:00
|
|
|
lib.cd { Dir["*.dylib"].each {|p| ln_sf p, File.basename(p, ".dylib")+".so" }}
|
2009-09-19 18:02:03 +00:00
|
|
|
end
|
2010-02-16 14:18:32 +00:00
|
|
|
end
|