2010-03-01 13:09:52 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Yaws < Formula
|
|
|
|
homepage 'http://yaws.hyber.org'
|
2011-07-20 17:04:14 +00:00
|
|
|
url 'http://yaws.hyber.org/download/yaws-1.90.tar.gz'
|
|
|
|
md5 'c2aae5a4e01ad47d44955551c9a67333'
|
2010-03-01 13:09:52 +00:00
|
|
|
|
|
|
|
depends_on 'erlang'
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2010-03-01 13:09:52 +00:00
|
|
|
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
|
2010-04-07 05:58:35 +00:00
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
Usually you want to build yapp (yaws applications) as well.
|
|
|
|
To do so, use:
|
|
|
|
brew install yaws --with-yapp
|
2010-03-01 13:09:52 +00:00
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|