aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorEloy DurĂ¡n2013-08-29 14:09:08 +0200
committerAdam Vandenberg2013-08-30 10:14:45 -0700
commit530dbb0633e464fb67b73949c66d04c68cc71103 (patch)
tree497e1d749826f742edee7de398c5fdac4f81fdc5 /Library/Formula
parentd1db54e780905fa6dc884df31aafbbb4cfb34ddd (diff)
downloadhomebrew-530dbb0633e464fb67b73949c66d04c68cc71103.tar.bz2
xcproj 0.1
Closes #22193. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/xcproj.rb33
1 files changed, 33 insertions, 0 deletions
diff --git a/Library/Formula/xcproj.rb b/Library/Formula/xcproj.rb
new file mode 100644
index 000000000..10dad36ab
--- /dev/null
+++ b/Library/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