From 97ddd74698564c6a23118445c233f1dd69649700 Mon Sep 17 00:00:00 2001 From: Tim Shadel Date: Thu, 21 Jul 2011 13:19:51 -0600 Subject: 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 Signed-off-by: Max Howell I added a test and added to the caveats.--- Library/Formula/appledoc.rb | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Library/Formula/appledoc.rb (limited to 'Library/Formula') 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 -- cgit v1.2.3