homebrew-core/Formula/primesieve.rb
Ted Pennings 4cd0935be7 Convert all 'def test' formulae to 'test do'
Closes Homebrew/homebrew#26942.
Closes Homebrew/homebrew#26946.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-02-24 19:54:02 -08:00

17 lines
455 B
Ruby

require 'formula'
class Primesieve < Formula
homepage 'http://primesieve.org/'
url 'http://dl.bintray.com/kimwalisch/primesieve/primesieve-5.0.tar.gz'
sha1 '2ffdf45dfd243f456cf6f07f9660fc92eebf9603'
def install
system "./configure", "--prefix=#{prefix}", "CXX=#{ENV.cxx}",
"CXXFLAGS=#{ENV.cflags}"
system 'make install'
end
test do
system "#{bin}/primesieve", '2', '1000', '--count=1', '-p2'
end
end