How to install GNU Global with universal ctags support using Homebrew?

According to GNU Global Documentation

# Installation of GLOBAL
# It assumed that ctags command is installed in '/usr/local/bin'.

$ ./configure --with-universal-ctags=/usr/local/bin/ctags
$ make
$ sudo make install

I need to set GNU Globalwith a flag --with-universal-ctags=/usr/local/bin/ctagsto support universal ctags.

A typical installation GNU Globalis done using (according to this source )

# normal installation
brew install global

and since brew formulas are ruby ​​form scripts (according to brew )

#Example with Wget
class Wget < Formula
  homepage "https://www.gnu.org/software/wget/"
  url "https://ftp.gnu.org/gnu/wget/wget-1.15.tar.gz"
  sha256 "52126be8cf1bddd7536886e74c053ad7d0ed2aa89b4b630f76785bac21695fcd"

  def install
    system "./configure", "--prefix=#{prefix}"
    system "make", "install"
  end
end

Should I just do

# It assumed that ctags command is installed in '/usr/local/bin'.
brew install global --with-universal-ctags=/usr/local/bin/ctags

install global support for universal-ctags?

Note. A typical WAN installation looks like exuberant-ctagsa dependency

+4
source share

Source: https://habr.com/ru/post/1671764/


All Articles