diff options
| author | yasuyk | 2012-12-19 20:19:27 +0900 |
|---|---|---|
| committer | Jack Nagel | 2012-12-22 16:37:37 -0600 |
| commit | 26de0429baa566d767deb65b72e31c43b0524e5e (patch) | |
| tree | 27adb283e8fa9b8494e2067323f76ec9ac01b7b2 /Library/Formula | |
| parent | f8b921d5c104dcd0162b4b395bbffe4740470e51 (diff) | |
| download | homebrew-26de0429baa566d767deb65b72e31c43b0524e5e.tar.bz2 | |
global: add option to enable exuberant ctags
GNU GLOBAL has a configure option of Exuberant Ctags. The option
enable Exuberant Ctags as a plug-in parser.
Closes #16651.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/global.rb | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/Library/Formula/global.rb b/Library/Formula/global.rb index 15aba1345..153e3bfa2 100644 --- a/Library/Formula/global.rb +++ b/Library/Formula/global.rb @@ -7,6 +7,12 @@ class Global < Formula sha1 '9c802a8fdc2d50e2a0780eb7033d5bad258c3f42' option "without-rebuilding-php-parser", "Don't rebuild PHP parser; use provied parser" + 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 def install # Rebuilding the PHP parser, see: @@ -15,8 +21,16 @@ class Global < Formula system "flex -o libparser/php.c libparser/php.l" end - system "./configure", "--disable-dependency-tracking", - "--prefix=#{prefix}" + 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 system "make install" # we copy these in already |
