diff options
| author | Jay Zeschin | 2014-04-27 18:02:07 -0600 |
|---|---|---|
| committer | Adam Vandenberg | 2014-05-12 21:05:21 -0700 |
| commit | b6a9ffb65e755ac477968f78619745e15f0a3639 (patch) | |
| tree | 9b78ef6aeae192868f51c74e659ee79563ab5674 | |
| parent | fad223bd9b81613eebc8631574a04a2545a073e1 (diff) | |
| download | homebrew-b6a9ffb65e755ac477968f78619745e15f0a3639.tar.bz2 | |
objc-codegenutils 1.0
Closes #28784.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
| -rw-r--r-- | Library/Formula/objc-codegenutils.rb | 26 |
1 files changed, 26 insertions, 0 deletions
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 |
