require 'formula' class Exodriver :git depends_on 'libusb' def install cd 'liblabjackusb' mv 'Makefile.MacOSX', 'Makefile' inreplace 'Makefile' do |s| s.change_make_var! 'DESTINATION', lib s.change_make_var! 'HEADER_DESTINATION', include end system "make" system "make install" end end