From 24cc54c9e2bd1dffa0b4901ff792f996a8dfb3da Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Thu, 9 Aug 2012 21:35:08 -0700 Subject: Yaws 1.94 Make yapps the default, like MacPorts, since the caveats suggest you'll usually want them anyway. --- Library/Formula/yaws.rb | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/yaws.rb b/Library/Formula/yaws.rb index 09adeef06..8c3de1e52 100644 --- a/Library/Formula/yaws.rb +++ b/Library/Formula/yaws.rb @@ -2,20 +2,16 @@ require 'formula' class Yaws < Formula homepage 'http://yaws.hyber.org' - url 'http://yaws.hyber.org/download/yaws-1.92.tar.gz' - md5 'd0c05d2041df79089f7de5d8437ee34b' + url 'http://yaws.hyber.org/download/yaws-1.94.tar.gz' + sha1 '36295e40bb4db1812901c31d41152f942a63b5cc' - depends_on 'erlang' + option "without-yapp", "Omit yaws applications" + option '32-bit' - def options - [ - ["--with-yapp", "Build and install yaws applications"], - ['--32-bit', "Build 32-bit only."] - ] - end + depends_on 'erlang' def install - if ARGV.build_32_bit? + if build.build_32_bit? %w{ CFLAGS LDFLAGS }.each do |compiler_flag| ENV.remove compiler_flag, "-arch x86_64" ENV.append compiler_flag, "-arch i386" @@ -26,7 +22,7 @@ class Yaws < Formula system "./configure", "--prefix=#{prefix}" system "make install" - if ARGV.include? '--with-yapp' + unless build.include? 'without-yapp' cd 'applications/yapp' do system "make" system "make install" @@ -34,11 +30,4 @@ class Yaws < Formula end end end - - def caveats; <<-EOS.undent - Usually you want to build yapp (yaws applications) as well. - To do so, use: - brew install yaws --with-yapp - EOS - end end -- cgit v1.2.3