forked from keitheis/homebrew-dupes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
diffutils.rb
25 lines (22 loc) · 889 Bytes
/
diffutils.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
class Diffutils < Formula
desc "File comparison utilities"
homepage "https://www.gnu.org/s/diffutils/"
url "https://ftpmirror.gnu.org/diffutils/diffutils-3.3.tar.xz"
mirror "https://ftp.gnu.org/gnu/diffutils/diffutils-3.3.tar.xz"
sha256 "a25e89a8ab65fded1731e4186be1bb25cda967834b6df973599cdcd5abdfc19c"
bottle do
cellar :any_skip_relocation
sha256 "f2854483f252507a394909a5b195a0e7d5465e46ba3ff7716c8c48875f7c507d" => :el_capitan
sha256 "49cf30eb22d24060e958f8a28d7d4321346026d09a49deca9ad018e995b5a428" => :yosemite
sha256 "f7a85774a084e5b06f0c62d203dae04336973c79d4009245cd33025bf22aecbf" => :mavericks
end
def install
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make", "install"
end
test do
(testpath/"a").write "foo"
(testpath/"b").write "foo"
system "#{bin}/diff", "a", "b"
end
end