Ann 1.1.2

Approximate Nearest Neighbor Searching

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
harajune 2011-07-10 21:08:01 +09:00 committed by Adam Vandenberg
parent 5c10e50edf
commit c8f6bf216b

17
Formula/ann.rb Normal file
View file

@ -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