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-09-12 16:31:30 +00:00
|
|
|
url 'http://ftpmirror.gnu.org/guile/guile-1.8.7.tar.gz'
|
2011-11-30 18:56:07 +00:00
|
|
|
mirror 'http://ftp.gnu.org/gnu/guile/guile-1.8.7.tar.gz'
|
2012-02-03 03:31:06 +00:00
|
|
|
sha1 '24cd2f06439c76d41d982a7384fe8a0fe5313b54'
|
2010-02-16 14:18:32 +00:00
|
|
|
|
2012-01-23 04:32:15 +00:00
|
|
|
devel do
|
2012-04-20 07:11:43 +00:00
|
|
|
url 'http://ftpmirror.gnu.org/guile/guile-2.0.5.tar.gz'
|
|
|
|
mirror 'http://ftp.gnu.org/gnu/guile/guile-2.0.5.tar.gz'
|
|
|
|
sha1 '0cf94962ab637975bf2ad00afa15638dcc67408f'
|
2010-02-16 14:18:32 +00:00
|
|
|
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'
|
|
|
|
|
2012-03-18 20:33:24 +00:00
|
|
|
fails_with :llvm do
|
|
|
|
build 2336
|
|
|
|
cause "Segfaults during compilation"
|
|
|
|
end
|
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
|