diff options
| author | David Christenson | 2014-07-24 17:18:47 -0600 |
|---|---|---|
| committer | Jack Nagel | 2014-07-24 20:58:52 -0500 |
| commit | db579985712286438bc6a15807a63f809d5c95fb (patch) | |
| tree | cc6173b13c20e8945da612f8bef881d85924e947 /Library/Formula | |
| parent | 8d17eebbb75301f642bb53db51985457584a408a (diff) | |
| download | homebrew-db579985712286438bc6a15807a63f809d5c95fb.tar.bz2 | |
geoipupdate 2.0.2
Update to latest stable release, remove stable block, add head block,
only bootstrap if building from head.
Closes #31103.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/geoipupdate.rb | 32 |
1 files changed, 14 insertions, 18 deletions
diff --git a/Library/Formula/geoipupdate.rb b/Library/Formula/geoipupdate.rb index 337c53924..5069f6476 100644 --- a/Library/Formula/geoipupdate.rb +++ b/Library/Formula/geoipupdate.rb @@ -1,21 +1,17 @@ -require 'formula' +require "formula" class Geoipupdate < Formula - homepage 'https://github.com/maxmind/geoipupdate' - - stable do - url "https://github.com/maxmind/geoipupdate/releases/download/v2.0.1/geoipupdate-2.0.1.tar.gz" - sha1 "11048de992e21bc99b22caa781ae27625e6a62dc" + homepage "https://github.com/maxmind/geoipupdate" + url "https://github.com/maxmind/geoipupdate/releases/download/v2.0.2/geoipupdate-2.0.2.tar.gz" + sha1 "14274698cacb5468475a008b8db61e162ff1ce73" + + head do + url "https://github.com/maxmind/geoipupdate.git" + depends_on "autoconf" => :build + depends_on "automake" => :build + depends_on "libtool" => :build 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 - depends_on 'automake' => :build - depends_on 'libtool' => :build - option :universal def install @@ -23,11 +19,11 @@ class Geoipupdate < Formula # Download free databases by default # See https://github.com/maxmind/geoip-api-c#150 - inreplace 'conf/GeoIP.conf.default', 'YOUR_USER_ID_HERE', '999999' - inreplace 'conf/GeoIP.conf.default', 'YOUR_LICENSE_KEY_HERE', '000000000000' - inreplace 'conf/GeoIP.conf.default', /^ProductIds .*$/, 'ProductIds 506 533' + inreplace "conf/GeoIP.conf.default", "YOUR_USER_ID_HERE", "999999" + inreplace "conf/GeoIP.conf.default", "YOUR_LICENSE_KEY_HERE", "000000000000" + inreplace "conf/GeoIP.conf.default", /^ProductIds .*$/, "ProductIds 506 533" - system "./bootstrap" + system "./bootstrap" if build.head? system "./configure", "--disable-dependency-tracking", "--disable-silent-rules", |
