require 'formula' class Strigi :build depends_on 'clucene' depends_on 'exiv2' => :optional def install ENV['CLUCENE_HOME'] = HOMEBREW_PREFIX ENV['EXPAT_HOME'] = '/usr/' system "cmake . #{std_cmake_parameters} -DENABLE_EXPAT:BOOL=ON -DENABLE_DBUS:BOOL=OFF" system "make install" end end