require 'formula' class Soprano :build depends_on 'qt' depends_on 'clucene' => :optional depends_on 'raptor' => :optional depends_on 'redland' => :optional def install ENV['CLUCENE_HOME'] = HOMEBREW_PREFIX system "cmake . #{std_cmake_parameters}" system "make install" end end