2011年10月03日
■ Lion に Homebrew で Emacs をインストール
いつも忘れるのでメモっておく。
$ brew install https://gist.github.com/raw/1128997/347bb0d97155a294d9c50b6418c9130fadec8a5b/e macs.rb --cocoa --lion ####################################################################### # 100.0% ==> Downloading http://ftp.gnu.org/pub/gnu/emacs/emacs-23.3a.tar.bz2 File already downloaded in /Users/ogagaga/Library/Caches/Homebrew ==> Downloading patches ####################################################################### # 100.0% ####################################################################### # 100.0% ####################################################################### # 100.0% ####################################################################### # 100.0% ####################################################################### # 100.0% ==> Patching patching file src/ChangeLog patching file src/unexmacosx.c patching file src/s/darwin.h patching file src/nsterm.m Hunk #1 succeeded at 4488 (offset 5 lines). patching file lisp/term/ns-win.el Hunk #1 succeeded at 1267 (offset 4 lines). patching file src/nsfns.m Hunk #1 succeeded at 2591 (offset 2 lines). patching file src/nsterm.h patching file src/nsterm.m Hunk #1 succeeded at 695 (offset 9 lines). Hunk #2 succeeded at 1162 (offset 24 lines). Hunk #3 succeeded at 1187 with fuzz 1 (offset 24 lines). Hunk #4 succeeded at 1234 (offset 24 lines). Hunk #5 succeeded at 5633 (offset 11 lines). Hunk #6 succeeded at 5744 (offset 11 lines). patching file src/nsterm.m ==> ./configure --prefix=/usr/local/Cellar/emacs/23.3a --without-dbus --enable- locallisppath=/usr/local/s ==> make bootstrap ==> make install ==> Caveats For build options see: brew options emacs
Emacs.app was installed to: /usr/local/Cellar/emacs/23.3a
Command-line emacs can be used by setting up an alias: alias emacs=/usr/local/Cellar/emacs/23.3a/Emacs.app/Contents/MacOS/Emacs -nw
Because the official bazaar repository might be slow, we include an option for pulling HEAD from an unofficial Git mirror:
brew install emacs --HEAD- -use-git-head
There is inevitably some lag between checkins made to the official Emacs bazaar repository and their appearance on the repo.or.cz mirror. See http://repo.or.cz/w/emacs.git for the mirror's status. The Emacs devs do not provide support for the git mirror, and they might reject bug reports filed with git version information. Use it at your own risk. ==> Summary /usr/local/Cellar/emacs/23.3a: 3673 files, 109M, built in 4.3 minutes