mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-28 03:49:49 -05:00
Add a formula for the Jsdoc Toolkit, an application for automatically generating template-formatted, multi-page HTML documentation from commented Javascript source code. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
16 lines
479 B
Ruby
16 lines
479 B
Ruby
require 'formula'
|
|
|
|
class JsdocToolkit <Formula
|
|
url 'http://jsdoc-toolkit.googlecode.com/files/jsdoc_toolkit-2.3.2.zip'
|
|
homepage 'http://code.google.com/p/jsdoc-toolkit'
|
|
sha1 'd8c3977cee202c06a9d6a85b2b9b068d21309fad'
|
|
|
|
def install
|
|
system "/bin/echo '#!/bin/ksh\nJSDOCDIR=\"#{prefix}/libexec/jsdoc-toolkit\"' > jsdoc"
|
|
system "/usr/bin/grep -v \"^echo \\$CMD$\" jsdoc-toolkit/jsrun.sh >> jsdoc"
|
|
|
|
bin.install 'jsdoc'
|
|
libexec.install 'jsdoc-toolkit'
|
|
end
|
|
end
|