homebrew-core/Formula/guile.rb
Adam Vandenberg 7bd947eb0b Update formulae for version 0.7
* Use new "url" features
* Use keg_only DSL
* Use "skip_clean :all" DSL
* Whitespace and style cleanups
* Make bash invocations less silly
* Use new man2-man8 helpers
* Remove "FileUtils." since it is included in Formula
* Use real names for deps instead of aliases
* ENV.x11 now updates path, so remove that from individual brews
2010-08-07 18:08:53 -07:00

32 lines
929 B
Ruby

require 'formula'
class Guile <Formula
url 'ftp://ftp.gnu.org/gnu/guile/guile-1.8.7.tar.gz'
head 'ftp://alpha.gnu.org/gnu/guile/guile-1.9.11.tar.gz'
homepage 'http://www.gnu.org/software/guile/'
if ARGV.build_head?
sha1 'abd1424a927302db31395db828d4d14fa68d13f9'
else
sha1 '24cd2f06439c76d41d982a7384fe8a0fe5313b54'
end
depends_on 'pkg-config'
depends_on 'libffi'
depends_on 'libunistring'
depends_on 'bdw-gc'
depends_on 'gmp'
# GNU Readline is required; libedit won't work.
depends_on 'readline'
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--with-libreadline-prefix=#{Formula.factory('readline').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