Skip to content

Commit

Permalink
Merge pull request #197646 from Homebrew/bump-magic_enum-0.9.7
Browse files Browse the repository at this point in the history
magic_enum 0.9.7
  • Loading branch information
BrewTestBot authored Nov 16, 2024
2 parents 4cc4df1 + a26028f commit d49965f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 15 deletions.
23 changes: 14 additions & 9 deletions Formula/m/magic_enum.rb
Original file line number Diff line number Diff line change
@@ -1,23 +1,28 @@
class MagicEnum < Formula
desc "Static reflection for enums (to string, from string, iteration) for modern C++"
homepage "https://github.com/Neargye/magic_enum"
url "https://github.com/Neargye/magic_enum/archive/refs/tags/v0.9.6.tar.gz"
sha256 "814791ff32218dc869845af7eb89f898ebbcfa18e8d81aa4d682d18961e13731"
url "https://github.com/Neargye/magic_enum/archive/refs/tags/v0.9.7.tar.gz"
sha256 "b403d3dad4ef542fdc3024fa37d3a6cedb4ad33c72e31b6d9bab89dcaf69edf7"
license "MIT"

bottle do
sha256 cellar: :any_skip_relocation, all: "01d5992f26c5acdd567ba4a7dcbf5c3563dc178530bda8588db63effb8b3a715"
sha256 cellar: :any_skip_relocation, all: "4522b89be3d394cfd87829cc5ed355bb25ac0a66c38eb2ad4106b8338719e276"
end

depends_on "cmake" => :build

fails_with gcc: "5" # C++17
fails_with :gcc do
version "5"
cause "Requires C++17"
end

def install
system "cmake", ".", *std_cmake_args
system "make", "install"
system "./test/test-cpp17"
system "./test/test-cpp17"
system "cmake", "-S", ".", "-B", "build", *std_cmake_args
system "cmake", "--build", "build"
system "cmake", "--install", "build"

system "./build/test/test-cpp17"
system "./build/test/test-cpp20"
end

test do
Expand All @@ -35,7 +40,7 @@ def install
}
CPP

system ENV.cxx, "test.cpp", "-I#{include}", "-std=c++17", "-o", "test"
system ENV.cxx, "test.cpp", "-I#{include}/magic_enum", "-std=c++17", "-o", "test"
assert_equal "RED\n", shell_output(testpath/"test")
end
end
13 changes: 7 additions & 6 deletions Formula/t/thors-mongo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ class ThorsMongo < Formula
tag: "6.0.06",
revision: "9ff64c7f7d52415a9f09d764078a9d2b29b06f16"
license "GPL-3.0-only"
revision 1

bottle do
sha256 cellar: :any, arm64_sequoia: "bb9b17d9451ec02a0c9f9c5df245db42582385062964c1f29a4d6552242ffaf2"
sha256 cellar: :any, arm64_sonoma: "7601dfe7c27d029a8df9ecea35aad364d4decc216ecb61d594433795adce942c"
sha256 cellar: :any, arm64_ventura: "afac27843d850a849ca27e69b95d0d573486fe14f54bb64ea3d605f59c004f28"
sha256 cellar: :any, sonoma: "8db835fe97f407d1ef595d83ed05ce27af564b01a10424d59b5adc7c3b285116"
sha256 cellar: :any, ventura: "cfb7d3613d06c37eca7d52e4fde25ebf99ab38d6efb068785410ddc22d697521"
sha256 cellar: :any_skip_relocation, x86_64_linux: "fc5501bd71370763c82232beb8cc92edcc28217b260a4d10039b341dcfb763b5"
sha256 cellar: :any, arm64_sequoia: "df22574c3d8d42c2acd7545936aac68e10fb01a62d468e8a37737fdf29d0d61e"
sha256 cellar: :any, arm64_sonoma: "ba80135aa78d5bbd0bd423da47424b2f2ecf57321971e20574c91e92ea9bc299"
sha256 cellar: :any, arm64_ventura: "45f3b9efe0946ceb9b65e733276324e0627dee6935c6de01a754db430fc74ef7"
sha256 cellar: :any, sonoma: "685f7324a917a8a8c535483572c45fdb40324be940c5ac3347792df6f43898c9"
sha256 cellar: :any, ventura: "5f2ef80e0b25ca4b261d310ce1f4e3d555024c9681e445dc6881575f55de48e5"
sha256 cellar: :any_skip_relocation, x86_64_linux: "e075ff4433d7bfe5d4a31dc004ca0a3243e8de78d7046866174d493d90d57118"
end

depends_on "libyaml"
Expand Down

0 comments on commit d49965f

Please sign in to comment.