aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAlexander Flatter2010-03-01 14:09:52 +0100
committerAdam Vandenberg2010-04-30 13:07:07 -0700
commit667dea077dad166526f93f16950a2dce668b0db0 (patch)
tree3cd95e4e8272a54b7a0e5877247f0b8e15881955 /Library
parent3420795ec5101ef701c6440e5f0db596937f51d2 (diff)
downloadhomebrew-667dea077dad166526f93f16950a2dce668b0db0.tar.bz2
Add yaws formula
Signed-off-by: Adam Vandenberg <flangy@gmail.com> * Update to 1.88
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/yaws.rb35
1 files changed, 35 insertions, 0 deletions
diff --git a/Library/Formula/yaws.rb b/Library/Formula/yaws.rb
new file mode 100644
index 000000000..3b801f21a
--- /dev/null
+++ b/Library/Formula/yaws.rb
@@ -0,0 +1,35 @@
+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