From b6a9ffb65e755ac477968f78619745e15f0a3639 Mon Sep 17 00:00:00 2001 From: Jay Zeschin Date: Sun, 27 Apr 2014 18:02:07 -0600 Subject: objc-codegenutils 1.0 Closes #28784. Signed-off-by: Adam Vandenberg --- Library/Formula/objc-codegenutils.rb | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Library/Formula/objc-codegenutils.rb (limited to 'Library/Formula/objc-codegenutils.rb') diff --git a/Library/Formula/objc-codegenutils.rb b/Library/Formula/objc-codegenutils.rb new file mode 100644 index 000000000..c8ca85124 --- /dev/null +++ b/Library/Formula/objc-codegenutils.rb @@ -0,0 +1,26 @@ +require "formula" + +class ObjcCodegenutils < Formula + homepage "https://github.com/square/objc-codegenutils" + url "https://github.com/square/objc-codegenutils/archive/v1.0.tar.gz" + sha1 "ed22e553e3b0f5aaa445d912af287714aeb09f7b" + + depends_on :xcode + depends_on :macos => :mountain_lion + + def install + xcodebuild "-project", "codegenutils.xcodeproj", "-target", "assetgen", "-configuration", "Release","SYMROOT=build", "OBJROOT=build" + bin.install "build/Release/objc-assetgen" + xcodebuild "-target", "colordump", "-configuration", "Release","SYMROOT=build", "OBJROOT=build" + bin.install "build/Release/objc-colordump" + xcodebuild "-target", "identifierconstants", "-configuration", "Release","SYMROOT=build", "OBJROOT=build" + bin.install "build/Release/objc-identifierconstants" + end + + test do + # Would do more verification here but it would require fixture Xcode projects not in the main repo + system "#{bin}/objc-assetgen", "-h" + system "#{bin}/objc-colordump", "-h" + system "#{bin}/objc-identifierconstants", "-h" + end +end -- cgit v1.2.3