homebrew-core/Formula/primesieve.rb
Brett Koonce 71bb763073 primesieve 4.0
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-11-18 17:36:36 -08: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.0-src.zip'
sha1 'ca40b79c4a8d7811873f827e76b9ce2ae493f939'
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