aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/goaccess.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/goaccess.rb')
-rw-r--r--Library/Formula/goaccess.rb15
1 files changed, 12 insertions, 3 deletions
diff --git a/Library/Formula/goaccess.rb b/Library/Formula/goaccess.rb
index 379ce4ed4..4002012c3 100644
--- a/Library/Formula/goaccess.rb
+++ b/Library/Formula/goaccess.rb
@@ -6,12 +6,21 @@ class Goaccess < Formula
md5 '7d7707c294c949d612e451da2f003c37'
head 'git://goaccess.git.sourceforge.net/gitroot/goaccess/goaccess'
- depends_on 'geoip'
depends_on 'glib'
+ depends_on 'geoip' if ARGV.include? "--enable-geoip"
+
+ def options
+ [['--enable-geoip', "Enable IP location information using GeoIP"]]
+ end
def install
- system "./configure", "--enable-geoip",
- "--prefix=#{prefix}"
+ args = ["--prefix=#{prefix}",
+ "--disable-debug",
+ "--disable-dependency-tracking"]
+
+ args << "--enable-geoip" if ARGV.include? '--enable-geoip'
+
+ system "./configure", *args
system "make install"
end
end