diff --git a/Formula/opam.rb b/Formula/opam.rb index 5271b9256e..ef28d54a13 100644 --- a/Formula/opam.rb +++ b/Formula/opam.rb @@ -16,9 +16,16 @@ class Opam < Formula end depends_on "objective-caml" - depends_on "aspcud" => :recommended depends_on "camlp4" => :recommended + # aspcud has a fairly large buildtime dep tree, and uses gringo, + # which requires C++11 and is inconvenient to install pre-10.8 + if MacOS.version > 10.7 + depends_on "aspcud" => :recommended + else + depends_on "aspcud" => :optional + end + if build.with? "aspcud" needs :cxx11 end