homebrew-core/Formula/appledoc.rb
Tim Shadel 719dd432c3 appledoc: New formula
Create a basic install of the appledoc developer tool.
https://github.com/tomaz/appledoc/blob/master/Readme.markdown

Closes Homebrew/homebrew#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.
2012-02-28 18:58:34 +00:00

30 lines
960 B
Ruby

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