diff options
| author | Adam Vandenberg | 2012-02-29 20:42:09 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2012-02-29 20:42:09 -0800 |
| commit | 18ec9553a8e00ceeef45b57efe13eb40e5fbbb21 (patch) | |
| tree | 37c42403d3ac950849fa3569767b6577d8e2992a /Library/Formula | |
| parent | 1fde49af0b5b490688c5ef8cf6274502825435aa (diff) | |
| download | homebrew-18ec9553a8e00ceeef45b57efe13eb40e5fbbb21.tar.bz2 | |
auctex: more style nitpicks
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/auctex.rb | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/Library/Formula/auctex.rb b/Library/Formula/auctex.rb index 7a8aced00..bd500f3bf 100644 --- a/Library/Formula/auctex.rb +++ b/Library/Formula/auctex.rb @@ -1,26 +1,23 @@ require 'formula' class Auctex < Formula + homepage 'http://ftp.gnu.org/pub/gnu/auctex' url 'http://ftpmirror.gnu.org/auctex/auctex-11.86.tar.gz' mirror 'http://ftp.gnu.org/gnu/auctex/auctex-11.86.tar.gz' - homepage 'http://ftp.gnu.org/pub/gnu/auctex' md5 '6bc33a67b6ac59db1aa238f3693b36d2' def options - [ - ['--with-emacs=/full/path/to/emacs>', "Force a different emacs"] - ] + [['--with-emacs=</full/path/to/emacs>', "Force a different emacs"]] end def which_emacs - emacs = `which emacs`.chomp # check arguments for a different emacs ARGV.each do |a| if a.index('--with-emacs') - emacs = a.sub('--with-emacs=', '') + return a.sub('--with-emacs=', '') end end - return emacs + return `which emacs`.chomp end def install @@ -34,13 +31,14 @@ class Auctex < Formula exit 1 end - brew_lispdir = share + 'emacs/site-lisp' - brew_texmf = share + 'texmf' # configure fails if the texmf dir is not there yet + brew_texmf = share + 'texmf' brew_texmf.mkpath - system "./configure", "--prefix=#{prefix}", "--with-texmf-dir=#{brew_texmf}", - "--with-emacs=#{which_emacs}", "--with-lispdir=#{brew_lispdir}" + system "./configure", "--prefix=#{prefix}", + "--with-texmf-dir=#{brew_texmf}", + "--with-emacs=#{which_emacs}", + "--with-lispdir=#{share}/emacs/site-lisp" system "make" ENV.deparallelize # Needs a serialized install @@ -53,24 +51,26 @@ class Auctex < Formula # be by default in the load-path if which_emacs.index("#{HOMEBREW_PREFIX}/bin") dot_emacs = <<-EOS - (require 'tex-site) + (require 'tex-site) EOS else dot_emacs = <<-EOS - (add-to-list 'load-path "#{HOMEBREW_PREFIX}/share/emacs/site-lisp") - (require 'tex-site) + (add-to-list 'load-path "#{HOMEBREW_PREFIX}/share/emacs/site-lisp") + (require 'tex-site) EOS end <<-EOS.undent - * texmf files installed into - #{HOMEBREW_PREFIX}/share/texmf/ - you can add it to your TEXMFHOME using: - sudo tlmgr conf texmf TEXMFHOME "~/Library/texmf:#{HOMEBREW_PREFIX}/share/texmf" + texmf files installed into: + #{HOMEBREW_PREFIX}/share/texmf/ + + You can add it to your TEXMFHOME using: + sudo tlmgr conf texmf TEXMFHOME "~/Library/texmf:#{HOMEBREW_PREFIX}/share/texmf" + + Emacs package installed into: + #{HOMEBREW_PREFIX}/share/emacs/site-lisp - * Emacs package installed into - #{HOMEBREW_PREFIX}/share/emacs/site-lisp - to activate add the following to your .emacs: + To activate, add the following to your .emacs: #{dot_emacs} EOS end |
