Skip to content

Commit

Permalink
ord 0.16.0
Browse files Browse the repository at this point in the history
ord: update build and test

Signed-off-by: Rui Chen <rui@chenrui.dev>
  • Loading branch information
BrewTestBot authored and chenrui333 committed Mar 11, 2024
1 parent 58ab11a commit 5bfa81a
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions Formula/o/ord.rb
Original file line number Diff line number Diff line change
@@ -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"

Expand All @@ -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 '<OUTPOINT>': error parsing TXID", output

assert_match "ord #{version}", shell_output("#{bin}/ord --version")
end
Expand Down

0 comments on commit 5bfa81a

Please sign in to comment.