homebrew-core/Formula/diff-so-fancy.rb

24 lines
694 B
Ruby
Raw Normal View History

class DiffSoFancy < Formula
desc "Good-lookin' diffs with diff-highlight and more"
homepage "https://github.com/so-fancy/diff-so-fancy"
2016-04-17 15:32:37 +00:00
url "https://github.com/so-fancy/diff-so-fancy/archive/v0.8.0.tar.gz"
sha256 "115bbc1022dc171ae5a1cf322084e9283f5f6c68823c8508bc9dc494653c1e26"
2016-02-16 00:02:17 +00:00
bottle :unneeded
def install
2016-04-07 13:56:20 +00:00
# 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
2016-04-07 13:56:20 +00:00
ENV["TERM"] = "xterm"
system bin/"diff-so-fancy"
end
end