class DiffSoFancy < Formula desc "Good-lookin' diffs with diff-highlight and more" homepage "https://github.com/so-fancy/diff-so-fancy" url "https://github.com/so-fancy/diff-so-fancy/archive/v0.8.0.tar.gz" sha256 "115bbc1022dc171ae5a1cf322084e9283f5f6c68823c8508bc9dc494653c1e26" bottle :unneeded def install # temporary fix until upstream uses a directory other # than lib for the perl script. inreplace "diff-so-fancy", "/lib/", "/libexec/" prefix.install "lib" => "libexec" prefix.install Dir["third_party", "diff-so-fancy"] bin.install_symlink prefix/"diff-so-fancy" end test do ENV["TERM"] = "xterm" system bin/"diff-so-fancy" end end