Skip to content

Commit

Permalink
rebuild formula for linux and use python3 var instead of hard coded name
Browse files Browse the repository at this point in the history
Closes #516.

Signed-off-by: Chris <[email protected]>
  • Loading branch information
ipatch committed May 22, 2024
1 parent 735e1b8 commit 384d354
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions Formula/coin3d_py310.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ class Coin3dPy310 < Formula
depends_on "cmake" => :build
depends_on "doxygen" => :build
depends_on "freecad/freecad/[email protected]" => :build
depends_on "ninja" => :build
depends_on "boost"
depends_on "freecad/freecad/[email protected]_py310"
depends_on "[email protected]"
Expand All @@ -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"

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 384d354

Please sign in to comment.