require "formula" class Libcutl < Formula homepage "http://www.codesynthesis.com/projects/libcutl/" url "http://www.codesynthesis.com/download/libcutl/1.8/libcutl-1.8.1.tar.gz" sha1 "5411892a2959b6164321ebfb6e8e52255786b143" depends_on "gcc" => :build def install system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}" system "make", "install" # if this fails, try separate make/make install steps end fails_with :clang do cause <<-EOS.undent Oh! It seems that you only have clang available, or GCC wasn't found! Make sure you GCC is installed and recognized by homebrew. EOS end test do system "false" end end