homebrew-core/Formula/ann.rb

19 lines
445 B
Ruby
Raw Normal View History

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'
md5 '31267ffbe4e6d04768b3ec21763e9343'
def install
system "make", "macosx-g++"
2012-02-13 05:12:02 +00:00
prefix.install "bin", "lib", "sample", "doc", "include"
end
def test
2012-02-13 05:12:02 +00:00
Dir.chdir "#{prefix}/sample" do
system "#{bin}/ann_sample", "-df", "data.pts", "-qf", "query.pts"
end
end
end