diff options
| author | Kamil Trzcinski | 2014-10-14 14:24:47 +0200 |
|---|---|---|
| committer | Mike McQuaid | 2014-10-14 18:59:34 +0100 |
| commit | c2e98a884c72c7e0fc3bf9a717f1fcaa348e5024 (patch) | |
| tree | fe8dd47c8f3662039ccaf84acc734142aa4ced48 | |
| parent | 5267e2875a0528b28e1a8efb5205f3292f172c63 (diff) | |
| download | homebrew-c2e98a884c72c7e0fc3bf9a717f1fcaa348e5024.tar.bz2 | |
iso-class-guard 0.6 (new formula)
| -rw-r--r-- | Library/Formula/ios-class-guard.rb | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Library/Formula/ios-class-guard.rb b/Library/Formula/ios-class-guard.rb new file mode 100644 index 000000000..2fecbb400 --- /dev/null +++ b/Library/Formula/ios-class-guard.rb @@ -0,0 +1,29 @@ +require "formula" + +class IosClassGuard < Formula + homepage "https://github.com/Polidea/ios-class-guard/" + head "https://github.com/Polidea/ios-class-guard.git" + url "https://github.com/Polidea/ios-class-guard/archive/0.6.tar.gz" + sha1 "6b16fcb8ba55354180de7460d3ea1ae3cc4830ac" + + depends_on :macos => :mavericks + depends_on :xcode => :build + + def install + xcodebuild "-workspace", "ios-class-guard.xcworkspace", "-scheme", "ios-class-guard", "-configuration", "Release", "SYMROOT=build", "PREFIX=#{prefix}", "ONLY_ACTIVE_ARCH=YES" + bin.install "build/Release/ios-class-guard" + end + + test do + (testpath/"crashdump").write <<-EOS.undent + 1 MYAPP 0x0006573a -[C03B setR02:] + 42 + EOS + (testpath/"symbols.json").write <<-EOS.undent + { + "C03B" : "MyViewController", + "setR02" : "setRightButtons" + } + EOS + system "#{bin}/ios-class-guard", "-c", "crashdump", "-m", "symbols.json" + end +end |
