From c8f6bf216b3f2b3b98c8dc49ddb642327f2c4656 Mon Sep 17 00:00:00 2001 From: harajune Date: Sun, 10 Jul 2011 21:08:01 +0900 Subject: [PATCH] Ann 1.1.2 Approximate Nearest Neighbor Searching Signed-off-by: Adam Vandenberg --- Formula/ann.rb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Formula/ann.rb diff --git a/Formula/ann.rb b/Formula/ann.rb new file mode 100644 index 0000000000..eb3c7a8f0a --- /dev/null +++ b/Formula/ann.rb @@ -0,0 +1,17 @@ +require 'formula' + +class Ann < Formula + url 'http://www.cs.umd.edu/~mount/ANN/Files/1.1.2/ann_1.1.2.zip' + homepage 'http://www.cs.umd.edu/~mount/ANN/' + md5 '31267ffbe4e6d04768b3ec21763e9343' + + def install + system "make", "macosx-g++" + bin.install Dir["bin/*"] + prefix.install ["lib","sample","doc","include"] + end + + def test + system "#{bin}/ann_sample", "-df", "#{prefix}/sample/data.pts", "-qf", "query.pts" + end +end