Ann 1.1.2
Approximate Nearest Neighbor Searching Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
5c10e50edf
commit
c8f6bf216b
1 changed files with 17 additions and 0 deletions
17
Formula/ann.rb
Normal file
17
Formula/ann.rb
Normal 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
|
Loading…
Reference in a new issue