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/'
|
2013-10-08 20:41:05 +00:00
|
|
|
url 'http://ftpmirror.gnu.org/guile/guile-2.0.9.tar.gz'
|
|
|
|
mirror 'http://ftp.gnu.org/gnu/guile/guile-2.0.9.tar.gz'
|
|
|
|
sha1 'fc5d770e8b1d364b2f222a8f8c96ccf740b2956f'
|
2009-09-19 18:02:03 +00:00
|
|
|
|
2013-09-22 00:27:25 +00:00
|
|
|
head do
|
2013-11-06 04:06:20 +00:00
|
|
|
url 'http://git.sv.gnu.org/r/guile.git'
|
2013-04-07 06:29:12 +00:00
|
|
|
|
2013-11-13 17:01:29 +00:00
|
|
|
depends_on 'autoconf' => :build
|
2013-04-07 06:29:12 +00:00
|
|
|
depends_on 'automake' => :build
|
|
|
|
depends_on 'gettext' => :build
|
|
|
|
end
|
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2012-08-26 17:24:29 +00:00
|
|
|
depends_on :libtool
|
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.
|
2012-11-11 03:12:26 +00:00
|
|
|
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
|
|
|
|
2013-04-22 05:12:41 +00:00
|
|
|
# Only for 2.0.9: Fix shebang shell in build-aux/install-sh.
|
|
|
|
# http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14201#19
|
2013-10-08 20:41:05 +00:00
|
|
|
def patches; DATA; end
|
2013-04-22 05:12:41 +00:00
|
|
|
|
2011-03-21 21:24:22 +00:00
|
|
|
def install
|
2013-04-07 06:29:12 +00:00
|
|
|
system './autogen.sh' if build.head?
|
|
|
|
|
2010-02-16 14:18:32 +00:00
|
|
|
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}"
|
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
|
2014-01-19 22:04:02 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
hello = testpath/'hello.scm'
|
|
|
|
hello.write <<-EOS.undent
|
|
|
|
(display "Hello World")
|
|
|
|
(newline)
|
|
|
|
EOS
|
|
|
|
|
|
|
|
ENV['GUILE_AUTO_COMPILE'] = '0'
|
|
|
|
|
|
|
|
system bin/'guile', hello
|
|
|
|
end
|
2010-02-16 14:18:32 +00:00
|
|
|
end
|
2013-04-22 05:12:41 +00:00
|
|
|
|
|
|
|
__END__
|
|
|
|
--- guile-2.0.9.orig/build-aux/install-sh 2013-01-28 12:35:24.000000000 -0800
|
|
|
|
+++ guile-2.0.9/build-aux/install-sh 2013-04-21 08:41:10.000000000 -0700
|
|
|
|
@@ -1,4 +1,4 @@
|
|
|
|
-#!/nix/store/ryk1ywzz31kp4biclxq3yq6hpjycalyy-bash-4.2/bin/sh
|
|
|
|
+#!/bin/sh
|
|
|
|
# install - install a program, script, or datafile
|
|
|
|
|
|
|
|
scriptversion=2011-11-20.07; # UTC
|