homebrew-core/Formula/goaccess.rb
Brett Koonce 238a53e7e1 goaccess 0.5
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-10-17 19:39:37 -07:00

28 lines
723 B
Ruby

require 'formula'
class Goaccess < Formula
homepage 'http://goaccess.prosoftcorp.com/'
url 'http://sourceforge.net/projects/goaccess/files/0.5/goaccess-0.5.tar.gz'
sha1 'dd4933a8f0d1cfa8eef8dda700e2eba83ac51a26'
head 'git://goaccess.git.sourceforge.net/gitroot/goaccess/goaccess'
option 'enable-geoip', "Enable IP location information using GeoIP"
depends_on 'pkg-config' => :build
depends_on 'glib'
depends_on 'geoip' if build.include? "enable-geoip"
def install
args = %W[
--disable-debug
--disable-dependency-tracking
--prefix=#{prefix}
]
args << "--enable-geoip" if build.include? "enable-geoip"
system "./configure", *args
system "make install"
end
end