diff --git a/Formula/ignition-math3.rb b/Formula/ignition-math3.rb deleted file mode 100644 index 89abab393..000000000 --- a/Formula/ignition-math3.rb +++ /dev/null @@ -1,51 +0,0 @@ -class IgnitionMath3 < Formula - desc "Math API for robotic applications" - homepage "https://ignitionrobotics.org" - url "https://osrf-distributions.s3.amazonaws.com/ign-math/releases/ignition-math3-3.3.0.tar.bz2" - sha256 "97bb7f20b64c9a281873ac6fd02932390ca9a0d5709256e671c4db4221a8e051" - license "Apache-2.0" - - head "https://github.com/gazebosim/gz-math.git", branch: "ign-math3" - - bottle do - root_url "https://osrf-distributions.s3.amazonaws.com/ign-math/releases" - sha256 cellar: :any, mojave: "958ed00cd402ba76a8095adb3aa804243b553b126b60882cd7162dc60d6098d1" - sha256 cellar: :any, high_sierra: "79f35d471b53743a1a8ad5d40d64014ef732247312c8b8cb22ce83b40783e945" - sha256 cellar: :any, sierra: "34c194270aa0e1dbf44a11e18313ce986ef7654745e1d01689a73b7a53507720" - sha256 cellar: :any, el_capitan: "4f35a563ed082a2c3e72be81b574495eb4d430541bce5323526a4faf6356455c" - sha256 cellar: :any, yosemite: "360b5673f882a817cb0e576b2778c8665d27f0671d34eaa188f30873221da058" - end - - disable! date: "2023-02-28", because: "is past end-of-life date" - deprecate! date: "2019-09-01", because: "is past end-of-life date" - - depends_on "cmake" => :build - depends_on "doxygen" => :build - - conflicts_with "ignition-math2", because: "symbols collision between the two libraries" - - def install - system "cmake", ".", *std_cmake_args - system "make", "install" - end - - test do - (testpath/"test.cpp").write <<-EOS - #include "ignition/math/SignalStats.hh" - int main() { - ignition::math::SignalMean mean; - mean.InsertData(1.0); - mean.InsertData(-1.0); - return static_cast(mean.Value()); - } - EOS - system ENV.cc, "test.cpp", - "--std=c++11", - "-I#{include}/ignition/math3", - "-L#{lib}", - "-lignition-math3", - "-lc++", - "-o", "test" - system "./test" - end -end diff --git a/Formula/sdformat4.rb b/Formula/sdformat4.rb deleted file mode 100644 index 22a0a0649..000000000 --- a/Formula/sdformat4.rb +++ /dev/null @@ -1,73 +0,0 @@ -class Sdformat4 < Formula - desc "Simulation Description Format" - homepage "http://sdformat.org" - url "https://osrf-distributions.s3.amazonaws.com/sdformat/releases/sdformat-4.4.0.tar.bz2" - sha256 "4424a984f69d3333f087e7aae1d8fa5aec61ad52e09be39e2f5e2cb69ade1527" - license "Apache-2.0" - revision 6 - - head "https://github.com/osrf/sdformat.git", branch: "sdf4", using: :git - - disable! date: "2023-02-28", because: "is past end-of-life date" - deprecate! date: "2019-09-01", because: "is past end-of-life date" - - depends_on "cmake" => :build - - depends_on "boost" - depends_on "doxygen" - depends_on "ignition-math2" - depends_on "pkg-config" - depends_on "tinyxml" - depends_on "urdfdom" => :optional - - conflicts_with "sdformat6", because: "differing version of the same formula" - - def install - cmake_args = std_cmake_args - cmake_args << "-DUSE_EXTERNAL_URDF:BOOL=True" if build.with? "urdfdom" - cmake_args << ".." - - mkdir "build" do - system "cmake", *cmake_args - system "make", "install" - end - end - - test do - (testpath/"test.cpp").write <<-EOS - #include - #include "sdf/sdf.hh" - const std::string sdfString( - "" - " " - " " - " " - " " - " " - " " - " " - " " - " " - " " - ""); - int main() { - sdf::SDF modelSDF; - modelSDF.SetFromString(sdfString); - std::cout << modelSDF.ToString() << std::endl; - } - EOS - system "pkg-config", "sdformat" - cflags = `pkg-config --cflags sdformat`.split - libs = `pkg-config --libs sdformat`.split - system ENV.cc, "test.cpp", - *cflags, - "-L#{lib}", - *libs, - "-lc++", - "-o", "test" - system "./test" - # check for Xcode frameworks in bottle - cmd_not_grep_xcode = "! grep -rnI 'Applications[/]Xcode' #{prefix}" - system cmd_not_grep_xcode - end -end