Skip to content

coal: rename from hpp-fcl (coal 3.0.0) #198747

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Nov 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/autobump.txt
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,7 @@ cmu-pocketsphinx
cmus
cnats
cntb
coal
cobalt
coccinelle
cocoapods
Expand Down Expand Up @@ -1263,7 +1264,6 @@ hopenpgp-tools
hoverfly
howard-hinnant-date
hpack
hpp-fcl
htmldoc
htmlq
htmltest
Expand Down
65 changes: 65 additions & 0 deletions Formula/c/coal.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
class Coal < Formula
desc "Extension of the Flexible Collision Library"
homepage "https://github.com/coal-library/coal"
url "https://github.com/coal-library/coal/releases/download/v3.0.0/coal-3.0.0.tar.gz"
sha256 "6a9cbd4684e907fd16577e5227fbace06ac15ca861c0846dfe5bc81e565fb1e7"
license "BSD-2-Clause"
head "https://github.com/coal-library/coal.git", branch: "devel"

livecheck do
url :stable
strategy :github_latest
end

bottle do
sha256 cellar: :any, arm64_sequoia: "f153b19d41512585b847003ef4f1586ffb75ed3517da98396e84393aaa27e44e"
sha256 cellar: :any, arm64_sonoma: "1c506cc8bb8da18b2a51c6fb6e12752168a330b499ee2a0d2935f01743fc11e9"
sha256 cellar: :any, arm64_ventura: "271b8781233c2a06d72a9fee9cb2dca85366f0ae69b4f566c3b770ccfffe74e6"
sha256 cellar: :any, sonoma: "84f719d46ed7c2c09ca17eac6d7e05c0258faf74f23d95a6a779c06cae35b7bc"
sha256 cellar: :any, ventura: "31b33f22e75a9afd53c5fe8c4fb2959b62af1e61c9233e11887eb4186222c131"
sha256 cellar: :any_skip_relocation, x86_64_linux: "5e9bf476dc22586356da2407ee3b2e0efb1985605eaa6cffb18890c11a3e3361"
end

depends_on "cmake" => :build
depends_on "doxygen" => :build
depends_on "pkgconf" => :build
depends_on "assimp"
depends_on "boost"
depends_on "boost-python3"
depends_on "eigen"
depends_on "eigenpy"
depends_on "octomap"
depends_on "[email protected]"

def python3
"python3.12"
end

def install
ENV.prepend_path "PYTHONPATH", Formula["eigenpy"].opt_prefix/Language::Python.site_packages(python3)
ENV.prepend_path "Eigen3_DIR", Formula["eigen"].opt_share/"eigen3/cmake"

# enable backward compatibility with hpp-fcl
args = %W[
-DPYTHON_EXECUTABLE=#{which(python3)}
-DCOAL_BACKWARD_COMPATIBILITY_WITH_HPP_FCL=ON
]

system "cmake", "-S", ".", "-B", "build", *args, *std_cmake_args
system "cmake", "--build", "build"
system "cmake", "--install", "build"
end

test do
%w[hppfcl coal].each do |module_name|
system python3, "-c", <<~PYTHON
exec("""
import #{module_name}
radius = 0.5
sphere = #{module_name}.Sphere(0.5)
assert sphere.radius == radius
""")
PYTHON
end
end
end
60 changes: 0 additions & 60 deletions Formula/h/hpp-fcl.rb

This file was deleted.

15 changes: 8 additions & 7 deletions Formula/p/pinocchio.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class Pinocchio < Formula
url "https://github.com/stack-of-tasks/pinocchio/releases/download/v3.3.0/pinocchio-3.3.0.tar.gz"
sha256 "a86ea06a7b4447d00cc46ed541a105f686957400eebb51b25aa41a93c08d855c"
license "BSD-2-Clause"
revision 1
head "https://github.com/stack-of-tasks/pinocchio.git", branch: "master"

livecheck do
Expand All @@ -12,12 +13,12 @@ class Pinocchio < Formula
end

bottle do
sha256 cellar: :any, arm64_sequoia: "3088be717f0b5ceb10f793515af84a55d1711b51cf7e73b5d7e6c3d95a30c9b1"
sha256 cellar: :any, arm64_sonoma: "1a14087e72c5ebe61e76027de8e4b13a839d08fc35e834f931290f4a07276423"
sha256 cellar: :any, arm64_ventura: "a2fbd3bbebd1391a73f1d5e412d55e8fd8fb88c10ef601ed299d8da9a00d2e0b"
sha256 cellar: :any, sonoma: "9ce50ce56129f81cdf400a57e8bcb2ee4f47f2aca0fb1019b47f43793d0ca055"
sha256 cellar: :any, ventura: "f851f77332ec60ce5bba414612d13ef97ff4b2a22a92b356c2ed9c5c2d462a9c"
sha256 cellar: :any_skip_relocation, x86_64_linux: "398598872be05caddc9bd4a74af3ad57c701d8cfe633db4f3a4e1679142fc1b6"
sha256 cellar: :any, arm64_sequoia: "a78d5102e37727446e188ae3f2b885116c51e0dd54ca94709d16c43dd1e38684"
sha256 cellar: :any, arm64_sonoma: "c8edb4e650e857f57390308388eaedc2b1d17d58cb3dad208e8b30d3593b5f26"
sha256 cellar: :any, arm64_ventura: "cbd7ce61c6721055bddd60f53b8932d3f0309614a1b6635a225fd409074ea0d4"
sha256 cellar: :any, sonoma: "ff5487b53675a5a88cdb0858b0c8df3a6baa17ccdb6ccdea4e3a5a947d6a08cc"
sha256 cellar: :any, ventura: "0e48086ae4525d6e3fd7745f704fe8514e0e72b05828e54f6ad71995d4c3cd8a"
sha256 cellar: :any_skip_relocation, x86_64_linux: "c162710f44ea4bcdcfb735121c192337454a14a3e55e0a84a8f030a135b6ea34"
end

depends_on "cmake" => :build
Expand All @@ -26,10 +27,10 @@ class Pinocchio < Formula

depends_on "boost"
depends_on "boost-python3"
depends_on "coal"
depends_on "console_bridge"
depends_on "eigen"
depends_on "eigenpy"
depends_on "hpp-fcl"
depends_on "[email protected]"
depends_on "urdfdom"

Expand Down
1 change: 1 addition & 0 deletions formula_renames.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"gutenberg": "zola",
"hamsterdb": "upscaledb",
"hh": "hstr",
"hpp-fcl": "coal",
"ht-rust": "xh",
"htop-osx": "htop",
"httpd24": "httpd",
Expand Down
Loading