aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-03-19 12:07:50 -0500
committerJack Nagel2014-03-19 12:07:50 -0500
commit377797bda6cd283d9d450bb19ca2197c03b36811 (patch)
tree786514d21c8b4724fb025aff5632a3b7f80e2d8f /Library
parent454cd280c4f2ba2177fd6bc53e809d53640a733d (diff)
downloadhomebrew-377797bda6cd283d9d450bb19ca2197c03b36811.tar.bz2
geoip: use patch DSL
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/geoip.rb18
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?