diff options
| author | Drew Hess | 2010-09-30 19:44:40 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-11-07 08:32:46 -0800 |
| commit | 31952113626c3aab63e1771cbaff6818700f4cbb (patch) | |
| tree | d39282ed79aac86e0012673af4e789137c13f7af /Library/Formula | |
| parent | e4e3319cd0ffd158cdc00b132ee9844dcb19b4f3 (diff) | |
| download | homebrew-31952113626c3aab63e1771cbaff6818700f4cbb.tar.bz2 | |
Emacs - Install info files to separate folder
By default, Emacs installs its info files in /usr/local/share/info.
This works fine until you try to install an updated version of an
elisp package that is bundled with Emacs (e.g., org-mode), at which
point the updated package will overwrite the info file that came
bundled with Emacs. This is not ideal, but it works, since Emacs will
see the updated info file -- that is, until you decide to uninstall
the elisp package (removing the info file for the package altogether),
or you rebuild Emacs (overwriting the new package's info file with the
stale one that comes bundled with Emacs).
This patch makes the Emacs formula install Emacs's info files
in #{prefix}/share/info/emacs, so that updated elisp packages' info
files will not conflict with Emacs's. Then it's just a simple matter
of setting Info-directory-list in your .emacs file so that Emacs will
find the updated info file.
This method mimics the Debian behavior for Emacs info directories.
Note that Emacs will look for info files in the configured --infodir
by default, so there's no need for a caveat re: the INFOPATH
environment variable.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/emacs.rb | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/Library/Formula/emacs.rb b/Library/Formula/emacs.rb index f037992f3..f399b6fab 100644 --- a/Library/Formula/emacs.rb +++ b/Library/Formula/emacs.rb @@ -39,9 +39,6 @@ class Emacs <Formula end s += <<-EOS.undent - To access texinfo documentation, set your INFOPATH to: - #{info} - The initial checkout of the bazaar Emacs repository might take a long time. You might find that using the repo.or.cz git mirror is faster, even after the initial checkout. To use the repo.or.cz git mirror for @@ -60,11 +57,10 @@ class Emacs <Formula def install fails_with_llvm "Duplicate symbol errors while linking." - args = [ - "--prefix=#{prefix}", - "--without-dbus", - "--enable-locallisppath=#{HOMEBREW_PREFIX}/share/emacs/site-lisp", - ] + args = ["--prefix=#{prefix}", + "--without-dbus", + "--enable-locallisppath=#{HOMEBREW_PREFIX}/share/emacs/site-lisp", + "--infodir=#{info}/emacs"] if ARGV.include? "--cocoa" args << "--with-ns" << "--disable-ns-self-contained" |
