homebrew-core/Formula/appledoc.rb
Tim Shadel 06379ef785 Appledoc 2.0.6
Compile-in default template location

Allows most folks to avoid linking to the Templates, but still
allows them to override the default templates in any documented
manner.

Closes Homebrew/homebrew#14693.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-09-04 07:52:45 -07:00

28 lines
907 B
Ruby

require 'formula'
class Appledoc < Formula
homepage 'http://appledoc.gentlebytes.com/'
url "https://github.com/tomaz/appledoc/tarball/v2.0.6"
sha1 '8e9030425aad78db16b79841568b26a6c085d255'
head 'https://github.com/tomaz/appledoc.git', :branch => 'master'
depends_on :xcode # For working xcodebuild.
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