Skip to content

Commit b87ae83

Browse files
BrewTestBotchenrui333
authored andcommitted
coin3d 4.0.4
coin3d: add cmake 4 build patch Signed-off-by: Rui Chen <rui@chenrui.dev>
1 parent 88d72be commit b87ae83

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Formula/c/coin3d.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@ class Coin3d < Formula
22
desc "Open Inventor 2.1 API implementation (Coin)"
33
homepage "https://coin3d.github.io/"
44
license "BSD-3-Clause"
5-
revision 2
65

76
stable do
8-
url "https://github.com/coin3d/coin/releases/download/v4.0.3/coin-4.0.3-src.tar.gz"
9-
sha256 "66e3f381401f98d789154eb00b2996984da95bc401ee69cc77d2a72ed86dfda8"
7+
url "https://github.com/coin3d/coin/releases/download/v4.0.4/coin-4.0.4-src.tar.gz"
8+
sha256 "80efd056a445050939a265db307d106ac7524105774d4be924a71b0cff23a719"
109

1110
resource "soqt" do
1211
url "https://github.com/coin3d/soqt/releases/download/v1.6.3/soqt-1.6.3-src.tar.gz"
@@ -54,6 +53,7 @@ def python3
5453
end
5554

5655
def install
56+
odie "Remove cmake 4 build patch" if build.stable? && resource("soqt").version > "1.6.3"
5757
system "cmake", "-S", ".", "-B", "_build",
5858
"-DCOIN_BUILD_MAC_FRAMEWORK=OFF",
5959
"-DCOIN_BUILD_DOCUMENTATION=ON",
@@ -69,6 +69,7 @@ def install
6969
"-DSOQT_BUILD_MAC_FRAMEWORK=OFF",
7070
"-DSOQT_BUILD_DOCUMENTATION=OFF",
7171
"-DSOQT_BUILD_TESTS=OFF",
72+
"-DCMAKE_POLICY_VERSION_MINIMUM=3.5",
7273
*std_cmake_args(find_framework: "FIRST")
7374
system "cmake", "--build", "_build"
7475
system "cmake", "--install", "_build"

0 commit comments

Comments
 (0)