Skip to content

Instantly share code, notes, and snippets.

@juliengdt
Forked from TonyAnhTran/oclint.rb
Last active June 16, 2016 08:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juliengdt/5fd70ec4b571e15632421d5f6a2929c6 to your computer and use it in GitHub Desktop.
Save juliengdt/5fd70ec4b571e15632421d5f6a2929c6 to your computer and use it in GitHub Desktop.
require 'formula'
class Oclint < Formula
homepage 'http://oclint.org'
url 'https://github.com/oclint/oclint/releases/download/v0.10.2/oclint-0.10.2-x86_64-darwin-15.2.0.tar.gz'
version '0.10.2'
sha1 '4b61f83ccd55eeaa968ca5ee159e2528b4fbfeb5'
devel do
url 'https://github.com/oclint/oclint/releases/download/v0.10.2/oclint-0.10.2-x86_64-darwin-15.2.0.tar.gz'
version '0.10.2'
sha1 '4b61f83ccd55eeaa968ca5ee159e2528b4fbfeb5'
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