homebrew-core/Formula/aamath.rb

25 lines
551 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Aamath < Formula
homepage 'http://fuse.superglue.se/aamath/'
2013-01-26 21:55:15 +00:00
url 'http://fuse.superglue.se/aamath/aamath-0.3.tar.gz'
sha1 'dc68abaf2131c73ddb1a520c95d65596e30f1b0a'
def install
ENV.j1
system "make"
bin.install "aamath"
man1.install "aamath.1"
prefix.install "testcases"
end
2013-03-26 17:38:16 +00:00
test do
IO.popen("#{bin}/aamath", "w+") do |pipe|
pipe.write((prefix/"testcases").read)
pipe.close_write
2013-06-09 02:26:16 +00:00
assert_match /#{Regexp.escape("f(x + h) = f(x) + h f'(x)")}/, pipe.read
2013-03-26 17:38:16 +00:00
end
end
end