homebrew-core/Formula/appledoc.rb
Brett Koonce 4b16e98f68 appledoc v2.2
Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2013-08-16 23:25:25 -07:00

29 lines
915 B
Ruby

require 'formula'
class Appledoc < Formula
homepage 'http://appledoc.gentlebytes.com/'
url "https://github.com/tomaz/appledoc/archive/v2.2.tar.gz"
sha1 'b427506bdefc97b224fd0f873ff87b8d11ce4aec'
head 'https://github.com/tomaz/appledoc.git', :branch => 'master'
depends_on :xcode
depends_on :macos => :lion
def install
system "xcodebuild", "-project", "appledoc.xcodeproj",
"-target", "appledoc",
"-configuration", "Release",
"clean", "install",
"SYMROOT=build",
"DSTROOT=build",
"INSTALL_PATH=/bin",
"OTHER_CFLAGS='-DCOMPILE_TIME_DEFAULT_TEMPLATE_PATH=@\"#{prefix}/Templates\"'"
bin.install "build/bin/appledoc"
prefix.install "Templates/"
end
def test
system "#{bin}/appledoc", "--version"
end
end