homebrew-core/Formula/appledoc.rb
Charlie Sharpsteen 1a42f893ab XCodeDependency: Things that call xcodebuild
Anything that calls `xcodebuild` needs a full install of XCode.app. Two
formulae ommitted from this patch:

  - `fuse4x_kext`: Everything that depends on the kernel extension can be
    compiled by the CLT. Therefore, this formula is bottled and XCode is only
    needed to produce the bottles.

  - `graphviz`: XCode is only used to create GraphViz.app which is not used by
    any of the things which depend on `graphviz`. Creating the app should be
    made into an option.
2012-08-24 19:38:04 -07:00

37 lines
1.1 KiB
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'
depends_on :xcode # For working xcodebuild.
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':
ln -sf "#{prefix}/Templates" "#{ENV['HOME']}/Library/Application Support/appledoc"
If you have edited the templates yourself, you should check for important changes.
NOTE someone should patch this tool so this caveat is unecessary.
EOS
end
def test
system "#{bin}/appledoc", "--version"
end
end