require 'formula' class Parrot = 10.6 system "perl", "Configure.pl", *confargs system "make" system "make install" l = %x{otool -L #{bin}/parrot}[/\S*blib\/lib\S*/] %w{parrot parrot_config parrot_debugger}.each do |fn| system "install_name_tool -change #{l} #{lib}/libparrot.dylib #{bin+fn}" end end end