61e5008857
This package provides a command line tool named 'eyeD3'. However the formula installs it under the name 'eyeD3_script'. This breaks scripts/workflows that expect to find the tool by its official name. Also correct a typo. Remark: 'bin.install_symlink' needs a hash argument where source and target names differ. But the formula separated source & target names with a ','. Looks like an inadvertent slip to me. Closes Homebrew/homebrew#26487. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
22 lines
681 B
Ruby
22 lines
681 B
Ruby
require 'formula'
|
|
|
|
class EyeD3 < Formula
|
|
homepage 'http://eyed3.nicfit.net/'
|
|
url 'http://eyed3.nicfit.net/releases/eyeD3-0.6.18.tar.gz'
|
|
sha1 'd8887f7b75306bd293e0b0d46a977e73225ae7b5'
|
|
|
|
def install
|
|
man1.install "doc/eyeD3.1.in" => "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", "\"Packaged by Homebrew\""
|
|
end
|
|
mv "src/eyeD3/__init__.py.in", "src/eyeD3/__init__.py"
|
|
|
|
libexec.install "src/eyeD3"
|
|
libexec.install "bin/eyeD3" => "eyeD3_script"
|
|
bin.install_symlink libexec+"eyeD3_script" => "eyeD3"
|
|
end
|
|
end
|