homebrew-core/Formula/libcppa.rb
Misty De Meo b66f5ad161 Formula: provide compiler failure collections
`needs` allows formulae to specify dependencies on cross-compiler
dependencies, allowing multiple failures to be specified in a single
statement. For instance, `needs :cxx11` adds seven compiler failures.

Closes Homebrew/homebrew#22912.
2014-04-12 10:36:00 -07:00

30 lines
685 B
Ruby

require 'formula'
class Libcppa < Formula
homepage 'http://libcppa.blogspot.it'
url 'https://github.com/Neverlord/libcppa/archive/V0.8.1.tar.gz'
sha1 'd4f096aae2bb72e254ad6df45edf3fb62370acaa'
depends_on 'cmake' => :build
needs :cxx11
option 'with-opencl', 'Build with OpenCL actors'
option 'with-examples', 'Build examples'
def install
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