homebrew-core/Formula/cobalt.rb

27 lines
844 B
Ruby

class Cobalt < Formula
desc "Static site generator written in Rust"
homepage "https://cobalt-org.github.io/"
url "https://github.com/cobalt-org/cobalt.rs/archive/v0.16.3.tar.gz"
sha256 "86316ab2d86e6f84e0665a6a78b632daf8a557824e1b8a2c0440f500c260e672"
license "MIT"
bottle do
cellar :any_skip_relocation
sha256 "05ca26b8e2ae6c7f10f6e52ad37027d8d3990092a37e78d3a2475bdda2fa51f7" => :catalina
sha256 "52b2a35136119708ec6598dbf8b964ca5cdc71bd955a04bbeda4a9dc45741e71" => :mojave
sha256 "5001ab4d12aed7498b3bd42cad67cc75c6e8aecdb6fcde205b0a7c989ce260eb" => :high_sierra
end
depends_on "rust" => :build
def install
system "cargo", "install", *std_cargo_args
end
test do
system bin/"cobalt", "init"
system bin/"cobalt", "build"
assert_predicate testpath/"_site/index.html", :exist?
end
end