2010-07-11 15:20:39 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class JsdocToolkit < Formula
|
2010-07-11 15:20:39 +00:00
|
|
|
url 'http://jsdoc-toolkit.googlecode.com/files/jsdoc_toolkit-2.3.2.zip'
|
2010-08-21 19:01:45 +00:00
|
|
|
homepage 'http://code.google.com/p/jsdoc-toolkit/'
|
2010-07-11 15:20:39 +00:00
|
|
|
sha1 'd8c3977cee202c06a9d6a85b2b9b068d21309fad'
|
|
|
|
|
|
|
|
def install
|
2010-08-08 17:20:15 +00:00
|
|
|
system "/bin/echo '#!/bin/ksh\nJSDOCDIR=\"#{libexec}/jsdoc-toolkit\"' > jsdoc"
|
2010-07-11 15:20:39 +00:00
|
|
|
system "/usr/bin/grep -v \"^echo \\$CMD$\" jsdoc-toolkit/jsrun.sh >> jsdoc"
|
|
|
|
|
|
|
|
bin.install 'jsdoc'
|
|
|
|
libexec.install 'jsdoc-toolkit'
|
|
|
|
end
|
|
|
|
end
|