Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
42 lines (30 sloc) 906 Bytes
require 'formula'
class EmacsMac <Formula
homepage 'http://www.gnu.org/software/emacs/'
head 'git://github.com/railwaycat/emacs-mac-port.git'
depends_on 'automake'
def caveats
s = ""
s += <<-EOS.undent
This is YAMAMOTO Mitsuharu's experimental "Mac port" addition to
GNU Emacs 24. This provides a native GUI support for Mac OS X
10.4 - 10.8. After installing, see README-mac and NEWS-mac
in #{prefix} for the port details.
EOS
s += <<-EOS.undent
Emacs.app was installed to: /Applications
EOS
return s
end
def install
args = ["--prefix=#{prefix}",
"--enable-locallisppath=#{HOMEBREW_PREFIX}/share/emacs/site-lisp",
"--infodir=#{info}/emacs",
"--with-mac",
"--enable-mac-app"]
# build
system "./configure", *args
system "make"
system "make install"
end
end