New formula: primesieve 3.5
Closes Homebrew/homebrew#10137. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
9b0dd34241
commit
08260ef5ea
1 changed files with 19 additions and 0 deletions
19
Formula/primesieve.rb
Normal file
19
Formula/primesieve.rb
Normal 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
|
Loading…
Reference in a new issue