libcppa 0.11

libcppa has been renamed to actor-framework or libcaf (pkg name) since 0.10,
but we still use the old name for the consistency with the old one.
This commit is contained in:
Chilledheart 2014-10-31 21:20:28 +08:00 committed by Mike McQuaid
parent 9e58be0430
commit 6aa77841fc
3 changed files with 11 additions and 6 deletions

1
Aliases/actor-framework Symbolic link
View file

@ -0,0 +1 @@
../Formula/libcaf.rb

1
Aliases/libcaf Symbolic link
View file

@ -0,0 +1 @@
../Formula/libcppa.rb

View file

@ -1,9 +1,12 @@
require "formula" require "formula"
class Libcppa < Formula class Libcppa < Formula
homepage "http://libcppa.blogspot.it" homepage "http://actor-framework.org/"
url "http://github.com/Neverlord/libcppa/archive/V0.9.4.tar.gz" url "https://github.com/actor-framework/actor-framework/archive/0.11.0.tar.gz"
sha1 "eba8002f087e55498edc0bf996fb7f211d7feec6" 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
bottle do bottle do
cellar :any cellar :any
@ -17,6 +20,7 @@ class Libcppa < Formula
option "with-opencl", "Build with OpenCL actors" option "with-opencl", "Build with OpenCL actors"
option "with-examples", "Build examples" option "with-examples", "Build examples"
option "without-check", "Skip build-time tests (not recommended)"
def install def install
ENV.cxx11 ENV.cxx11
@ -24,15 +28,14 @@ class Libcppa < Formula
args = %W[ args = %W[
--prefix=#{prefix} --prefix=#{prefix}
--build-static --build-static
--disable-context-switching
] ]
args << "--with-opencl" if build.with? "opencl" args << "--no-opencl" if build.without? "opencl"
args << "--no-examples" if build.without? "examples" args << "--no-examples" if build.without? "examples"
system "./configure", *args system "./configure", *args
system "make" system "make"
system "make", "test" system "make", "test" if build.with? "check"
system "make", "install" system "make", "install"
end end
end end