2016-02-10 18:41:06 +00:00
|
|
|
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-10 18:41:06 +00:00
|
|
|
|
2016-02-16 00:02:17 +00:00
|
|
|
bottle :unneeded
|
|
|
|
|
2016-02-10 18:41:06 +00:00
|
|
|
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"]
|
2016-03-02 08:49:14 +00:00
|
|
|
bin.install_symlink prefix/"diff-so-fancy"
|
2016-02-10 18:41:06 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2016-04-07 13:56:20 +00:00
|
|
|
ENV["TERM"] = "xterm"
|
2016-02-10 18:41:06 +00:00
|
|
|
system bin/"diff-so-fancy"
|
|
|
|
end
|
|
|
|
end
|