Skip to content

Commit

Permalink
gutenberg: rename to zola
Browse files Browse the repository at this point in the history
Closes #34283.

Signed-off-by: Jan Viljanen <[email protected]>
  • Loading branch information
Igor Kapkov authored and javian committed Nov 25, 2018
1 parent e77469b commit 088efc4
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 45 deletions.
45 changes: 0 additions & 45 deletions Formula/gutenberg.rb

This file was deleted.

37 changes: 37 additions & 0 deletions Formula/zola.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
class Zola < Formula
desc "Fast static site generator in a single binary with everything built-in"
homepage "https://www.getzola.org/"
url "https://github.com/getzola/zola/archive/v0.5.0.tar.gz"
sha256 "718aaec6e0db6c0e6fb310d8a1ef3978f41a173e39b1c2515ca7365690b09cff"

depends_on "cmake" => :build
depends_on "rust" => :build

def install
system "cargo", "install", "--root", prefix, "--path", "."

bash_completion.install "completions/zola.bash"
zsh_completion.install "completions/_zola"
fish_completion.install "completions/zola.fish"
end

test do
system "yes '' | #{bin}/zola init mysite"
(testpath/"mysite/content/blog/index.md").write <<~EOS
+++
+++
Hi I'm Homebrew.
EOS
(testpath/"mysite/templates/page.html").write <<~EOS
{{ page.content | safe }}
EOS

cd testpath/"mysite" do
system bin/"zola", "build"
end

assert_equal "<p>Hi I'm Homebrew.</p>",
(testpath/"mysite/public/blog/index.html").read.strip
end
end
1 change: 1 addition & 0 deletions formula_renames.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
"gstreamer010": "[email protected]",
"gtef": "tepl",
"gtksourceview@4": "gtksourceview4",
"gutenberg": "zola",
"hamsterdb": "upscaledb",
"heroku-toolbelt": "heroku",
"htop-osx": "htop",
Expand Down

0 comments on commit 088efc4

Please sign in to comment.