From def9ea14debff2c83702d896142b1136de4fe9b1 Mon Sep 17 00:00:00 2001 From: Oliver Nordbjerg Date: Sat, 17 Aug 2024 15:16:13 -0700 Subject: [PATCH 1/4] feat: add mesc --- Formula/mesc.rb | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Formula/mesc.rb diff --git a/Formula/mesc.rb b/Formula/mesc.rb new file mode 100644 index 0000000..f1cea1c --- /dev/null +++ b/Formula/mesc.rb @@ -0,0 +1,24 @@ +class Mesc < Formula + desc "Ethereum endpoint management tool" + homepage "https://github.com/paradigmxyz/mesc" + url "https://github.com/paradigmxyz/mesc.git", + tag: "0.2.0", + revision: "de4e784c87cdbe61a649f541d7d0510a231fe54d" + license any_of: ["Apache-2.0", "MIT"] + head "https://github.com/paradigmxyz/mesc.git", branch: "main" + + livecheck do + url :stable + strategy :github_latest + end + + depends_on "rust" => :build + + def install + system "cargo", "install", "--path", "rust/crates/mesc_cli", "--release", *std_cargo_args + end + + test do + system "#{bin}/mesc", "--help" + end +end From ea58e2bcd2053b20714afca1265092f2e7766dc6 Mon Sep 17 00:00:00 2001 From: Oliver Nordbjerg Date: Sat, 17 Aug 2024 15:48:00 -0700 Subject: [PATCH 2/4] fix: correct cargo install --- Formula/mesc.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Formula/mesc.rb b/Formula/mesc.rb index f1cea1c..5500772 100644 --- a/Formula/mesc.rb +++ b/Formula/mesc.rb @@ -15,7 +15,9 @@ class Mesc < Formula depends_on "rust" => :build def install - system "cargo", "install", "--path", "rust/crates/mesc_cli", "--release", *std_cargo_args + cd "rust/crates/mesc_cli" do + system "cargo", "install", *std_cargo_args + end end test do From 0b8170cc4d381d5d1141a232de63c1590cb1ec57 Mon Sep 17 00:00:00 2001 From: Oliver Date: Tue, 27 Aug 2024 21:25:25 +0200 Subject: [PATCH 3/4] chore: use 0.2.1 --- Formula/mesc.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Formula/mesc.rb b/Formula/mesc.rb index 5500772..7f0fef9 100644 --- a/Formula/mesc.rb +++ b/Formula/mesc.rb @@ -2,8 +2,8 @@ class Mesc < Formula desc "Ethereum endpoint management tool" homepage "https://github.com/paradigmxyz/mesc" url "https://github.com/paradigmxyz/mesc.git", - tag: "0.2.0", - revision: "de4e784c87cdbe61a649f541d7d0510a231fe54d" + tag: "0.2.1", + revision: "e4318f96b5094b3fcfcfdcd603f380886e6e3624" license any_of: ["Apache-2.0", "MIT"] head "https://github.com/paradigmxyz/mesc.git", branch: "main" From 3fce24724a74c0b53c1c4649fccf141a9efd55fc Mon Sep 17 00:00:00 2001 From: Oliver Nordbjerg Date: Tue, 27 Aug 2024 22:05:36 +0200 Subject: [PATCH 4/4] fix: use git tag livecheck strategy --- Formula/mesc.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/mesc.rb b/Formula/mesc.rb index 7f0fef9..1fda961 100644 --- a/Formula/mesc.rb +++ b/Formula/mesc.rb @@ -9,7 +9,7 @@ class Mesc < Formula livecheck do url :stable - strategy :github_latest + regex(/^v?(\d+(?:\.\d+)+)$/i) end depends_on "rust" => :build