diff options
| author | Adam Vandenberg | 2012-02-12 21:12:02 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2012-02-12 21:41:06 -0800 |
| commit | 546aeab45bef8565b3ef7cdf05745969af47bf45 (patch) | |
| tree | 13e73a35660e450e8bc480a269f38789d3a9b601 /Library | |
| parent | 6a492761bfee6765eb3b514149d45caabd7c259a (diff) | |
| download | homebrew-546aeab45bef8565b3ef7cdf05745969af47bf45.tar.bz2 | |
ann: fix tests
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/ann.rb | 9 |
1 files changed, 5 insertions, 4 deletions
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 |
