blob: 70995d054f40e8cb1eccbc3e1cbdb1c9dffadaa0 (
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
|
require 'formula'
class Global < Formula
homepage 'http://www.gnu.org/software/global/'
url 'http://ftpmirror.gnu.org/global/global-6.2.11.tar.gz'
mirror 'http://ftp.gnu.org/gnu/global/global-6.2.11.tar.gz'
sha1 'b0f50213680ec3288988354c34e3b3ae1a42719e'
head do
url 'cvs://:pserver:anonymous:@cvs.savannah.gnu.org:/sources/global:global'
depends_on :autoconf
depends_on :automake
depends_on :libtool
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
|