homebrew-core/Formula/codequery.rb

37 lines
1.0 KiB
Ruby

require "formula"
class Codequery < Formula
homepage "https://github.com/ruben2020/codequery"
url "https://github.com/ruben2020/codequery/archive/v0.15a.tar.gz"
sha1 "89907121bd562b27e748c38129f40f122c538533"
head "https://github.com/ruben2020/codequery.git"
version "0.15a"
bottle do
cellar :any
sha1 "a9bf2cb776cfeb79b4b13f18fcd34f9e2033545e" => :mavericks
sha1 "736902fbf7aa648b4d06136cb02c56f968ed7aa9" => :mountain_lion
sha1 "4d25e90e1258b94a32273424d95501ba921dc685" => :lion
end
depends_on "cmake" => :build
depends_on "qt"
depends_on "qscintilla2"
def install
share.install "test"
mkdir "build" do
system "cmake", "..", "-G", "Unix Makefiles", *std_cmake_args
system "make"
system "make", "install"
end
end
test do
cd share+"test" do
system "#{bin}/cqmakedb", "-s", "./codequery.db", "-c", "./cscope.out", "-t", "./tags", "-p"
assert_match "info_platform", `#{bin}/cqsearch -s ./codequery.db -t 'info_platform'`
end
end
end