homebrew-core/Formula/goaccess.rb
Denis Denisov bc9940889b GoAccess 0.6.1
Closes Homebrew/homebrew#23165.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-10-09 22:41:04 -07:00

28 lines
730 B
Ruby

require 'formula'
class Goaccess < Formula
homepage 'http://goaccess.prosoftcorp.com/'
url 'http://downloads.sourceforge.net/project/goaccess/0.6.1/goaccess-0.6.1.tar.gz'
sha1 '9604087ca730c288b461a260ab50bf7dd38ca281'
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