2013-08-29 12:09:08 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Xcproj < Formula
|
|
|
|
homepage 'https://github.com/0xced/xcproj'
|
2013-09-17 13:52:46 +00:00
|
|
|
url 'https://github.com/0xced/xcproj/archive/0.1.1.tar.gz'
|
|
|
|
sha1 '3cf2e286dda4d647e8031026145fb964d826f0a3'
|
2013-08-29 12:09:08 +00:00
|
|
|
|
|
|
|
head 'https://github.com/0xced/xcproj.git'
|
|
|
|
|
|
|
|
depends_on :macos => :mountain_lion
|
|
|
|
depends_on :xcode
|
|
|
|
|
|
|
|
def install
|
|
|
|
system 'xcodebuild', "-project", "xcproj.xcodeproj",
|
2013-09-17 13:52:46 +00:00
|
|
|
"-scheme", "xcproj",
|
2013-08-29 12:09:08 +00:00
|
|
|
"SYMROOT=build",
|
|
|
|
"DSTROOT=#{prefix}",
|
|
|
|
"INSTALL_PATH=/bin",
|
|
|
|
"-verbose",
|
|
|
|
"install"
|
|
|
|
end
|
|
|
|
|
|
|
|
def caveats
|
|
|
|
<<-EOS.undent
|
|
|
|
The xcproj binary is bound to the Xcode version that compiled it. If you delete, move or
|
|
|
|
rename the Xcode version that compiled the binary, xcproj will fail with the following error:
|
|
|
|
|
2013-09-17 13:52:46 +00:00
|
|
|
DVTFoundation.framework not found. It probably means that you have deleted, moved or
|
|
|
|
renamed the Xcode copy that compiled `xcproj`.
|
|
|
|
Simply recompiling `xcproj` should fix this problem.
|
2013-08-29 12:09:08 +00:00
|
|
|
|
|
|
|
In which case you will have to remove and rebuild the installed xcproj version.
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|