forked from lotia/homebrew-versions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appledoc20.rb
28 lines (24 loc) · 833 Bytes
/
appledoc20.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
require 'formula'
# The 2.1 series requires Lion or newer.
# 2.0.6 is provided for Snow Leopard compatibility.
class Appledoc20 < Formula
homepage 'http://appledoc.gentlebytes.com/'
url 'https://github.com/tomaz/appledoc/archive/v2.0.6.tar.gz'
sha1 '3d76172339cbfea24ef53f55e2452cc78930413e'
depends_on :xcode
def install
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
test do
system "#{bin}/appledoc", "--version"
end
end