require 'formula' class Fiwalk 'fiwalk-plugins.jar' # Install Python script-based plugins. bin.install Dir['*.py'] # Fix paths in fiwalk's config file inreplace 'ficonfig.txt' do |s| s.gsub! 'dgi ../plugins/jpeg_extract', "dgi #{prefix}/jpeg_extract" s.gsub! '../plugins/plugins.jar', "#{libexec}/fiwalk-plugins.jar" end (share+name).install 'ficonfig.txt' end # Install Python bindings and extra scripts. (share+name+'python').install Dir['python/*.py'] end def caveats; <<-EOS.undent fiwalk's config file is located at: #{share+name}/ficonfig.txt You may need to add the directory containing the Python bindings to your PYTHONPATH: #{share+name}/python EOS end end