Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
ctags: Remove conflict with emacs and add caveat
Browse files Browse the repository at this point in the history
Closes #16841.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
  • Loading branch information
Peter Aronoff authored and klausmeyer committed Jan 10, 2013
1 parent c80b52d commit 799e8e6
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions Library/Formula/ctags.rb
Expand Up @@ -7,9 +7,6 @@ class Ctags < Formula


head 'https://ctags.svn.sourceforge.net/svnroot/ctags/trunk' head 'https://ctags.svn.sourceforge.net/svnroot/ctags/trunk'


conflicts_with 'emacs',
:because => 'Both ctags and emacs install a `ctags` executable.'

depends_on :autoconf => :build if build.head? depends_on :autoconf => :build if build.head?


def patches def patches
Expand All @@ -28,4 +25,18 @@ def install
"--with-readlib" "--with-readlib"
system "make install" system "make install"
end end

def caveats
<<-EOS.undent
Under some circumstances, emacs and ctags can conflict. By default,
emacs provides an executable `ctags` that would conflict with the
executable of the same name that ctags provides. To prevent this,
Homebrew removes the emacs `ctags` and its manpage before linking.
However, if you install emacs with the `--keep-ctags` option, then
the `ctags` emacs provides will not be removed. In that case, you
won't be able to install ctags successfully. It will build but not
link.
EOS
end
end end

0 comments on commit 799e8e6

Please sign in to comment.