blob: f8f0bcb361f27d6b7f2d74150df4b11ed5eb4513 (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
  | 
require "formula"
class Global < Formula
  homepage "https://www.gnu.org/software/global/"
  url "http://ftpmirror.gnu.org/global/global-6.3.tar.gz"
  mirror "https://ftp.gnu.org/gnu/global/global-6.3.tar.gz"
  sha1 "01180de13918a29d4af62ed9c86dbe84ed16f550"
  bottle do
    sha1 "e004212ac52962c8d8b5164cbc6c46fcc47f3557" => :mavericks
    sha1 "d7d3b6896bcbb41dc45046e960352c60d4c63b99" => :mountain_lion
    sha1 "9838c4345cda516d7de7212322b91eb08e821c45" => :lion
  end
  head do
    url "cvs://:pserver:anonymous:@cvs.savannah.gnu.org:/sources/global:global"
    depends_on "autoconf" => :build
    depends_on "automake" => :build
    depends_on "libtool" => :build
  end
  option "with-exuberant-ctags", "Enable Exuberant Ctags as a plug-in parser"
  if build.with? "exuberant-ctags"
    depends_on "ctags"
    skip_clean "lib/gtags/exuberant-ctags.la"
  end
  def install
    system "sh", "reconf.sh" if build.head?
    args = %W[
      --disable-dependency-tracking
      --prefix=#{prefix}
      --sysconfdir=#{etc}
    ]
    if build.with? "exuberant-ctags"
      args << "--with-exuberant-ctags=#{HOMEBREW_PREFIX}/bin/ctags"
    end
    system "./configure", *args
    system "make install"
    etc.install "gtags.conf"
    # we copy these in already
    cd share/"gtags" do
      rm %w[README COPYING LICENSE INSTALL ChangeLog AUTHORS]
    end
  end
end
  |