homebrew-core/Formula/primesieve.rb
BrewTestBot 67eb941ed9 primesieve: add 5.3 bottle.
Closes Homebrew/homebrew#30802.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-07-10 15:47:53 -07:00

24 lines
687 B
Ruby

require "formula"
class Primesieve < Formula
homepage "http://primesieve.org/"
url "http://dl.bintray.com/kimwalisch/primesieve/primesieve-5.3.tar.gz"
sha1 "dac89a72cc3789035149a7d2cfa48ef7d722fd8a"
bottle do
cellar :any
sha1 "e9ba88bedc4053233fcf3bcea27b2f3123f342c0" => :mavericks
sha1 "c12381510dc4b21313848501cfa0099c9a29226e" => :mountain_lion
sha1 "955e313a69018bb0ebd4fa2b097f322aa9662cb0" => :lion
end
def install
system "./configure", "--prefix=#{prefix}", "CXX=#{ENV.cxx}",
"CXXFLAGS=#{ENV.cflags}"
system "make install"
end
test do
system "#{bin}/primesieve", "2", "1000", "--count=1", "-p2"
end
end