Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.