diff options
| author | Tim Shadel | 2011-07-21 13:19:51 -0600 |
|---|---|---|
| committer | Max Howell | 2012-02-28 18:58:34 +0000 |
| commit | 97ddd74698564c6a23118445c233f1dd69649700 (patch) | |
| tree | 929ffea82a329d72c0a8d456dfa5e0cc15c10bbf /Library/Formula | |
| parent | d272d75bb3a73924ffca51d30e285afeeff0916a (diff) | |
| download | homebrew-97ddd74698564c6a23118445c233f1dd69649700.tar.bz2 | |
appledoc: New formula
Create a basic install of the appledoc developer tool.
https://github.com/tomaz/appledoc/blob/master/Readme.markdown
Closes #9584.
Signed-off-by: Tim Shadel <github@timshadel.com>
Signed-off-by: Max Howell <max@methylblue.com>
I added a test and added to the caveats.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/appledoc.rb | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Library/Formula/appledoc.rb b/Library/Formula/appledoc.rb new file mode 100644 index 000000000..58ac706bc --- /dev/null +++ b/Library/Formula/appledoc.rb @@ -0,0 +1,30 @@ +require 'formula' + +class Appledoc < Formula + url "https://github.com/tomaz/appledoc/tarball/v2.0.5" + head 'https://github.com/tomaz/appledoc.git', :branch => 'master' + homepage 'http://appledoc.gentlebytes.com/' + md5 '142cf80513ca8eda2aba631483b2e4e6' + + def install + system "xcodebuild", "-project", "appledoc.xcodeproj", "-target", "appledoc", "-configuration", "Release", "install", "SYMROOT=build", "DSTROOT=build", "INSTALL_PATH=/bin" + bin.install "build/bin/appledoc" + prefix.install "Templates/" + end + + def caveats; <<-EOS +Make the documentation templates available to `appledoc': + + mkdir -p "#{ENV['HOME']}/Library/Application Support/appledoc" + ln -sf "#{prefix}/Templates" "~/Library/Application Support/appledoc" + +If you have edited the templates yourself, you should check for important changes. + +NOTE someone should patch this tool so thic caveat is unecessary. +EOS + end + + def test + system "appledoc --version" + end +end |
