From fbc33db7ccb678b3d13651775f327e6960a3a705 Mon Sep 17 00:00:00 2001 From: Hermiod Date: Sat, 17 Aug 2013 12:57:52 +0200 Subject: libcppa: 0.7.1 - Actor Model implementation for C++11 Closes #21952. Signed-off-by: Xiyue Deng --- Library/Formula/libcppa.rb | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 Library/Formula/libcppa.rb (limited to 'Library') diff --git a/Library/Formula/libcppa.rb b/Library/Formula/libcppa.rb new file mode 100644 index 000000000..32082609e --- /dev/null +++ b/Library/Formula/libcppa.rb @@ -0,0 +1,41 @@ +require 'formula' + +class Libcppa < Formula + homepage 'http://libcppa.blogspot.it' + url 'https://github.com/Neverlord/libcppa/archive/V0.7.1.tar.gz' + sha1 '0f1f685e94bfa16625370b978ff26deaf799b94e' + + depends_on :macos => :lion + depends_on 'cmake' => :build + + option 'with-opencl', 'Build with OpenCL actors' + + def caveats + "Libcppa requires a C++11 compliant compiler" + end + + fails_with :gcc do + cause 'libcppa requires a C++11 compliant compiler.' + end + + fails_with :llvm do + cause 'libcppa requires a C++11 compliant compiler.' + end + + def install + args = %W[ + --prefix=#{prefix} + --build-static + --disable-context-switching + ] + + if build.with? 'opencl' + args << "--with-opencl" + end + + system "./configure", *args + system "make" + system "make", "test" + system "make", "install" + end +end -- cgit v1.2.3