aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/yaws.rb16
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"