blob: 1b2d1a9945ecf89b37fe19950333847058ee9980 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
 | 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
 |