Last active
October 13, 2016 08:18
-
-
Save zarghol/1c0b67a4c82681969e4d0f752ad49387 to your computer and use it in GitHub Desktop.
brew oclint 0.11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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