2011-07-10 12:08:01 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Ann < Formula
|
|
|
|
homepage 'http://www.cs.umd.edu/~mount/ANN/'
|
2012-02-13 05:12:02 +00:00
|
|
|
url 'http://www.cs.umd.edu/~mount/ANN/Files/1.1.2/ann_1.1.2.zip'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '622be90314a603ef9b2abadcf62379f73f28f46c'
|
2011-07-10 12:08:01 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "make", "macosx-g++"
|
2012-02-13 05:12:02 +00:00
|
|
|
prefix.install "bin", "lib", "sample", "doc", "include"
|
2011-07-10 12:08:01 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def test
|
2012-02-21 06:04:21 +00:00
|
|
|
cd "#{prefix}/sample" do
|
2012-02-13 05:12:02 +00:00
|
|
|
system "#{bin}/ann_sample", "-df", "data.pts", "-qf", "query.pts"
|
|
|
|
end
|
2011-07-10 12:08:01 +00:00
|
|
|
end
|
|
|
|
end
|