25 lines
702 B
Ruby
25 lines
702 B
Ruby
class Fnlfmt < Formula
|
|
desc "Formatter for Fennel code"
|
|
homepage "https://git.sr.ht/~technomancy/fnlfmt"
|
|
url "https://git.sr.ht/~technomancy/fnlfmt/archive/0.2.3.tar.gz"
|
|
sha256 "0a7d7aaf4d88a81b6f13ed02fa88e74ed6c634ba50254de09eeb5a7777ae90d6"
|
|
license "LGPL-3.0-or-later"
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, all: "28781ba4b856d98bae1c75b51e9d164dbb1f91c569ea421e5a41586410c363d5"
|
|
end
|
|
|
|
depends_on "lua"
|
|
|
|
def install
|
|
system "make"
|
|
bin.install "fnlfmt"
|
|
end
|
|
|
|
test do
|
|
(testpath/"testfile.fnl").write("(fn [abc def] nil)")
|
|
expected = "(fn [abc def]\n nil)\n\n"
|
|
assert_equal expected, shell_output("#{bin}/fnlfmt #{testpath}/testfile.fnl")
|
|
end
|
|
end
|