2011-03-10 05:11:03 +00:00
|
|
|
class Guile < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
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
|
2009-09-19 18:02:03 +00:00
|
|
|
|
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
|
2014-12-08 02:26:09 +00:00
|
|
|
url "http://git.sv.gnu.org/r/guile.git"
|
2013-04-07 06:29:12 +00:00
|
|
|
|
2014-12-08 02:26:09 +00:00
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "gettext" => :build
|
2013-04-07 06:29:12 +00:00
|
|
|
end
|
|
|
|
|
2014-12-08 02:26:09 +00:00
|
|
|
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"
|
2009-09-19 18:02:03 +00:00
|
|
|
|
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
|
|
|
|
2013-02-03 22:35:37 +00:00
|
|
|
fails_with :clang do
|
|
|
|
build 211
|
|
|
|
cause "Segfaults during compilation"
|
2013-10-08 20:41:05 +00:00
|
|
|
end
|
2013-02-03 22:35:37 +00:00
|
|
|
|
2011-03-21 21:24:22 +00:00
|
|
|
def install
|
2014-12-08 02:26:09 +00:00
|
|
|
if build.head?
|
|
|
|
inreplace "autogen.sh", "libtoolize", "glibtoolize"
|
|
|
|
system "./autogen.sh"
|
|
|
|
end
|
2013-04-07 06:29:12 +00:00
|
|
|
|
2010-02-16 14:18:32 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
2015-05-05 13:39:53 +00:00
|
|
|
"--with-libreadline-prefix=#{Formula["readline"].opt_prefix}",
|
|
|
|
"--with-libgmp-prefix=#{Formula["gmp"].opt_prefix}"
|
2015-08-03 12:55:31 +00:00
|
|
|
system "make", "install"
|
2010-02-16 14:18:32 +00:00
|
|
|
|
|
|
|
# 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"]
|
2009-09-19 18:02:03 +00:00
|
|
|
end
|
2014-01-19 22:04:02 +00:00
|
|
|
|
|
|
|
test do
|
2014-12-08 02:26:09 +00:00
|
|
|
hello = testpath/"hello.scm"
|
2014-01-19 22:04:02 +00:00
|
|
|
hello.write <<-EOS.undent
|
|
|
|
(display "Hello World")
|
|
|
|
(newline)
|
|
|
|
EOS
|
|
|
|
|
2014-12-08 02:26:09 +00:00
|
|
|
ENV["GUILE_AUTO_COMPILE"] = "0"
|
2014-01-19 22:04:02 +00:00
|
|
|
|
2014-12-08 02:26:09 +00:00
|
|
|
system bin/"guile", hello
|
2014-01-19 22:04:02 +00:00
|
|
|
end
|
2010-02-16 14:18:32 +00:00
|
|
|
end
|