aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authoritsb2013-12-24 23:07:43 -0800
committerMike McQuaid2013-12-27 10:04:49 +0000
commitd6a50dda1747930e71c4c0c1cccf3f9fca670005 (patch)
tree5f7568549fab2d4460aa17ea2985071351d51109 /Library/Formula
parent0728adf024300610172079426f4b47cc95f4274d (diff)
downloadhomebrew-d6a50dda1747930e71c4c0c1cccf3f9fca670005.tar.bz2
rdfind 1.3.4 (new formula)
Redundant data find. Closes #25453. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/rdfind.rb25
1 files changed, 25 insertions, 0 deletions
diff --git a/Library/Formula/rdfind.rb b/Library/Formula/rdfind.rb
new file mode 100644
index 000000000..6b6f64d93
--- /dev/null
+++ b/Library/Formula/rdfind.rb
@@ -0,0 +1,25 @@
+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