diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/geoipupdate.rb | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/Library/Formula/geoipupdate.rb b/Library/Formula/geoipupdate.rb index 620121e75..f6ee40e24 100644 --- a/Library/Formula/geoipupdate.rb +++ b/Library/Formula/geoipupdate.rb @@ -2,13 +2,20 @@ require 'formula' class Geoipupdate < Formula homepage 'https://github.com/maxmind/geoipupdate' - url 'https://github.com/maxmind/geoipupdate/releases/download/v2.0.0/geoipupdate-2.0.0.tar.gz' - sha1 'd3c90ad9c9ad5974e8a5a30c504e7827978ddea7' - head do - url 'https://github.com/maxmind/geoipupdate.git' + stable do + url "https://github.com/maxmind/geoipupdate/releases/download/v2.0.0/geoipupdate-2.0.0.tar.gz" + sha1 "d3c90ad9c9ad5974e8a5a30c504e7827978ddea7" + + # Fixes use of getline on pre-Lion; will be in next release + patch do + url "https://github.com/maxmind/geoipupdate/commit/bdf11969f4c7c6b173466092287a2fdbd485b248.patch" + sha1 "845aed21e187cd1fe1a60b029ff8ac13284c7cea" + end end + head 'https://github.com/maxmind/geoipupdate.git' + # Because the patch requires regenerating the configure script; # move these back to the head spec on next release depends_on 'autoconf' => :build @@ -17,13 +24,6 @@ class Geoipupdate < Formula option :universal - # Fixes use of getline on pre-Lion; will be in next release - def patches - unless build.head? - "https://github.com/maxmind/geoipupdate/commit/bdf11969f4c7c6b173466092287a2fdbd485b248.patch" - end - end - def install ENV.universal_binary if build.universal? |
