Skip to content

Commit

Permalink
Add yaws formula
Browse files Browse the repository at this point in the history
  • Loading branch information
aflatter authored and John Doe committed Mar 1, 2010
1 parent 614e5c0 commit 7d7e521
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions Library/Formula/yaws.rb
@@ -0,0 +1,30 @@
require 'formula'

class Yaws < Formula
homepage "http://yaws.hyber.org"

version "1.87"
md5 "ee04c67b1a3869eaef380153d24504c0"

url "http://yaws.hyber.org/download/yaws-#{version}.tar.gz"

depends_on 'erlang'

def options
[["--with-yapp", "Build and install yaws applications"]]
end

def install
system "cd yaws && ./configure --prefix=#{prefix}"
system "cd yaws && make install"

if ARGV.include?('--with-yapp')
system "cd yaws/applications/yapp && make && make install"
end
end

def caveats; <<-EOS
Usually you want to build yapp (yaws applications) as well. To do so, use the --with-yapp command line flag.
EOS
end
end

0 comments on commit 7d7e521

Please sign in to comment.