Skip to content
Merged
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
30 changes: 20 additions & 10 deletions Formula/o/opentelemetry-cpp.rb
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
class OpentelemetryCpp < Formula
desc "OpenTelemetry C++ Client"
homepage "https://opentelemetry.io/"
url "https://github.com/open-telemetry/opentelemetry-cpp/archive/refs/tags/v1.21.0.tar.gz"
sha256 "98e5546f577a11b52a57faed1f4cc60d8c1daa44760eba393f43eab5a8ec46a2"
url "https://github.com/open-telemetry/opentelemetry-cpp/archive/refs/tags/v1.22.0.tar.gz"
sha256 "3428f433f4b435ed1fad64cbdbe75b7288c06f6297786a7036d65d5b9a1d215b"
license "Apache-2.0"
revision 1
head "https://github.com/open-telemetry/opentelemetry-cpp.git", branch: "main"

bottle do
sha256 arm64_sequoia: "2ae3c009cd51e1c5f40a396e20730e6ba0ce6d21c00720802f312919714b264e"
sha256 arm64_sonoma: "0ea60332a49b121be93d4f476e2246b07429f582397d26a7325bcdcd0ba66cc2"
sha256 arm64_ventura: "16eb288bc18878471c7fa842b23262b311ff7836232499390cf9abfb39a86675"
sha256 cellar: :any, sonoma: "4512a8f5a3a27c783cc3ebf97e86a1e4c318d7920e365897496929db1fd6c5de"
sha256 cellar: :any, ventura: "cff85b1a0d4623021aa60353af331f7d31807170deb7d959e17ebf37580aa622"
sha256 cellar: :any_skip_relocation, arm64_linux: "21973cb6bc609fba0340022700127671a7d66e306f55d72c425c190af73772b8"
sha256 cellar: :any_skip_relocation, x86_64_linux: "774291f46bdd5d367df15a3d4b578031da99c0f1cc67669940ca6342998855bd"
sha256 arm64_sequoia: "a35066e4bbf7ce6b48af745ca9d8c9bf857ff64d003a74acda6e80976f25accc"
sha256 arm64_sonoma: "9eee5e2ee89f57600a1c9e92faf0f1a0a9e1f53c3a7cf73a35b6a9c035b8e345"
sha256 arm64_ventura: "1e19c1acb7d0e55c3c37aa6774bde595b7a6d67ee2b951026da80ded3aa33a88"
sha256 cellar: :any, sonoma: "cf12afae4299dc2da82fd9fbdd40ca5a3f88707c97d0860fa73fd57dd4ca1514"
sha256 cellar: :any, ventura: "26338b759ba5112624ffe3c849dd1a73debb1f466500244462537d0bb04d9963"
sha256 cellar: :any_skip_relocation, arm64_linux: "a91a6c5e665d463d24ecd9d47af80f0fd6d0eca8b2768628511b1344655169bf"
sha256 cellar: :any_skip_relocation, x86_64_linux: "456bbe893a63a3a9178ef10d201226a7d82f09cf687aafe691b27bd538d2adbf"
end

depends_on "cmake" => :build
Expand All @@ -32,12 +31,23 @@ class OpentelemetryCpp < Formula
depends_on "re2"
end

resource "openetelemetry-proto" do
url "https://github.com/open-telemetry/opentelemetry-proto/archive/refs/tags/v1.7.0.tar.gz"
sha256 "11330d850f5e24d34c4246bc8cb21fcd311e7565d219195713455a576bb11bed"
end

def install
(buildpath/"opentelemetry-proto").install resource("openetelemetry-proto")

ENV.append "LDFLAGS", "-Wl,-undefined,dynamic_lookup" if OS.mac?
system "cmake", "-S", ".", "-B", "build",
"-DBUILD_SHARED_LIBS=ON",
"-DCMAKE_CXX_STANDARD=17", # Keep in sync with C++ standard in abseil.rb
"-DCMAKE_INSTALL_RPATH=#{rpath}",
"-DHOMEBREW_ALLOW_FETCHCONTENT=ON",
"-DFETCHCONTENT_FULLY_DISCONNECTED=ON",
"-DFETCHCONTENT_TRY_FIND_PACKAGE_MODE=ALWAYS",
"-DOTELCPP_PROTO_PATH=#{buildpath}/opentelemetry-proto",
"-DWITH_ELASTICSEARCH=ON",
"-DWITH_EXAMPLES=OFF",
"-DWITH_OTLP_GRPC=ON",
Expand Down
Loading