homebrew-core/Formula/goaccess.rb
Brett Koonce d73b0688af goaccess 0.7
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-12-18 21:48:55 -08:00

28 lines
707 B
Ruby

require 'formula'
class Goaccess < Formula
homepage 'http://goaccess.prosoftcorp.com/'
url 'https://downloads.sourceforge.net/project/goaccess/0.7/goaccess-0.7.tar.gz'
sha1 '1a887dc7182c91726137aaf6a4627efdd82d988e'
head 'https://github.com/allinurl/goaccess.git'
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