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