New formula: primesieve 3.5

Closes Homebrew/homebrew#10137.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Fernando Ortiz 2012-02-12 22:11:17 -06:00 committed by Jack Nagel
parent 9b0dd34241
commit 08260ef5ea

19
Formula/primesieve.rb Normal file
View file

@ -0,0 +1,19 @@
require 'formula'
class Primesieve < Formula
homepage 'http://code.google.com/p/primesieve/'
url 'http://primesieve.googlecode.com/files/primesieve-3.5-src.zip'
sha1 '044388377a976529a2fd51006d9f7b0ae02bd868'
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