homebrew-core/Formula/guile.rb

73 lines
2 KiB
Ruby
Raw Normal View History

2011-03-10 05:11:03 +00:00
class Guile < Formula
desc "GUILE: GNU Ubiquitous Intelligent Language for Extensions"
2015-05-06 04:21:15 +00:00
homepage "https://www.gnu.org/software/guile/"
2015-07-14 10:14:11 +00:00
url "http://ftpmirror.gnu.org/guile/guile-2.0.11.tar.xz"
mirror "https://ftp.gnu.org/pub/gnu/guile/guile-2.0.11.tar.xz"
sha256 "aed0a4a6db4e310cbdfeb3613fa6f86fddc91ef624c1e3f8937a6304c69103e2"
revision 2
2014-05-23 17:06:11 +00:00
bottle do
2015-07-16 23:51:45 +00:00
sha256 "8e4d3e402e6eb6d95dcfc308b067beb3f7bed522e801c04f2291ffb29aab8908" => :yosemite
sha256 "c62b53570f7ac7061820c2c3009c649ff7fbf176bddd0acc36802303ede235e2" => :mavericks
sha256 "51f5f379e25fab5cf8fb7cede02841aa716c0e90356705be2abc6a18c6af5371" => :mountain_lion
2014-05-23 17:06:11 +00:00
end
2013-09-22 00:27:25 +00:00
head do
url "http://git.sv.gnu.org/r/guile.git"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "gettext" => :build
end
depends_on "pkg-config" => :build
depends_on "libtool" => :run
depends_on "libffi"
depends_on "libunistring"
depends_on "bdw-gc"
depends_on "gmp"
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
2011-03-21 21:24:22 +00:00
def install
if build.head?
inreplace "autogen.sh", "libtoolize", "glibtoolize"
system "./autogen.sh"
end
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--with-libreadline-prefix=#{Formula["readline"].opt_prefix}",
"--with-libgmp-prefix=#{Formula["gmp"].opt_prefix}"
system "make", "install"
# A really messed up workaround required on OS X --mkhl
2014-03-25 05:47:14 +00:00
Pathname.glob("#{lib}/*.dylib") do |dylib|
lib.install_symlink dylib.basename => "#{dylib.basename(".dylib")}.so"
end
2014-05-09 15:35:30 +00:00
(share/"gdb/auto-load").install Dir["#{lib}/*-gdb.scm"]
end
2014-01-19 22:04:02 +00:00
test do
hello = testpath/"hello.scm"
2014-01-19 22:04:02 +00:00
hello.write <<-EOS.undent
(display "Hello World")
(newline)
EOS
ENV["GUILE_AUTO_COMPILE"] = "0"
2014-01-19 22:04:02 +00:00
system bin/"guile", hello
2014-01-19 22:04:02 +00:00
end
end