Skip to content

Instantly share code, notes, and snippets.

@royingantaginting
Last active November 13, 2015 09:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save royingantaginting/c99defb583ce0f329264 to your computer and use it in GitHub Desktop.
Save royingantaginting/c99defb583ce0f329264 to your computer and use it in GitHub Desktop.
Brew formula to install oclint version 0.8.1 or 0.9.dev.02251e4
require 'formula'
class Oclint < Formula
homepage 'http://oclint.org'
url 'http://archives.oclint.org/releases/0.8/oclint-0.8.1-x86_64-darwin-14.0.0.tar.gz'
version '0.8.1'
sha1 'c96d712c5b73e04eebb57c3a97dec2b4ecbb9ed4'
devel do
url 'http://archives.oclint.org/nightly/oclint-0.9.dev.02251e4-x86_64-darwin-14.0.0.tar.gz'
version '0.9.dev.02251e4'
sha1 '7f6d69c8d92d5f545bf158f8f1d4e8f3529784e9'
end
def install
lib.install Dir['lib/clang']
lib.install Dir['lib/oclint']
bin.install Dir['bin/*']
end
def test
system "echo \"int main() { return 0; }\" > #{prefix}/test.m"
system "#{bin}/oclint #{prefix}/test.m -- -c"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment