From fef80ae993572f403cd3038b8fc26206d6a99180 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 21 Jan 2019 19:25:19 +0000 Subject: [PATCH] gmsh: remove options. (#36228) See https://github.com/Homebrew/homebrew-core/issues/31510. --- Formula/gmsh.rb | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/Formula/gmsh.rb b/Formula/gmsh.rb index 7678e61ed3..757c811657 100644 --- a/Formula/gmsh.rb +++ b/Formula/gmsh.rb @@ -12,14 +12,12 @@ class Gmsh < Formula sha256 "088e0d81dd58de384d59868a56cef684ef0bb48c6122d3a5c75221d381eb6e02" => :sierra end - option "with-opencascade", "Build with opencascade support" - depends_on "cmake" => :build + depends_on "cairo" + depends_on "fltk" depends_on "gcc" # for gfortran depends_on "open-mpi" - depends_on "fltk" => :optional - depends_on "cairo" if build.with? "fltk" - depends_on "opencascade" => :optional + depends_on "opencascade" def install args = std_cmake_args + %W[ @@ -33,16 +31,10 @@ class Gmsh < Formula -DENABLE_NATIVE_FILE_CHOOSER=ON -DENABLE_PETSC=OFF -DENABLE_SLEPC=OFF + -DENABLE_OCC=ON ] - if build.with? "opencascade" - ENV["CASROOT"] = Formula["opencascade"].opt_prefix - args << "-DENABLE_OCC=ON" - else - args << "-DENABLE_OCC=OFF" - end - - args << "-DENABLE_FLTK=OFF" if build.without? "fltk" + ENV["CASROOT"] = Formula["opencascade"].opt_prefix mkdir "build" do system "cmake", "..", *args @@ -55,10 +47,6 @@ class Gmsh < Formula end end - def caveats - "To use onelab.py set your PYTHONDIR to #{libexec}" - end - test do system "#{bin}/gmsh", "#{share}/doc/gmsh/tutorial/t1.geo", "-parse_and_exit" end