aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/geoipupdate.rb17
1 files changed, 12 insertions, 5 deletions
diff --git a/Library/Formula/geoipupdate.rb b/Library/Formula/geoipupdate.rb
index 7bb08c264..7c9b1dfb3 100644
--- a/Library/Formula/geoipupdate.rb
+++ b/Library/Formula/geoipupdate.rb
@@ -7,14 +7,21 @@ class Geoipupdate < Formula
head do
url 'https://github.com/maxmind/geoipupdate.git'
-
- depends_on 'autoconf' => :build
- depends_on 'automake' => :build
- depends_on 'libtool' => :build
end
+ # Because the patch requires regenerating the configure script;
+ # move these back to the head spec on next release
+ depends_on 'autoconf' => :build
+ depends_on 'automake' => :build
+ depends_on 'libtool' => :build
+
option :universal
+ # Fixes use of getline on pre-Lion; will be in next release
+ def patches
+ "https://github.com/maxmind/geoipupdate/commit/bdf11969f4c7c6b173466092287a2fdbd485b248.patch"
+ end unless build.head?
+
def install
ENV.universal_binary if build.universal?
@@ -24,7 +31,7 @@ class Geoipupdate < Formula
inreplace 'conf/GeoIP.conf.default', 'YOUR_LICENSE_KEY_HERE', '000000000000'
inreplace 'conf/GeoIP.conf.default', /^ProductIds .*$/, 'ProductIds 506 533'
- system "./bootstrap" if build.head?
+ system "./bootstrap"
system "./configure", "--disable-dependency-tracking",
"--disable-silent-rules",