blob: 00a40deaaa53f9030feace283881ca926f827078 (
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 'http://www.gnu.org/software/global/'
url 'http://ftpmirror.gnu.org/global/global-6.2.12.tar.gz'
mirror 'http://ftp.gnu.org/gnu/global/global-6.2.12.tar.gz'
sha1 '1fc0948ee76185d38733750567a2bdb6b9b07304'
bottle do
sha1 "81160b83cf9bee1e5b97c1c1e40b10f340798f15" => :mavericks
sha1 "9dfc3ad14ae419089375dd44c4c6e618d1672063" => :mountain_lion
sha1 "8a5bc30cfd1733ddff466f28bd293a60fa175162" => :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
|