flow-tools 0.68.5.1

Closes Homebrew/homebrew#19848.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
master
Michael J. Schultz 2013-05-15 15:53:17 -05:00 committed by Adam Vandenberg
parent 19bed406a7
commit edf1cdf232
1 changed files with 23 additions and 0 deletions

23
Formula/flow-tools.rb Normal file
View File

@ -0,0 +1,23 @@
require 'formula'
class FlowTools < Formula
homepage 'https://code.google.com/p/flow-tools/'
url 'https://flow-tools.googlecode.com/files/flow-tools-0.68.5.1.tar.bz2'
sha1 '4a843aada631650e3777a9b1eeb4ec46562cf0d0'
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make", "install"
end
test do
# Generate test flow data with 1000 flows
system "#{bin}/flow-gen > test.flow"
# Test that the test flows work with some flow- programs
system "#{bin}/flow-cat < test.flow"
system "#{bin}/flow-header < test.flow"
system "#{bin}/flow-print < test.flow"
system "#{bin}/flow-stat < test.flow"
end
end