homebrew-core/Formula/rdfind.rb
itsb 632da5906c rdfind 1.3.4 (new formula)
Redundant data find.

Closes Homebrew/homebrew#25453.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-12-27 10:04:49 +00:00

25 lines
654 B
Ruby

require 'formula'
class Rdfind < Formula
homepage 'http://rdfind.pauldreik.se'
url 'http://rdfind.pauldreik.se/rdfind-1.3.4.tar.gz'
sha1 'c01bd2910cdec885b6c24164a389457e4f01ef61'
depends_on 'nettle'
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make", "install"
end
test do
mkdir 'folder'
touch 'folder/file1'
touch 'folder/file2'
system "#{bin}/rdfind -deleteduplicates true -ignoreempty false folder"
File.exist?('folder/file1')==true
File.exist?('folder/file2')==false
end
end