diff options
| author | Adam Vandenberg | 2012-09-03 13:32:34 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-09-03 13:45:34 -0700 |
| commit | 8234c3e1a3a5f2dbdcadb8054fb0163b26ae0615 (patch) | |
| tree | 8d49b5e7d4bc3ff2c040abe1e0c4a3ef664333d2 /Library/Formula | |
| parent | d54a99480c33db05bc3dd51ad0ee6b9d3bd7e388 (diff) | |
| download | homebrew-8234c3e1a3a5f2dbdcadb8054fb0163b26ae0615.tar.bz2 | |
goaccess: use new dsl
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/goaccess.rb | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/Library/Formula/goaccess.rb b/Library/Formula/goaccess.rb index 2cac5ae35..944173439 100644 --- a/Library/Formula/goaccess.rb +++ b/Library/Formula/goaccess.rb @@ -1,25 +1,26 @@ 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/' + url 'http://downloads.sourceforge.net/project/goaccess/0.4.2/goaccess-0.4.2.tar.gz' sha1 '6fdfef45eaa4bc08ac2169289bb50a0b287b47a1' + 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 ARGV.include? "--enable-geoip" - - def options - [['--enable-geoip', "Enable IP location information using GeoIP"]] - end + depends_on 'geoip' if build.include? "enable-geoip" def install - args = ["--prefix=#{prefix}", - "--disable-debug", - "--disable-dependency-tracking"] + args = %W[ + --disable-debug + --disable-dependency-tracking + --prefix=#{prefix} + ] - args << "--enable-geoip" if ARGV.include? '--enable-geoip' + args << "--enable-geoip" if build.include? "enable-geoip" system "./configure", *args system "make install" |
