homebrew-core/Formula/primesieve.rb
Fernando Ortiz d0b0999dc5 primesieve 3.7
Closes Homebrew/homebrew#12868.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-16 11:02:38 -05: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-3.7-src.zip'
sha1 'd3e69fe620e8b2932992d67ea258523dd52f29a5'
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