forked from Homebrew/legacy-homebrew
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |