diff options
| author | Hiroaki Nakamura | 2012-01-01 13:19:57 +0900 |
|---|---|---|
| committer | Adam Vandenberg | 2012-01-02 14:57:02 -0800 |
| commit | d3893cbb37f6b24f5ee520d77705884e890c5816 (patch) | |
| tree | e073b4f38b232319600a51b3e23dbed1e054c178 /Library/Formula | |
| parent | 4fb16996f9f800a32c7b43c3f965b1d7f5475042 (diff) | |
| download | homebrew-d3893cbb37f6b24f5ee520d77705884e890c5816.tar.bz2 | |
Update yaws to 1.92.
Also add a 32-bit only option.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/yaws.rb | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/Library/Formula/yaws.rb b/Library/Formula/yaws.rb index 902b9b767..0e8829ff7 100644 --- a/Library/Formula/yaws.rb +++ b/Library/Formula/yaws.rb @@ -2,16 +2,26 @@ require 'formula' class Yaws < Formula homepage 'http://yaws.hyber.org' - url 'http://yaws.hyber.org/download/yaws-1.90.tar.gz' - md5 'c2aae5a4e01ad47d44955551c9a67333' + url 'http://yaws.hyber.org/download/yaws-1.92.tar.gz' + md5 'd0c05d2041df79089f7de5d8437ee34b' depends_on 'erlang' def options - [["--with-yapp", "Build and install yaws applications"]] + [ + ["--with-yapp", "Build and install yaws applications"], + ['--32-bit', "Build 32-bit only."] + ] end def install + if ARGV.build_32_bit? + %w{ CFLAGS LDFLAGS }.each do |compiler_flag| + ENV.remove compiler_flag, "-arch x86_64" + ENV.append compiler_flag, "-arch i386" + end + end + Dir.chdir 'yaws' do system "./configure", "--prefix=#{prefix}" system "make install" |
