2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-10-03 02:09:26 +00:00
|
|
|
|
|
|
|
class Geoip <Formula
|
|
|
|
url 'http://geolite.maxmind.com/download/geoip/api/c/GeoIP-1.4.6.tar.gz'
|
|
|
|
homepage 'http://www.maxmind.com/app/c'
|
|
|
|
md5 'cb14b1beeb40631a12676b11ca0c309a'
|
|
|
|
|
2010-10-17 15:52:14 +00:00
|
|
|
def options
|
|
|
|
[["--universal", "Build a universal binary."]]
|
|
|
|
end
|
|
|
|
|
2009-10-03 02:09:26 +00:00
|
|
|
def install
|
2010-10-17 15:52:14 +00:00
|
|
|
ENV.universal_binary if ARGV.include? "--universal"
|
2009-10-03 02:09:26 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|