Skip to content

Instantly share code, notes, and snippets.

@zarghol
Last active October 13, 2016 08:18
Show Gist options
  • Save zarghol/1c0b67a4c82681969e4d0f752ad49387 to your computer and use it in GitHub Desktop.
Save zarghol/1c0b67a4c82681969e4d0f752ad49387 to your computer and use it in GitHub Desktop.
brew oclint 0.11
require 'formula'
class Oclint < Formula
homepage 'http://oclint.org'
url 'https://github.com/oclint/oclint/releases/download/v0.10.3/oclint-0.10.3-x86_64-darwin-15.5.0.tar.gz'
version '0.10.3'
sha256 '533b4fdc82664a3d3dede3820fee664c71c3fba2bef4ba096a37ec9c5fc2dae5'
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