aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/goaccess.rb
blob: 93033c22a537e7827e700a504c44dacc49f2a2d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
require 'formula'

class Goaccess < Formula
  homepage 'http://goaccess.prosoftcorp.com/'
  url 'http://downloads.sourceforge.net/project/goaccess/0.5/goaccess-0.5.tar.gz'
  sha1 '97c0c48e41ed0c8cf24cc87f1d39d7be687bc52b'

  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