homebrew-core/Formula/primesieve.rb
Brett Koonce aff18da7f5 primesieve 4.3
Closes Homebrew/homebrew#21180.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-07-12 20:27:19 -07:00

19 lines
494 B
Ruby

require 'formula'
class Primesieve < Formula
homepage 'http://code.google.com/p/primesieve/'
url 'http://primesieve.googlecode.com/files/primesieve-4.3-src.zip'
sha1 'c256801286350a7511c91b5898b009f939093484'
def install
system "make", "bin", "lib",
"SHARED=yes",
"CXX=#{ENV.cxx}",
"CXXFLAGS=#{ENV.cxxflags}"
system "make", "PREFIX=#{prefix}", "install"
end
def test
system "#{bin}/primesieve", "-v"
end
end