Skip to content

Commit

Permalink
xcproj 0.1
Browse files Browse the repository at this point in the history
Closes Homebrew#22193.

Signed-off-by: Adam Vandenberg <[email protected]>
  • Loading branch information
alloy authored and adamv committed Aug 30, 2013
1 parent d1db54e commit 530dbb0
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions Library/Formula/xcproj.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
require 'formula'

class Xcproj < Formula
homepage 'https://github.com/0xced/xcproj'
url 'https://github.com/0xced/xcproj/archive/0.1.tar.gz'
sha1 '760bba88a25f9aaae2cda299e628490bfe367ad9'

head 'https://github.com/0xced/xcproj.git'

depends_on :macos => :mountain_lion
depends_on :xcode

def install
system 'xcodebuild', "-project", "xcproj.xcodeproj",
"-target", "xcproj",
"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:
The DevToolsCore framework failed to load: DevToolsCore.framework not found
In which case you will have to remove and rebuild the installed xcproj version.
EOS
end
end

0 comments on commit 530dbb0

Please sign in to comment.