Last active
August 1, 2017 08:16
-
-
Save TonyAnhTran/f0a562d365f1d19287689c1d8f5dbfc6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
class Oclint < Formula | |
desc "OCLint static code analysis tool for C, C++, and Objective-C" | |
homepage "http://oclint.org" | |
version '0.11' | |
sha256 '804d7389d8631835fd4ceee845c5a6cc47062ffb10341ffcb421269c25182c0d' | |
url "https://github.com/oclint/oclint/releases/download/v#{version}/oclint-#{version}-x86_64-darwin-16.0.0.tar.gz" | |
head "https://github.com/oclint/oclint.git" | |
def install | |
clang_version = '3.9.0' | |
include.install Dir['include/c++'] unless File.directory? "#{include}/c++" | |
"#{include}/c++".install Dir['include/c++/v1'] unless File.directory? "#{include}/c++/v1" | |
lib.install Dir['lib/clang'] unless File.directory? "#{lib}/clang" | |
"#{lib}/clang".install Dir['lib/clang/#{clang_version}'] unless File.directory? "#{lib}/clang/#{clang_version}" | |
lib.install Dir['lib/oclint'] | |
bin.install Dir['bin/*'] | |
end | |
test do | |
system "#{bin}/oclint", "-version" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment