2014-07-21 01:53:52 +00:00
|
|
|
require "formula"
|
2013-08-17 10:57:52 +00:00
|
|
|
|
|
|
|
class Libcppa < Formula
|
2014-10-31 13:20:28 +00:00
|
|
|
homepage "http://actor-framework.org/"
|
|
|
|
url "https://github.com/actor-framework/actor-framework/archive/0.11.0.tar.gz"
|
|
|
|
sha1 "202f2fd72a5af59d7ace6b7300df1fcc19f1857f"
|
|
|
|
|
|
|
|
# since upstream has rename the project to actor-framework (or libcaf in its
|
|
|
|
# pkgconfig file), we need to rename libcppa to libcaf in the future
|
2013-08-17 10:57:52 +00:00
|
|
|
|
2014-06-02 12:15:25 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2014-10-31 15:53:05 +00:00
|
|
|
sha1 "b0e9bef1983d561763e21539c9b9196d75e5a935" => :yosemite
|
|
|
|
sha1 "ed71bb57236d2aecf4e19e5044ca3af22969b5c5" => :mavericks
|
|
|
|
sha1 "8224fe20d5d4bd184a9b6c15ddd6143740ea23ca" => :mountain_lion
|
2014-06-02 12:15:25 +00:00
|
|
|
end
|
|
|
|
|
2014-07-21 01:53:52 +00:00
|
|
|
depends_on "cmake" => :build
|
2013-08-17 10:57:52 +00:00
|
|
|
|
2014-04-05 04:16:09 +00:00
|
|
|
needs :cxx11
|
|
|
|
|
2014-07-21 01:53:52 +00:00
|
|
|
option "with-opencl", "Build with OpenCL actors"
|
|
|
|
option "with-examples", "Build examples"
|
2014-10-31 13:20:28 +00:00
|
|
|
option "without-check", "Skip build-time tests (not recommended)"
|
2013-08-17 10:57:52 +00:00
|
|
|
|
|
|
|
def install
|
2014-05-05 20:24:04 +00:00
|
|
|
ENV.cxx11
|
|
|
|
|
2013-08-17 10:57:52 +00:00
|
|
|
args = %W[
|
|
|
|
--prefix=#{prefix}
|
|
|
|
--build-static
|
|
|
|
]
|
|
|
|
|
2014-10-31 13:20:28 +00:00
|
|
|
args << "--no-opencl" if build.without? "opencl"
|
2014-07-21 01:53:52 +00:00
|
|
|
args << "--no-examples" if build.without? "examples"
|
2013-08-17 10:57:52 +00:00
|
|
|
|
|
|
|
system "./configure", *args
|
|
|
|
system "make"
|
2014-10-31 13:20:28 +00:00
|
|
|
system "make", "test" if build.with? "check"
|
2013-08-17 10:57:52 +00:00
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
end
|