This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Add guile18

Closes #78.
  • Loading branch information...
1 parent ec73b7b commit b0763fe34633deb66a2613ff7f35118e5d1c4c25 @jacknagel jacknagel committed Mar 21, 2013
Showing with 31 additions and 0 deletions.
  1. +31 −0 guile18.rb
View
@@ -0,0 +1,31 @@
+require 'formula'
+
+class Guile18 < Formula
+ homepage 'http://www.gnu.org/software/guile/'
+ url 'http://ftpmirror.gnu.org/guile/guile-1.8.8.tar.gz'
+ mirror 'http://ftp.gnu.org/gnu/guile/guile-1.8.8.tar.gz'
+ sha1 '548d6927aeda332b117f8fc5e4e82c39a05704f9'
+
+ depends_on 'pkg-config' => :build
+ depends_on :libtool
+ 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
+
+ def install
+ system "./configure", "--disable-dependency-tracking",
+ "--prefix=#{prefix}",
+ "--with-libreadline-prefix=#{Formula.factory('readline').opt_prefix}"
+ system "make install"
+
+ # A really messed up workaround required on OS X --mkhl
+ lib.cd { Dir["*.dylib"].each {|p| ln_sf p, File.basename(p, ".dylib")+".so" }}
+ end
+end

0 comments on commit b0763fe

Please sign in to comment.