homebrew-core/Formula/guile.rb

75 lines
1.9 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-2.0.11.tar.gz"
mirror "http://ftp.gnu.org/gnu/guile/guile-2.0.11.tar.gz"
sha1 "3cdd1c4956414bffadea13e5a1ca08949016a802"
revision 1
2014-05-23 17:06:11 +00:00
bottle do
2014-10-23 11:11:39 +00:00
revision 1
sha1 "67bd9b8050bded7916db3622d7abd896e1376eac" => :yosemite
sha1 "818e7ac90634b60bcbf44509a512b542b0a87bd8" => :mavericks
sha1 "55790b96275804b2e5952b60e1071a318f3b1518" => :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}",
2014-02-25 14:37:27 +00:00
"--with-libreadline-prefix=#{Formula["readline"].prefix}",
"--with-libgmp-prefix=#{Formula["gmp"].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