homebrew-core/Formula/goaccess.rb
Jack Nagel ba0b187dcb goaccess: add build-time dep on pkg-config
Fixes Homebrew/homebrew#8399.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-01 00:24:09 -05:00

27 lines
749 B
Ruby

require 'formula'
class Goaccess < Formula
url 'http://downloads.sourceforge.net/project/goaccess/0.4.2/goaccess-0.4.2.tar.gz'
homepage 'http://goaccess.prosoftcorp.com/'
md5 '7d7707c294c949d612e451da2f003c37'
head 'git://goaccess.git.sourceforge.net/gitroot/goaccess/goaccess'
depends_on 'pkg-config' => :build
depends_on 'glib'
depends_on 'geoip' if ARGV.include? "--enable-geoip"
def options
[['--enable-geoip', "Enable IP location information using GeoIP"]]
end
def install
args = ["--prefix=#{prefix}",
"--disable-debug",
"--disable-dependency-tracking"]
args << "--enable-geoip" if ARGV.include? '--enable-geoip'
system "./configure", *args
system "make install"
end
end