homebrew-core/Formula/primesieve.rb
Brett Koonce 6f5fb8207c primesieve 4.2
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-03-25 21:16:59 -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.2-src.zip'
sha1 '6468d65a4ea15acdfb2a0785f437b39de45b717d'
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