From 377797bda6cd283d9d450bb19ca2197c03b36811 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Wed, 19 Mar 2014 12:07:50 -0500 Subject: geoip: use patch DSL --- Library/Formula/geoip.rb | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'Library') 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? -- cgit v1.2.3