aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike McQuaid2014-08-25 09:58:40 +0100
committerMike McQuaid2014-08-25 09:58:40 +0100
commitfc229eb78c6cd92c5e2592c28567e2e1704d4cb1 (patch)
tree35fdbc0962f5030af7f1d1c3101d60554276261c
parentdfe408b7b5107bc6036e487b3431e3e0cfb59687 (diff)
downloadhomebrew-fc229eb78c6cd92c5e2592c28567e2e1704d4cb1.tar.bz2
net-snmp: note stable failure on 10.9.
Closes #31759.
-rw-r--r--Library/Formula/net-snmp.rb27
1 files changed, 25 insertions, 2 deletions
diff --git a/Library/Formula/net-snmp.rb b/Library/Formula/net-snmp.rb
index 7e7e13d82..4319ba13a 100644
--- a/Library/Formula/net-snmp.rb
+++ b/Library/Formula/net-snmp.rb
@@ -1,9 +1,32 @@
require "formula"
+class MaximumMacOSRequirement < Requirement
+ fatal true
+
+ def initialize(tags)
+ @version = MacOS::Version.from_symbol(tags.first)
+ super
+ end
+
+ satisfy { MacOS.version <= @version }
+
+ def message
+ <<-EOS.undent
+ OS X #{@version.pretty_name} or older is required for stable.
+ Use `brew install --devel` on newer versions.
+ EOS
+ end
+end
+
class NetSnmp < Formula
homepage "http://www.net-snmp.org/"
- url "https://downloads.sourceforge.net/project/net-snmp/net-snmp/5.7.2.1/net-snmp-5.7.2.1.tar.gz"
- sha1 "815d4e5520a1ed96a27def33e7534b4190599f0f"
+
+ stable do
+ url "https://downloads.sourceforge.net/project/net-snmp/net-snmp/5.7.2.1/net-snmp-5.7.2.1.tar.gz"
+ sha1 "815d4e5520a1ed96a27def33e7534b4190599f0f"
+
+ depends_on MaximumMacOSRequirement => :mountain_lion
+ end
bottle do
sha1 "6f1ff81bde5defe92b4a2062fba099c8310f9662" => :mountain_lion