Make auctex use TeX requirement.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Xiyue Deng 2012-12-28 16:48:31 -08:00 committed by Adam Vandenberg
parent 02050f1251
commit 883007efe3

View file

@ -1,29 +1,12 @@
require 'formula' require 'formula'
class TexInstalled < Requirement
def message; <<-EOS.undent
A TeX/LaTeX installation is required to install.
You can obtain the TeX distribution for Mac OS X from:
http://www.tug.org/mactex/
EOS
end
def satisfied?
which 'latex'
end
def fatal?
true
end
end
class Auctex < Formula class Auctex < Formula
homepage 'http://ftp.gnu.org/pub/gnu/auctex' homepage 'http://ftp.gnu.org/pub/gnu/auctex'
url 'http://ftpmirror.gnu.org/auctex/auctex-11.87.tar.gz' url 'http://ftpmirror.gnu.org/auctex/auctex-11.87.tar.gz'
mirror 'http://ftp.gnu.org/gnu/auctex/auctex-11.87.tar.gz' mirror 'http://ftp.gnu.org/gnu/auctex/auctex-11.87.tar.gz'
sha1 '0be92c7d8f89d57346fe07f05a1a045ffd11cd71' sha1 '0be92c7d8f89d57346fe07f05a1a045ffd11cd71'
env :userpaths depends_on :tex
depends_on TexInstalled.new
def options def options
[['--with-emacs=</full/path/to/emacs>', "Force a different emacs"]] [['--with-emacs=</full/path/to/emacs>', "Force a different emacs"]]