gmsh: remove options. (#36228)
See https://github.com/Homebrew/homebrew-core/issues/31510.
This commit is contained in:
parent
f14ff2f9bf
commit
fef80ae993
1 changed files with 5 additions and 17 deletions
|
@ -12,14 +12,12 @@ class Gmsh < Formula
|
||||||
sha256 "088e0d81dd58de384d59868a56cef684ef0bb48c6122d3a5c75221d381eb6e02" => :sierra
|
sha256 "088e0d81dd58de384d59868a56cef684ef0bb48c6122d3a5c75221d381eb6e02" => :sierra
|
||||||
end
|
end
|
||||||
|
|
||||||
option "with-opencascade", "Build with opencascade support"
|
|
||||||
|
|
||||||
depends_on "cmake" => :build
|
depends_on "cmake" => :build
|
||||||
|
depends_on "cairo"
|
||||||
|
depends_on "fltk"
|
||||||
depends_on "gcc" # for gfortran
|
depends_on "gcc" # for gfortran
|
||||||
depends_on "open-mpi"
|
depends_on "open-mpi"
|
||||||
depends_on "fltk" => :optional
|
depends_on "opencascade"
|
||||||
depends_on "cairo" if build.with? "fltk"
|
|
||||||
depends_on "opencascade" => :optional
|
|
||||||
|
|
||||||
def install
|
def install
|
||||||
args = std_cmake_args + %W[
|
args = std_cmake_args + %W[
|
||||||
|
@ -33,16 +31,10 @@ class Gmsh < Formula
|
||||||
-DENABLE_NATIVE_FILE_CHOOSER=ON
|
-DENABLE_NATIVE_FILE_CHOOSER=ON
|
||||||
-DENABLE_PETSC=OFF
|
-DENABLE_PETSC=OFF
|
||||||
-DENABLE_SLEPC=OFF
|
-DENABLE_SLEPC=OFF
|
||||||
|
-DENABLE_OCC=ON
|
||||||
]
|
]
|
||||||
|
|
||||||
if build.with? "opencascade"
|
ENV["CASROOT"] = Formula["opencascade"].opt_prefix
|
||||||
ENV["CASROOT"] = Formula["opencascade"].opt_prefix
|
|
||||||
args << "-DENABLE_OCC=ON"
|
|
||||||
else
|
|
||||||
args << "-DENABLE_OCC=OFF"
|
|
||||||
end
|
|
||||||
|
|
||||||
args << "-DENABLE_FLTK=OFF" if build.without? "fltk"
|
|
||||||
|
|
||||||
mkdir "build" do
|
mkdir "build" do
|
||||||
system "cmake", "..", *args
|
system "cmake", "..", *args
|
||||||
|
@ -55,10 +47,6 @@ class Gmsh < Formula
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def caveats
|
|
||||||
"To use onelab.py set your PYTHONDIR to #{libexec}"
|
|
||||||
end
|
|
||||||
|
|
||||||
test do
|
test do
|
||||||
system "#{bin}/gmsh", "#{share}/doc/gmsh/tutorial/t1.geo", "-parse_and_exit"
|
system "#{bin}/gmsh", "#{share}/doc/gmsh/tutorial/t1.geo", "-parse_and_exit"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue