homebrew-core/Formula/objc-codegenutils.rb
Jay Zeschin dfe9893c61 objc-codegenutils 1.0
Closes Homebrew/homebrew#28784.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-05-12 21:05:21 -07:00

26 lines
1 KiB
Ruby

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