mdbook 0.2.3 (new formula)

Closes #37444.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
Cameron Nemo 2019-02-28 14:12:41 -08:00 committed by FX Coudert
parent b4e8be2ffb
commit 25295fa228

17
Formula/mdbook.rb Normal file
View file

@ -0,0 +1,17 @@
class Mdbook < Formula
desc "Create modern online books from Markdown files"
homepage "https://rust-lang-nursery.github.io/mdBook"
url "https://github.com/rust-lang-nursery/mdBook/archive/v0.2.3.tar.gz"
sha256 "2e157d4f0437143caf65d9253f9084d8cc0fff7a9e42cff3641e8413e15688fa"
depends_on "rust" => :build
def install
system "cargo", "install", "--root", prefix, "--path", "."
end
test do
# simulate user input to mdbook init
system "sh", "-c", "printf \\n\\n | #{bin}/mdbook init"
system "#{bin}/mdbook", "build"
end
end