mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-12-02 21:49:49 -05:00
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 <github@timshadel.com> Signed-off-by: Max Howell <max@methylblue.com> I added a test and added to the caveats.
This commit is contained in:
1 parent
d272d75bb3
commit
97ddd74698
1 file changed
+30
@@ -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
|
||||
Reference in new issue
Block a user