18 lines
596 B
Ruby
18 lines
596 B
Ruby
require 'formula'
|
|
|
|
class JsdocToolkit < Formula
|
|
desc "Generate documentation from JavaScript source code"
|
|
homepage 'http://code.google.com/p/jsdoc-toolkit/'
|
|
url 'https://jsdoc-toolkit.googlecode.com/files/jsdoc_toolkit-2.4.0.zip'
|
|
sha1 'bd276ec58dbd419326760226174eba09810d26ee'
|
|
|
|
conflicts_with 'jsdoc3', :because => 'both install jsdoc'
|
|
|
|
def install
|
|
system "/bin/echo '#!/bin/ksh\nJSDOCDIR=\"#{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
|