homebrew-core/Formula/primesieve.rb
2014-01-19 12:17:53 -06:00

17 lines
456 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
def test
system "#{bin}/primesieve", '2', '1000', '--count=1', '-p2'
end
end