apidoc 0.29.0
Closes #82493. Signed-off-by: Rui Chen <rui@chenrui.dev> Signed-off-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>master
parent
3663577f16
commit
5f07577ab9
|
@ -3,8 +3,8 @@ require "language/node"
|
|||
class Apidoc < Formula
|
||||
desc "RESTful web API Documentation Generator"
|
||||
homepage "https://apidocjs.com"
|
||||
url "https://github.com/apidoc/apidoc/archive/0.28.1.tar.gz"
|
||||
sha256 "f4ed7813ce5e365c9457dfa9414c7750328965963cc9f1a9ef66baad66071677"
|
||||
url "https://github.com/apidoc/apidoc/archive/0.29.0.tar.gz"
|
||||
sha256 "e8dafeefbdc1699ccd65566f0d353c610f9847fbfd49483c1d4e6ed154a8c273"
|
||||
license "MIT"
|
||||
|
||||
bottle do
|
||||
|
@ -17,9 +17,23 @@ class Apidoc < Formula
|
|||
|
||||
depends_on "node"
|
||||
|
||||
on_macos do
|
||||
depends_on "macos-term-size"
|
||||
end
|
||||
|
||||
def install
|
||||
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
|
||||
bin.install_symlink Dir["#{libexec}/bin/*"]
|
||||
|
||||
term_size_vendor_dir = libexec/"lib/node_modules/#{name}/node_modules/term-size/vendor"
|
||||
term_size_vendor_dir.rmtree # remove pre-built binaries
|
||||
|
||||
on_macos do
|
||||
macos_dir = term_size_vendor_dir/"macos"
|
||||
macos_dir.mkpath
|
||||
# Replace the vendored pre-built term-size with one we build ourselves
|
||||
ln_sf (Formula["macos-term-size"].opt_bin/"term-size").relative_path_from(macos_dir), macos_dir
|
||||
end
|
||||
end
|
||||
|
||||
test do
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
[
|
||||
"apidoc",
|
||||
"ask-cli",
|
||||
"babel",
|
||||
"cdktf",
|
||||
|
|
Loading…
Reference in New Issue