]>
Commit | Line | Data |
---|---|---|
8c0224ed RBR |
1 | class Page < Formula |
2 | desc "A static website generator for exactly 1 use case." | |
1f27122e | 3 | homepage "https://r.bdr.sh/page.html" |
c29d860f | 4 | url "https://git.sr.ht/~rbdr/page", tag: "1.3.2" |
1f27122e | 5 | license "AGPL-3.0-or-later" |
2f92c0b7 | 6 | head "https://git.sr.ht/~rbdr/page", branch: "main" |
c29d860f | 7 | version "1.3.2" |
8c0224ed | 8 | |
8c0224ed RBR |
9 | depends_on "rust" => :build |
10 | ||
11 | def install | |
12 | system "cargo", "install", *std_cargo_args | |
13 | end | |
14 | ||
15 | test do | |
16 | (testpath/"_layout.html").write("{{ content }}") | |
17 | system "#{bin}/page" | |
18 | end | |
19 | end |