require 'formula' class Gccxml :build def install mkdir 'gccxml-build' Dir.chdir 'gccxml-build' do system "cmake .. #{std_cmake_parameters}" system "make" system "make install" end end end