| 1 | # $Id: Portfile 30193 2007-10-22 20:38:41Z jmpp@macports.org $ |
|---|
| 2 | |
|---|
| 3 | PortSystem 1.0 |
|---|
| 4 | |
|---|
| 5 | name auctex |
|---|
| 6 | version 11.85 |
|---|
| 7 | categories print editors |
|---|
| 8 | maintainers reilles@loria.fr openmaintainer |
|---|
| 9 | description A major emacs mode for editing TeX files. |
|---|
| 10 | long_description \ |
|---|
| 11 | AUCTeX is an extensible package for writing\ |
|---|
| 12 | and formatting TeX files in GNU Emacs and XEmacs.\ |
|---|
| 13 | It supports many different TeX macro packages,\ |
|---|
| 14 | including AMS-TeX, LaTeX, Texinfo, ConTeXt, and docTeX. |
|---|
| 15 | |
|---|
| 16 | platforms darwin |
|---|
| 17 | homepage http://www.gnu.org/software/auctex/ |
|---|
| 18 | master_sites gnu |
|---|
| 19 | |
|---|
| 20 | checksums md5 597c2adbee11877fe1f9b57baf0ba165 |
|---|
| 21 | |
|---|
| 22 | # We want emacs from MacPorts since this will install stuff in emacs' |
|---|
| 23 | # site-lisp and we want it to go into ${prefix}'s site-lisp. |
|---|
| 24 | depends_lib port:emacs |
|---|
| 25 | depends_run bin:tex:texlive |
|---|
| 26 | |
|---|
| 27 | configure.args --with-lispdir=${prefix}/share/emacs/site-lisp \ |
|---|
| 28 | --with-auto-dir=${prefix}/share/emacs/site-lisp/auctex/auto |
|---|
| 29 | |
|---|
| 30 | variant emacs_app description "If your Emacs is emacs-app" { |
|---|
| 31 | depends_lib-append port:emacs-app |
|---|
| 32 | depends_lib-delete port:emacs |
|---|
| 33 | configure.args-append --with-emacs=/Applications/MacPorts/Emacs.app/Contents/MacOS/Emacs |
|---|
| 34 | configure.args-append --with-lispdir=/Applications/MacPorts/Emacs.app/Contents/Resources/lisp |
|---|
| 35 | } |
|---|
| 36 | |
|---|
| 37 | variant mactex description "If your TeX distribution is MacTeX" { |
|---|
| 38 | # Note: This also needs /usr/texbin in binpath in macports.conf |
|---|
| 39 | configure.args-append --with-texmf-dir=/usr/local/texlive/texmf-local |
|---|
| 40 | } |
|---|
| 41 | |
|---|
| 42 | post-activate { |
|---|
| 43 | ui_msg "To use this, put the following into your ~/.emacs:" |
|---|
| 44 | ui_msg "(require 'tex-site)" |
|---|
| 45 | } |
|---|
| 46 | |
|---|