homebrew-core/Formula/appledoc.rb

30 lines
915 B
Ruby
Raw Normal View History

require 'formula'
class Appledoc < Formula
2012-09-01 19:42:00 +00:00
homepage 'http://appledoc.gentlebytes.com/'
url "https://github.com/tomaz/appledoc/archive/v2.2.tar.gz"
sha1 '4ad475ee6bdc2e34d6053c4e384aad1781349f5e'
2012-09-01 19:42:00 +00:00
head 'https://github.com/tomaz/appledoc.git', :branch => 'master'
2013-07-12 16:02:28 +00:00
depends_on :xcode
2013-06-14 19:09:06 +00:00
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