2011-07-21 19:19:51 +00:00
|
|
|
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
|
2012-05-15 21:15:46 +00:00
|
|
|
system "xcodebuild", "-project", "appledoc.xcodeproj",
|
|
|
|
"-target", "appledoc",
|
|
|
|
"-configuration", "Release",
|
|
|
|
"install",
|
|
|
|
"SYMROOT=build",
|
|
|
|
"DSTROOT=build",
|
|
|
|
"INSTALL_PATH=/bin"
|
2011-07-21 19:19:51 +00:00
|
|
|
bin.install "build/bin/appledoc"
|
|
|
|
prefix.install "Templates/"
|
|
|
|
end
|
|
|
|
|
|
|
|
def caveats; <<-EOS
|
|
|
|
Make the documentation templates available to `appledoc':
|
|
|
|
|
2012-03-22 10:44:49 +00:00
|
|
|
ln -sf "#{prefix}/Templates" "#{ENV['HOME']}/Library/Application Support/appledoc"
|
2011-07-21 19:19:51 +00:00
|
|
|
|
|
|
|
If you have edited the templates yourself, you should check for important changes.
|
|
|
|
|
2012-03-22 10:44:49 +00:00
|
|
|
NOTE someone should patch this tool so this caveat is unecessary.
|
2011-07-21 19:19:51 +00:00
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
|
|
|
def test
|
2012-05-15 21:36:45 +00:00
|
|
|
system "#{bin}/appledoc", "--version"
|
2011-07-21 19:19:51 +00:00
|
|
|
end
|
|
|
|
end
|