From 5bfa81ac7973db5523a4c5d535911779309f7ecb Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Mon, 11 Mar 2024 21:55:46 +0000 Subject: [PATCH] ord 0.16.0 ord: update build and test Signed-off-by: Rui Chen --- Formula/o/ord.rb | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/Formula/o/ord.rb b/Formula/o/ord.rb index 048c32058e756..11508a404da70 100644 --- a/Formula/o/ord.rb +++ b/Formula/o/ord.rb @@ -1,8 +1,8 @@ class Ord < Formula desc "Index, block explorer, and command-line wallet" homepage "https://ordinals.com/" - url "https://github.com/ordinals/ord/archive/refs/tags/0.15.0.tar.gz" - sha256 "0c14e25c1c27a99fd9ec15a4263d4df6336f19cdf894304c4f7d42b64c14f2ea" + url "https://github.com/ordinals/ord/archive/refs/tags/0.16.0.tar.gz" + sha256 "f2d89cbcb78948e5906659702928e87abb2fec3d4c620de67db23fc8c2ad5fbb" license "CC0-1.0" head "https://github.com/ordinals/ord.git", branch: "master" @@ -16,15 +16,24 @@ class Ord < Formula sha256 cellar: :any_skip_relocation, x86_64_linux: "87b3ddfa49e34b119ce079927a543ac5fcdb841158d9052cb315361887840dca" end + depends_on "pkg-config" => :build depends_on "rust" => :build + on_linux do + depends_on "openssl@3" + end + def install + # Ensure that the `openssl` crate picks up the intended library. + ENV["OPENSSL_DIR"] = Formula["openssl@3"].opt_prefix + ENV["OPENSSL_NO_VENDOR"] = "1" + system "cargo", "install", *std_cargo_args end test do - expected = "error: failed to spawn `bitcoind`" - assert_match expected, shell_output("#{bin}/ord preview 2>&1", 1) + output = shell_output("#{bin}/ord list xx:xx 2>&1", 2) + assert_match "invalid value 'xx:xx' for '': error parsing TXID", output assert_match "ord #{version}", shell_output("#{bin}/ord --version") end