2014-06-10 21:11:00 +00:00
|
|
|
require "formula"
|
2009-09-14 16:31:54 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Global < Formula
|
2014-06-10 21:11:00 +00:00
|
|
|
homepage "https://www.gnu.org/software/global/"
|
2014-09-06 15:25:38 +00:00
|
|
|
url "http://ftpmirror.gnu.org/global/global-6.3.2.tar.gz"
|
|
|
|
mirror "https://ftp.gnu.org/gnu/global/global-6.3.2.tar.gz"
|
|
|
|
sha1 "46b681a0ccb84c928a67f6901ca60227ad71b5bd"
|
2014-01-16 10:36:49 +00:00
|
|
|
|
2014-03-31 22:11:03 +00:00
|
|
|
bottle do
|
2014-09-06 15:31:17 +00:00
|
|
|
sha1 "1bce9bd552e38d9cc12eda4998233c20a33321e4" => :mavericks
|
|
|
|
sha1 "907a3a0180b4b4ea6ecc029b864a7ed4c8e1fa21" => :mountain_lion
|
|
|
|
sha1 "254d7f4444b1890b1195f35a6e1f43ed34dace7d" => :lion
|
2014-03-31 22:11:03 +00:00
|
|
|
end
|
|
|
|
|
2014-02-18 22:49:02 +00:00
|
|
|
head do
|
2014-06-10 21:11:00 +00:00
|
|
|
url "cvs://:pserver:anonymous:@cvs.savannah.gnu.org:/sources/global:global"
|
2014-02-18 22:49:02 +00:00
|
|
|
|
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
|
|
|
|
2014-06-10 21:11:00 +00:00
|
|
|
option "with-exuberant-ctags", "Enable Exuberant Ctags as a plug-in parser"
|
2012-12-19 11:19:27 +00:00
|
|
|
|
2014-06-10 21:11:00 +00:00
|
|
|
if build.with? "exuberant-ctags"
|
|
|
|
depends_on "ctags"
|
|
|
|
skip_clean "lib/gtags/exuberant-ctags.la"
|
2012-12-19 11:19:27 +00:00
|
|
|
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-06-10 21:11:00 +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-06-10 21:11:00 +00:00
|
|
|
etc.install "gtags.conf"
|
2014-02-20 20:37:38 +00:00
|
|
|
|
2009-09-14 16:31:54 +00:00
|
|
|
# we copy these in already
|
2014-06-10 21:11:00 +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
|