37 lines
1.5 KiB
Ruby
37 lines
1.5 KiB
Ruby
require "language/node"
|
|
|
|
class Pulp < Formula
|
|
desc "Build tool for PureScript projects"
|
|
homepage "https://github.com/bodil/pulp"
|
|
url "https://registry.npmjs.org/pulp/-/pulp-15.0.0.tgz"
|
|
sha256 "695da1581389d060810ed1a5962ab7e53696db8493b224fa7dc2358f255b8b53"
|
|
license "LGPL-3.0"
|
|
|
|
bottle do
|
|
rebuild 1
|
|
sha256 cellar: :any_skip_relocation, arm64_big_sur: "c1af57db46fff3fda1d1a204871508fa8c05c10a0118f85c368a14b1906b78eb"
|
|
sha256 cellar: :any_skip_relocation, big_sur: "49a599ab8add4444e90892ea7975bafbf1012e23f3d592c8eee3c8476b933c96"
|
|
sha256 cellar: :any_skip_relocation, catalina: "b8171d3e267d32cb7c785ee72fb8a1dbe96d7a66a7d5311a23b314a0e742156c"
|
|
sha256 cellar: :any_skip_relocation, mojave: "9ee409ce24c46c02db3dade7b2942d8990708de840e03e0a80d5f2498a9bc46e"
|
|
sha256 cellar: :any_skip_relocation, high_sierra: "56016abc98b66356ad0d58c0ea951de4da772abca1f12fd2c3635a7700e36c63"
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "2b02cc93f59472332421da9110cc4723b7550b131feb88cc53b0b0bae69553d2"
|
|
end
|
|
|
|
depends_on "bower"
|
|
depends_on "node"
|
|
depends_on "purescript"
|
|
|
|
def install
|
|
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
|
|
bin.install_symlink Dir["#{libexec}/bin/*"]
|
|
end
|
|
|
|
test do
|
|
assert_match version.to_s, shell_output("#{bin}/pulp --version")
|
|
|
|
system("#{bin}/pulp", "init")
|
|
assert_predicate testpath/".gitignore", :exist?
|
|
assert_predicate testpath/"bower.json", :exist?
|
|
end
|
|
end
|