aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2014-03-16 19:35:07 -0500
committerJack Nagel2014-03-16 19:57:48 -0500
commitcea7445ba4a4f9395c2bd4602e965b96100c1bb2 (patch)
tree938efaea6b8277299286bd052163a71a4016dd3f
parentfc40b605ae93a53a17dd7455d13109057236221e (diff)
downloadhomebrew-cea7445ba4a4f9395c2bd4602e965b96100c1bb2.tar.bz2
geoipupdate: use checksummed patches
-rw-r--r--Library/Formula/geoipupdate.rb22
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?