homebrew-core/Formula/yaws.rb
Adam Vandenberg 7bd947eb0b Update formulae for version 0.7
* Use new "url" features
* Use keg_only DSL
* Use "skip_clean :all" DSL
* Whitespace and style cleanups
* Make bash invocations less silly
* Use new man2-man8 helpers
* Remove "FileUtils." since it is included in Formula
* Use real names for deps instead of aliases
* ENV.x11 now updates path, so remove that from individual brews
2010-08-07 18:08:53 -07:00

34 lines
731 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