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/'
|
2013-03-01 07:50:16 +00:00
|
|
|
url 'http://ftpmirror.gnu.org/global/global-6.2.8.tar.gz'
|
|
|
|
mirror 'http://ftp.gnu.org/gnu/global/global-6.2.8.tar.gz'
|
|
|
|
sha1 '2adabb332ecf31f0f7c951c3a6d260503a37c9ec'
|
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'
|
|
|
|
|
|
|
|
if build.include? 'with-exuberant-ctags'
|
|
|
|
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
|
2012-12-19 11:19:27 +00:00
|
|
|
args = %W[
|
|
|
|
--disable-dependency-tracking
|
|
|
|
--prefix=#{prefix}
|
|
|
|
]
|
|
|
|
|
|
|
|
if build.include? 'with-exuberant-ctags'
|
|
|
|
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
|
|
|
|
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
|