From 384d35433c32d063ded6997934b9c72c7e21d763 Mon Sep 17 00:00:00 2001 From: chris Date: Wed, 22 May 2024 09:27:14 -0500 Subject: [PATCH] rebuild formula for linux and use python3 var instead of hard coded name Closes #516. Signed-off-by: Chris --- Formula/coin3d_py310.rb | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Formula/coin3d_py310.rb b/Formula/coin3d_py310.rb index 41225d98..dded5109 100644 --- a/Formula/coin3d_py310.rb +++ b/Formula/coin3d_py310.rb @@ -35,7 +35,6 @@ class Coin3dPy310 < Formula depends_on "cmake" => :build depends_on "doxygen" => :build depends_on "freecad/freecad/swig@4.1.1" => :build - depends_on "ninja" => :build depends_on "boost" depends_on "freecad/freecad/pyside2@5.15.11_py310" depends_on "python@3.10" @@ -51,12 +50,11 @@ def python3 def install system "cmake", "-S", ".", "-B", "_build", - "-DCOIN_BUILD_MAC_FRAMEWORK=OFF", - "-DCOIN_BUILD_DOCUMENTATION=ON", - "-DCOIN_BUILD_TESTS=OFF", "-DCMAKE_CXX_STANDARD=11", - "-L", - *std_cmake_args + "-DCOIN_BUILD_DOCUMENTATION=ON", + "-DCOIN_BUILD_DOCUMENTATION_MAN=ON", + "-DCMAKE_INSTALL_PREFIX=#{prefix}", + "-L" system "cmake", "--build", "_build" system "cmake", "--install", "_build" @@ -86,7 +84,8 @@ def caveats <<~EOS this formula is keg-only, and intended to aid in the building of freecad this formula should NOT be linked using `brew link` or else errors will - arise when opening the python3.10 repl + arise when opening the #{python3} repl + the test in this formula will fail in a screen (GUI) can not be accessed EOS end