2011-07-21 19:19:51 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Appledoc < Formula
|
2012-09-01 19:42:00 +00:00
|
|
|
homepage 'http://appledoc.gentlebytes.com/'
|
2014-03-24 15:57:36 +00:00
|
|
|
url "https://github.com/tomaz/appledoc/archive/v2.2-963.tar.gz"
|
|
|
|
sha1 '8491dc9ae8fa6bc69da9dcedca601529af3bf4e6'
|
|
|
|
version '2.2-963'
|
2012-09-01 19:42:00 +00:00
|
|
|
|
2011-07-21 19:19:51 +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
|
2012-08-24 20:40:24 +00:00
|
|
|
|
2014-03-26 17:00:30 +00:00
|
|
|
# Actually works with pre-503 clang, but we don't have a way to
|
|
|
|
# express this yet.
|
|
|
|
# clang 5.1 (build 503) removed support for Objective C GC, and
|
|
|
|
# there is no stable version of Appledoc with support for ARC yet.
|
|
|
|
# It's actually possible to build with GC disabled, but not advisable.
|
|
|
|
# See: https://github.com/tomaz/appledoc/issues/439
|
|
|
|
fails_with :clang
|
|
|
|
|
2011-07-21 19:19:51 +00:00
|
|
|
def install
|
2014-02-28 03:47:38 +00:00
|
|
|
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\"'"
|
2011-07-21 19:19:51 +00:00
|
|
|
bin.install "build/bin/appledoc"
|
|
|
|
prefix.install "Templates/"
|
|
|
|
end
|
|
|
|
|
2014-02-23 21:31:41 +00:00
|
|
|
test do
|
2012-05-15 21:36:45 +00:00
|
|
|
system "#{bin}/appledoc", "--version"
|
2011-07-21 19:19:51 +00:00
|
|
|
end
|
|
|
|
end
|