homebrew-core/Formula/libcppa.rb
BrewTestBot abfbf0473f libcppa: add 0.9.3 bottle.
Closes Homebrew/homebrew#29771.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-06-02 13:30:19 +01:00

39 lines
931 B
Ruby

require 'formula'
class Libcppa < Formula
homepage 'http://libcppa.blogspot.it'
url 'http://github.com/Neverlord/libcppa/archive/V0.9.3.tar.gz'
sha1 'b9fce68bc4e5688cc75cfc9add5ec1feb105ab7d'
bottle do
cellar :any
sha1 "4527da9b1c0e6a60c13cf7a35540fceaa2caa3b2" => :mavericks
sha1 "cee8d1916bcd7eebfc151a6712e1efd58d54c4c1" => :mountain_lion
sha1 "d30dbe35371a62ddd9f34ada0210a3770d05191d" => :lion
end
depends_on 'cmake' => :build
needs :cxx11
option 'with-opencl', 'Build with OpenCL actors'
option 'with-examples', 'Build examples'
def install
ENV.cxx11
args = %W[
--prefix=#{prefix}
--build-static
--disable-context-switching
]
args << '--with-opencl' if build.with? 'opencl'
args << '--no-examples' if build.without? 'examples'
system "./configure", *args
system "make"
system "make", "test"
system "make", "install"
end
end