2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-19 18:02:03 +00:00
|
|
|
|
|
|
|
class Guile <Formula
|
2010-02-16 14:18:32 +00:00
|
|
|
url 'ftp://ftp.gnu.org/gnu/guile/guile-1.8.7.tar.gz'
|
|
|
|
head 'ftp://alpha.gnu.org/gnu/guile/guile-1.9.11.tar.gz'
|
|
|
|
homepage 'http://www.gnu.org/software/guile/'
|
|
|
|
|
2010-07-09 19:40:41 +00:00
|
|
|
if ARGV.build_head?
|
2010-02-16 14:18:32 +00:00
|
|
|
sha1 'abd1424a927302db31395db828d4d14fa68d13f9'
|
|
|
|
else
|
|
|
|
sha1 '24cd2f06439c76d41d982a7384fe8a0fe5313b54'
|
|
|
|
end
|
2009-09-19 18:02:03 +00:00
|
|
|
|
2010-04-30 16:03:46 +00:00
|
|
|
depends_on 'pkg-config'
|
|
|
|
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'
|
|
|
|
|
|
|
|
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
|