muparser: switch to cmake and use gcc for openmp

master
Rui Chen 2020-06-28 01:24:47 -04:00 committed by chenrui
parent 8af087c3c8
commit ec08ce5c1d
1 changed files with 9 additions and 4 deletions

View File

@ -13,11 +13,16 @@ class Muparser < Formula
sha256 "d5d3fd87e54d300578836ed61e066ef08b665050d7986e46ed6995eeee819088" => :sierra
end
depends_on "cmake" => :build
depends_on "gcc"
fails_with :clang # no OpenMP support
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make", "install"
mkdir "build" do
system "cmake", "..", *std_cmake_args
system "make", "install"
end
end
test do