Homebrew Formula for emacs' VM (View Mail)
This works:

class Vm &lt; Formula
  desc "VM is a mail reader that runs under XEmacs and GNU Emacs."
  homepage "https://launchpad.net/vm"
  url "https://launchpad.net/vm/8.2.x/8.1.93a/+download/vm-8.1.93a.tgz"
  version "8.1.93a"
  sha256 "9eab4cca6d8e4f3c5b2ab0293caecda3207b8f7e5d1e620d067898c35204235e"

  depends_on :emacs =&gt; ["23", :build]

  def install
    system "./configure", "--with-emacs=#{HOMEBREW_PREFIX}/bin/emacs",
            "--prefix=#{prefix}"
    system "make"
    system "make install"
 end

def caveats; &lt;&lt;-EOS.undent
  To use add to .emacs:
  (add-to-list 'load-path "/usr/local/Cellar/vm/8.1.93a/share/emacs/site-lisp/vm")
  (require 'vm-autoloads)
  EOS
end


Though I'm not sure how to dynamically list the necessary prefix for the load-path in the caveats.