aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/appledoc.rb30
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