require 'formula' class EyeD3 "eyeD3.1" # Manually process this file inreplace "src/eyeD3/__init__.py.in" do |s| s.change_make_var! "eyeD3Version", "\"#{version}\"" s.change_make_var! "eyeD3Maintainer", "\"Pacakaged by Homebrew\"" end mv "src/eyeD3/__init__.py.in", "src/eyeD3/__init__.py" libexec.install "src/eyeD3" libexec.install "bin/eyeD3" => "eyeD3_script" bin.mkpath ln_s libexec+"eyeD3_script", bin+"eyeD3" end end