homebrew-core/Formula/yaws.rb
Alexander Flatter f6d5fc8994 Add yaws formula
Signed-off-by: Adam Vandenberg <flangy@gmail.com>

* Update to 1.88
2010-04-30 13:07:07 -07:00

35 lines
743 B
Ruby

require 'formula'
class Yaws < Formula
homepage 'http://yaws.hyber.org'
url 'http://yaws.hyber.org/download/yaws-1.88.tar.gz'
md5 '950f8199592c6490556632e20e59a353'
depends_on 'erlang'
def options
[["--with-yapp", "Build and install yaws applications"]]
end
def install
Dir.chdir 'yaws' do
system "./configure", "--prefix=#{prefix}"
system "make install"
if ARGV.include? '--with-yapp'
Dir.chdir 'applications/yapp' do
system "make"
system "make install"
end
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