systemc 2.3.1 (new formula)

The C++ modeling language known as "SystemC".

Includes the SystemC library and some examples.

Closes Homebrew/homebrew#46909.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
This commit is contained in:
Manuel Grandeit 2015-12-11 17:20:38 +01:00 committed by Baptiste Fontaine
parent 99364f2f7c
commit dd77199816

27
Formula/systemc.rb Normal file
View file

@ -0,0 +1,27 @@
class Systemc < Formula
desc "Core SystemC language and examples"
homepage "http://accellera.org"
url "http://accellera.org/images/downloads/standards/systemc/systemc-2.3.1.tgz"
sha256 "7ce0f68fd4759e746a9808936b54e62d498f5b583e83fc47758ca86917b4f800"
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--with-arch-suffix=",
"--prefix=#{prefix}"
system "make", "install"
end
test do
(testpath/"test.cpp").write <<-EOS.undent
#include "systemc.h"
int sc_main(int argc, char *argv[]) {
return 0;
}
EOS
system ENV.cxx, "-L#{lib}", "-lsystemc", "test.cpp"
system "./a.out"
end
end