11class OrocosKdl < Formula
22 desc "Orocos Kinematics and Dynamics C++ library"
33 homepage "https://orocos.org/"
4- url "https://github.com/orocos/orocos_kinematics_dynamics/archive/refs/tags/v1 .5.1 .tar.gz"
5- sha256 "5acb90acd82b10971717aca6c17874390762ecdaa3a8e4db04984ea1d4a2af9b "
4+ url "https://github.com/orocos/orocos_kinematics_dynamics/archive/refs/tags/1 .5.2 .tar.gz"
5+ sha256 "dafbfdb68a5ecbf35c0d7ce35d66aa55f3be28e5771617d2af0292df6cdb0092 "
66 license "LGPL-2.1-or-later"
77
88 bottle do
9- rebuild 1
10- sha256 cellar : :any , arm64_tahoe : "de42730805db93cd91e39d3c08274faa7384305654f618e6806c591de8d8b52d"
11- sha256 cellar : :any , arm64_sequoia : "56fb6d1bb7796ec39b73f9a1cd8da6f9f946549e90517b526139761bfbd2f820"
12- sha256 cellar : :any , arm64_sonoma : "1f64cef75b8d38a0f735e2e173b8fbfe1eaec26519bfee0f05ee5be52e0fd26e"
13- sha256 cellar : :any , arm64_ventura : "819c0a9c91a7572f68752d59feb7af82a9b91426d8cd7c14f1614a353f0e7a6e"
14- sha256 cellar : :any , arm64_monterey : "5b68c4676de398ade876c5c31510527a2b77be2c4b5cb992f5a8beb208d89d52"
15- sha256 cellar : :any , arm64_big_sur : "75fc67af57edc2045d8932d1e3cea5b07ac3dfb4c9bbf9632def9c44e769635a"
16- sha256 cellar : :any , sonoma : "b73b649ea45a3e8c44dff9cbbc7577e0c5e4e1d9ca2753e85b6df42eb38b4829"
17- sha256 cellar : :any , ventura : "b06f4e556b6818d26b38fa070cc9aa704459ce3fe4525f3d530ace039d0338a1"
18- sha256 cellar : :any , monterey : "0f49e657e15966fbd854e659a570141eb3f86028074eba50f90a3d0f66cf5d5e"
19- sha256 cellar : :any , big_sur : "e7a5a2769dcbf1645d7f2daaf2d3814d4ee80497683ff18fd12196732f0135f3"
20- sha256 cellar : :any_skip_relocation , arm64_linux : "866593697a60ffc5e5150e69f0048ddd5829a23d799c662eecc53d378fb3fa99"
21- sha256 cellar : :any_skip_relocation , x86_64_linux : "4992170c0dd7c7076a2bcbcc760518d2c815b2f918e7b1abcabf21c712f1c544"
9+ sha256 cellar : :any , arm64_tahoe : "2c0ce3eb5d48dcf9712249f89b5747e94acbd5c189738f0f8e3151769e2abfea"
10+ sha256 cellar : :any , arm64_sequoia : "116f8df170aef26b9cd5c82801d054100d8b42197d450e154f2f877bf38879cf"
11+ sha256 cellar : :any , arm64_sonoma : "85feac97994cc54fea4c1b2852f4ef71784b5c57dacd3064ff256543f5b03fd1"
12+ sha256 cellar : :any , sonoma : "138ef6ab746ef9853a9cdec458ad74684e65d1cbd3c393cf1009ad11cdc286d9"
13+ sha256 cellar : :any_skip_relocation , arm64_linux : "9d560b8f454e3fa4f3b69ea30a6bb8b8fc536ec79fd8bf1dd98779677c840a08"
14+ sha256 cellar : :any_skip_relocation , x86_64_linux : "1174d96445d7d99fefa5d063c4bc20bf985bf2060bad773d0e6f0efb3d3a7e83"
2215 end
2316
2417 depends_on "cmake" => :build
2518 depends_on "eigen"
2619
27- # $(brew --prefix orocos-kdl)/share/orocos_kdl/cmake/OrocosKDLTargets.cmake does not export the includes
28- # orocos-kdl v1.5.1 was released in September 2021: https://github.com/orocos/orocos_kinematics_dynamics/commit/db25b7e480e068df068232064f2443b8d52a83c7
29- # Issue was solved in October 2021: https://github.com/orocos/orocos_kinematics_dynamics/commit/ef39a4fd5cfb1400b2e6e034b1a99b8ad91192cf
30- # No new release since then, so we should provide a hotfix.
31- # Can be removed with next release.
32- patch do
33- url "https://github.com/orocos/orocos_kinematics_dynamics/commit/ef39a4fd5cfb1400b2e6e034b1a99b8ad91192cf.patch?full_index=1"
34- sha256 "b2ac2ff5d5d3285e7dfb4fbfc81364b1abc808cdd7d22415e446bfbdca189edd"
35- end
36-
3720 def install
38- # Bump min CMake version. Remove with next release.
39- inreplace "orocos_kdl/CMakeLists.txt" , "CMAKE_MINIMUM_REQUIRED(VERSION 2.6)" ,
40- "CMAKE_MINIMUM_REQUIRED(VERSION 3.10)"
21+ ENV . cxx11
4122 system "cmake" , "-S" , "orocos_kdl" , "-B" , "build" ,
4223 "-DEIGEN3_INCLUDE_DIR=#{ Formula [ "eigen" ] . opt_include } /eigen3" ,
4324 *std_cmake_args
@@ -58,7 +39,7 @@ def install
5839 }
5940 CPP
6041
61- system ENV . cxx , "test.cpp" , "-I#{ include } " , "-L#{ lib } " , "-lorocos-kdl" ,
42+ system ENV . cxx , "test.cpp" , "-std=c++11" , "- I#{ include } ", "-L#{ lib } " , "-lorocos-kdl" ,
6243 "-o" , "test"
6344 system "./test"
6445 end
0 commit comments