diff options
| author | Jack Nagel | 2014-03-19 12:07:50 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-03-19 12:07:50 -0500 |
| commit | 377797bda6cd283d9d450bb19ca2197c03b36811 (patch) | |
| tree | 786514d21c8b4724fb025aff5632a3b7f80e2d8f /Library | |
| parent | 454cd280c4f2ba2177fd6bc53e809d53640a733d (diff) | |
| download | homebrew-377797bda6cd283d9d450bb19ca2197c03b36811.tar.bz2 | |
geoip: use patch DSL
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/geoip.rb | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/Library/Formula/geoip.rb b/Library/Formula/geoip.rb index 45d0047cf..77ab30bb6 100644 --- a/Library/Formula/geoip.rb +++ b/Library/Formula/geoip.rb @@ -2,8 +2,16 @@ require 'formula' class Geoip < Formula homepage 'https://github.com/maxmind/geoip-api-c' - url 'https://github.com/maxmind/geoip-api-c/releases/download/v1.6.0/GeoIP-1.6.0.tar.gz' - sha1 '41ed21fb2d40e54648cae2a1f73e8a5210676def' + + stable do + url "https://github.com/maxmind/geoip-api-c/releases/download/v1.6.0/GeoIP-1.6.0.tar.gz" + sha1 "41ed21fb2d40e54648cae2a1f73e8a5210676def" + + # Download test data so `make check` works. Fixed in HEAD. + # See https://github.com/maxmind/geoip-api-c/commit/722707cc3a0adc06aec3e98bc36e7262f67ec0da + patch :DATA + end + head 'https://github.com/maxmind/geoip-api-c.git' bottle do @@ -20,12 +28,6 @@ class Geoip < Formula option :universal - def patches - # Download test data so `make check` works. Fixed in HEAD. - # See https://github.com/maxmind/geoip-api-c/commit/722707cc3a0adc06aec3e98bc36e7262f67ec0da - DATA unless build.head? - end - def install ENV.universal_binary if build.universal? |
