2011-03-10 05:11:03 +00:00
|
|
|
class Fdupes < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Identify or delete duplicate files"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "https://github.com/adrianlopezroche/fdupes"
|
|
|
|
url "https://github.com/adrianlopezroche/fdupes/archive/fdupes-1.51.tar.gz"
|
|
|
|
sha256 "761e16d4ecfef7302c62fe7ef1e181cd34f5c6ce5377dcad96e3ed44fb364986"
|
2010-10-29 14:28:29 +00:00
|
|
|
|
2015-04-21 16:34:19 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha256 "b991062a505bdc31b1cee523b09465d5f83b0eaf78579029879d558a042f2112" => :yosemite
|
|
|
|
sha256 "6b4a3d6d54bae82b8f41975aad6b90c440ccb95901a909fee594bbbc7b0be1db" => :mavericks
|
|
|
|
sha256 "d8e9918fda3c8499aef07cc4a0d0f1b7b0a39932b6ff69f1e96583213bac3657" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2010-10-29 14:28:29 +00:00
|
|
|
def install
|
|
|
|
inreplace "Makefile", "gcc", "#{ENV.cc} #{ENV.cflags}"
|
2015-08-03 12:55:31 +00:00
|
|
|
system "make", "fdupes"
|
2010-10-29 14:28:29 +00:00
|
|
|
bin.install "fdupes"
|
|
|
|
man1.install "fdupes.1"
|
|
|
|
end
|
2014-02-04 20:58:38 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
touch "a"
|
|
|
|
touch "b"
|
|
|
|
|
2014-05-04 19:12:41 +00:00
|
|
|
dupes = shell_output("#{bin}/fdupes .").strip.split("\n").sort
|
2014-02-04 20:58:38 +00:00
|
|
|
assert_equal ["./a", "./b"], dupes
|
|
|
|
end
|
2010-10-29 14:28:29 +00:00
|
|
|
end
|