Skip to content

Instantly share code, notes, and snippets.

@mjdetullio
Forked from TonyAnhTran/oclint.rb
Created November 4, 2015 20:12
Show Gist options
  • Save mjdetullio/da7934c0465611f47ff5 to your computer and use it in GitHub Desktop.
Save mjdetullio/da7934c0465611f47ff5 to your computer and use it in GitHub Desktop.
require 'formula'
class Oclint < Formula
homepage 'http://oclint.org'
url 'http://archives.oclint.org/nightly/oclint-0.9.dev.d18b401-x86_64-darwin-14.5.0.tar.gz'
version '0.9.dev.d18b401'
sha1 '357182ca204e5740af2b6250911686a96fb8045a'
devel do
url 'http://archives.oclint.org/nightly/oclint-0.9.dev.d18b401-x86_64-darwin-14.5.0.tar.gz'
version '0.9.dev.d18b401'
sha1 '357182ca204e5740af2b6250911686a96fb8045a'
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