From 546aeab45bef8565b3ef7cdf05745969af47bf45 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sun, 12 Feb 2012 21:12:02 -0800 Subject: ann: fix tests --- Library/Formula/ann.rb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/ann.rb b/Library/Formula/ann.rb index eb3c7a8f0..6048359d5 100644 --- a/Library/Formula/ann.rb +++ b/Library/Formula/ann.rb @@ -1,17 +1,18 @@ 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/' + 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++" - bin.install Dir["bin/*"] - prefix.install ["lib","sample","doc","include"] + prefix.install "bin", "lib", "sample", "doc", "include" end def test - system "#{bin}/ann_sample", "-df", "#{prefix}/sample/data.pts", "-qf", "query.pts" + Dir.chdir "#{prefix}/sample" do + system "#{bin}/ann_sample", "-df", "data.pts", "-qf", "query.pts" + end end end -- cgit v1.2.3