homebrew-core/Formula/licensor.rb

34 lines
1.7 KiB
Ruby

class Licensor < Formula
desc "Write licenses to stdout"
homepage "https://github.com/raftario/licensor"
url "https://github.com/raftario/licensor/archive/refs/tags/v2.1.0.tar.gz"
sha256 "d061ce9fd26d58b0c6ababa7acdaf35222a4407f0b5ea9c4b78f6835527611fd"
license "MIT"
head "https://github.com/raftario/licensor.git", branch: "master"
bottle do
rebuild 1
sha256 cellar: :any_skip_relocation, arm64_ventura: "f184aff71bc45ecea1244c55c2f7f01271ac80a46942a3e60f176d0e86ec36f0"
sha256 cellar: :any_skip_relocation, arm64_monterey: "9e6fbe393ce18e98a319aedae21997dce223fc2979deb761d97ce4437f77b7e0"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "7ad74bf60d659d3523554d44db1ab486d0eee708d13bea561afff99f167a6e46"
sha256 cellar: :any_skip_relocation, ventura: "b3f3ac98e20289e69e860ca0b4508c126dda52be3facc3810177cdaf2b82fff1"
sha256 cellar: :any_skip_relocation, monterey: "3603cf3a10496131f6cdff4987b18c336b9c7b34afec1e31d722d34a58aa9187"
sha256 cellar: :any_skip_relocation, big_sur: "167b3b40cc8af7b009ef8e9e61d886dd3bc356e3197c6672cf4d59edc0bbe6db"
sha256 cellar: :any_skip_relocation, catalina: "4c7e0923605a57a9e9855f0d3f30d695af99f87baf1eb5e216797ba7f9760845"
sha256 cellar: :any_skip_relocation, x86_64_linux: "7cd9933ef3863a349b7e364bcd9e135606d0b7468d2fe7402c3c688a8b3afd4c"
end
depends_on "rust" => :build
def install
system "cargo", "install", *std_cargo_args
end
test do
assert_match version.to_s, shell_output("#{bin}/licensor --version")
assert_match "MIT License", shell_output("#{bin}/licensor MIT")
assert_match "Bobby Tables", shell_output("#{bin}/licensor MIT 'Bobby Tables'")
end
end