Skip to content

Commit

Permalink
geoip 1.6.7
Browse files Browse the repository at this point in the history
Also used pre-bootstrapped tarball, simplifying build.

Closes Homebrew/legacy-homebrew#45516.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
  • Loading branch information
oschwald authored and DomT4 committed Oct 31, 2015
1 parent 76738d1 commit eb4c87d
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions Formula/geoip.rb
@@ -1,8 +1,8 @@
class Geoip < Formula
desc "GeoIP databases in a number of formats"
homepage "https://github.com/maxmind/geoip-api-c"
url "https://github.com/maxmind/geoip-api-c/archive/v1.6.6.tar.gz"
sha256 "db8ed5d07292c75cb3018738e6411037f15cc2a517f38ee04c1232cbe3d30b46"
url "https://github.com/maxmind/geoip-api-c/releases/download/v1.6.7/GeoIP-1.6.7.tar.gz"
sha256 "18f3713146b6196f85b57a92bcfdc9aea3345e2d836531a6ac4a630ffc7fa559"

head "https://github.com/maxmind/geoip-api-c.git"

Expand All @@ -14,23 +14,13 @@ class Geoip < Formula
sha256 "ad4d958f99890a460f9d8c32e7ed589d91651ce6537eed620832840c36dc699c" => :mountain_lion
end

depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "geoipupdate" => :optional

option :universal

def install
ENV.universal_binary if build.universal?

# Fixes a build error on Lion when configure does a variant of autoreconf
# that results in a botched Makefile, causing this error:
# No rule to make target '../libGeoIP/libGeoIP.la', needed by 'geoiplookup'
# This works on Snow Leopard also when it tries but fails to run autoreconf.
# Also fixes the tests by downloading required data file
system "./bootstrap"

system "./configure", "--disable-dependency-tracking",
"--disable-silent-rules",
"--datadir=#{var}",
Expand Down

0 comments on commit eb4c87d

Please sign in to comment.