2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-14 16:31:54 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Global < Formula
|
2010-03-12 11:29:55 +00:00
|
|
|
homepage 'http://www.gnu.org/software/global/'
|
2014-03-31 19:03:00 +00:00
|
|
|
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'
|
2014-01-16 10:36:49 +00:00
|
|
|
|
2014-03-31 22:11:03 +00:00
|
|
|
bottle do
|
|
|
|
sha1 "81160b83cf9bee1e5b97c1c1e40b10f340798f15" => :mavericks
|
|
|
|
sha1 "9dfc3ad14ae419089375dd44c4c6e618d1672063" => :mountain_lion
|
|
|
|
sha1 "8a5bc30cfd1733ddff466f28bd293a60fa175162" => :lion
|
|
|
|
end
|
|
|
|
|
2014-02-18 22:49:02 +00:00
|
|
|
head do
|
|
|
|
url 'cvs://:pserver:anonymous:@cvs.savannah.gnu.org:/sources/global:global'
|
|
|
|
|
2014-06-02 02:38:17 +00:00
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "libtool" => :build
|
2014-01-16 10:36:49 +00:00
|
|
|
end
|
2009-09-14 16:31:54 +00:00
|
|
|
|
2012-12-19 11:19:27 +00:00
|
|
|
option 'with-exuberant-ctags', 'Enable Exuberant Ctags as a plug-in parser'
|
|
|
|
|
2014-01-16 10:37:43 +00:00
|
|
|
if build.with? 'exuberant-ctags'
|
2012-12-19 11:19:27 +00:00
|
|
|
depends_on 'ctags'
|
|
|
|
skip_clean 'lib/gtags/exuberant-ctags.la'
|
|
|
|
end
|
2012-05-31 18:45:28 +00:00
|
|
|
|
2009-09-14 16:31:54 +00:00
|
|
|
def install
|
2014-01-16 10:36:49 +00:00
|
|
|
system "sh", "reconf.sh" if build.head?
|
|
|
|
|
2012-12-19 11:19:27 +00:00
|
|
|
args = %W[
|
|
|
|
--disable-dependency-tracking
|
|
|
|
--prefix=#{prefix}
|
2014-02-20 20:37:38 +00:00
|
|
|
--sysconfdir=#{etc}
|
2012-12-19 11:19:27 +00:00
|
|
|
]
|
|
|
|
|
2014-01-16 10:37:43 +00:00
|
|
|
if build.with? 'exuberant-ctags'
|
2012-12-19 11:19:27 +00:00
|
|
|
args << "--with-exuberant-ctags=#{HOMEBREW_PREFIX}/bin/ctags"
|
|
|
|
end
|
|
|
|
|
|
|
|
system "./configure", *args
|
2009-09-14 16:31:54 +00:00
|
|
|
system "make install"
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2014-02-20 20:37:38 +00:00
|
|
|
etc.install 'gtags.conf'
|
|
|
|
|
2009-09-14 16:31:54 +00:00
|
|
|
# we copy these in already
|
2012-05-31 18:45:28 +00:00
|
|
|
cd share/'gtags' do
|
2010-04-07 05:58:35 +00:00
|
|
|
rm %w[README COPYING LICENSE INSTALL ChangeLog AUTHORS]
|
2010-02-17 14:10:26 +00:00
|
|
|
end
|
2009-09-14 16:31:54 +00:00
|
|
|
end
|
|
|
|
end
|