homebrew-core/Formula/trafficserver.rb
2013-01-24 14:31:03 -06:00

34 lines
925 B
Ruby

require 'formula'
class Trafficserver < Formula
homepage 'http://trafficserver.apache.org/'
url 'http://www.apache.org/dyn/closer.cgi?path=trafficserver/trafficserver-3.2.0.tar.bz2'
sha1 '0d7461f0711387b1049e50522e61281be6f5cf38'
head 'http://svn.apache.org/repos/asf/trafficserver/traffic/trunk/'
depends_on 'pcre'
if build.head?
depends_on :automake
depends_on :libtool
end
def install
system "autoreconf -i" if build.head?
# Needed for correct ./configure detections.
ENV.enable_warnings
# Needed for OpenSSL headers on Lion.
ENV.append_to_cflags "-Wno-deprecated-declarations"
system "./configure", "--prefix=#{prefix}",
"--mandir=#{man}",
"--with-user=#{ENV['USER']}",
"--with-group=admin"
system "make install"
end
def test
system "#{bin}/trafficserver", "status"
end
end