Last active
July 31, 2017 08:54
-
-
Save TonyAnhTran/e1522b93853c5a456b74 to your computer and use it in GitHub Desktop.
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
class Oclint < Formula | |
desc "OCLint static code analysis tool for C, C++, and Objective-C" | |
homepage "http://oclint.org" | |
version '0.11.1' | |
sha256 'fd2a0ca67392ca14a57b9f2bebbcaecd7406b3266fe5c95a691d96e77c073054' | |
url "https://github.com/oclint/oclint/releases/download/v#{version}/oclint-#{version}-x86_64-darwin-16.3.0.tar.gz" | |
head "https://github.com/oclint/oclint.git" | |
def install | |
clang_version = '3.9.1' | |
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