Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
49 lines (35 sloc) 1.1 KB
require 'formula'
class EmacsMac <Formula
homepage 'http://www.gnu.org/software/emacs/'
head 'git://github.com/railwaycat/emacs-mac-port.git'
depends_on 'automake' => :build
depends_on 'pkg-config' => :build
depends_on 'd-bus' => [:optional, 'with-dbus']
depends_on 'gnutls' => :optional
depends_on 'imagemagick' => :optional
depends_on 'libxml2' => [:optional, 'with-xml2']
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
Something went wrong with that request. Please try again.