From d0a9f564635a44c49fb1d37ed5484c07fb6bfcc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eloy=20Dur=C3=A1n?= Date: Thu, 29 Aug 2013 14:09:08 +0200 Subject: [PATCH] xcproj 0.1 Closes Homebrew/homebrew#22193. Signed-off-by: Adam Vandenberg --- Formula/xcproj.rb | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Formula/xcproj.rb diff --git a/Formula/xcproj.rb b/Formula/xcproj.rb new file mode 100644 index 0000000000..10dad36abd --- /dev/null +++ b/Formula/xcproj.rb @@ -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