2018-03-29 09:09:07 +00:00
|
|
|
class Cquery < Formula
|
|
|
|
desc "C/C++ language server"
|
|
|
|
homepage "https://github.com/cquery-project/cquery"
|
|
|
|
# pull from git tag to get submodules
|
2018-09-08 10:32:31 +00:00
|
|
|
url "https://github.com/cquery-project/cquery.git",
|
|
|
|
:tag => "v20180718",
|
|
|
|
:revision => "b523aa928acf8ffb3de6b22c79db7366a9672489"
|
2018-03-29 09:09:07 +00:00
|
|
|
head "https://github.com/cquery-project/cquery.git"
|
|
|
|
|
2018-04-10 09:18:35 +00:00
|
|
|
bottle do
|
2018-08-21 16:01:57 +00:00
|
|
|
sha256 "e35aabf6a4b2b0ac21c59b6e6121aa3bc8cc623ca7fe1bd763dd6430d3339eae" => :mojave
|
2018-08-12 09:13:02 +00:00
|
|
|
sha256 "ee46fd2b279edc3b52df5ca9b84bdce404bb888f8a7d31e092b3fda33285a02b" => :high_sierra
|
|
|
|
sha256 "ac3ad5aada30ca31d70f36e6e3ba76d96aa0e235ccdd62259a086578fe182b44" => :sierra
|
2018-04-10 09:18:35 +00:00
|
|
|
end
|
|
|
|
|
2018-08-12 09:04:54 +00:00
|
|
|
depends_on "cmake" => :build
|
|
|
|
depends_on "llvm"
|
|
|
|
|
2018-09-17 09:06:00 +00:00
|
|
|
# error: 'shared_timed_mutex' is unavailable: introduced in macOS 10.12
|
|
|
|
depends_on :macos => :sierra
|
|
|
|
|
2018-08-12 09:04:54 +00:00
|
|
|
needs :cxx14
|
|
|
|
|
2018-03-29 09:09:07 +00:00
|
|
|
def install
|
2018-08-12 09:04:54 +00:00
|
|
|
system "cmake", ".", "-DSYSTEM_CLANG=ON", *std_cmake_args
|
|
|
|
system "make", "install"
|
2018-03-29 09:09:07 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system bin/"cquery", "--test-unit"
|
|
|
|
end
|
|
|
|
end
|