Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 43 lines (31 sloc) 1.022 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
require 'formula'

class EmacsMac <Formula
  # url 'http://ftp.gnu.org/pub/gnu/emacs/emacs-23.2.tar.bz2'
  # md5 '057a0379f2f6b85fb114d8c723c79ce2'
  homepage 'http://www.gnu.org/software/emacs/'

  head 'git://github.com/railwaycat/emacs-mac-port.git'

  def caveats
    s = ""
    s += <<-EOS.undent

This is YAMAMOTO Mitsuharu's experimental Mac port, which adds
some of the functionality from the old Carbon and Carbon+AppKit
Emacs ports to Emacs 23. After installing, see README-mac and
NEWS-mac in #{prefix} for the port details.

EOS

    s += <<-EOS.undent
Emacs.app was installed to: #{prefix}

EOS

    return s
  end

  def install
    args = ["--prefix=#{prefix}",
            "--without-dbus",
            "--enable-locallisppath=#{HOMEBREW_PREFIX}/share/emacs/site-lisp",
            "--infodir=#{info}/emacs"]

    # build
    args << "--with-mac" << "--enable-mac-app=#{prefix}"
    system "./configure", *args
    system "make"
    system "make install"

  end
end
Something went wrong with that request. Please try again.