1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | name auctex |
---|
6 | version 11.86 |
---|
7 | categories editors print |
---|
8 | maintainers loria.fr:reilles openmaintainer |
---|
9 | license GPL-3+ |
---|
10 | platforms darwin |
---|
11 | supported_archs noarch |
---|
12 | |
---|
13 | description A major emacs mode for editing TeX files. |
---|
14 | long_description \ |
---|
15 | AUCTeX is an extensible package for writing\ |
---|
16 | and formatting TeX files in GNU Emacs and XEmacs.\ |
---|
17 | It supports many different TeX macro packages,\ |
---|
18 | including AMS-TeX, LaTeX, Texinfo, ConTeXt, and docTeX. |
---|
19 | |
---|
20 | homepage http://www.gnu.org/software/auctex/ |
---|
21 | master_sites gnu |
---|
22 | |
---|
23 | checksums sha1 af3dd156f8b2db7764c86d9f7de8abd5811d888a \ |
---|
24 | rmd160 48c84c8e0a9d7659aeb80f579dc6807dd8f654a6 |
---|
25 | |
---|
26 | # We want emacs from MacPorts since this will install stuff in emacs' |
---|
27 | # site-lisp and we want it to go into ${prefix}'s site-lisp. |
---|
28 | depends_lib port:emacs |
---|
29 | depends_run bin:tex:texlive |
---|
30 | depends_build port:texinfo |
---|
31 | |
---|
32 | configure.args --prefix=${prefix}\ |
---|
33 | --with-lispdir=${prefix}/share/emacs/site-lisp \ |
---|
34 | --infodir=${prefix}/share/info |
---|
35 | |
---|
36 | variant emacs_app description "If your Emacs is emacs-app" { |
---|
37 | depends_lib-append port:emacs-app |
---|
38 | depends_lib-delete port:emacs |
---|
39 | configure.args-append --with-emacs=${applications_dir}/Emacs.app/Contents/MacOS/Emacs |
---|
40 | } |
---|
41 | |
---|
42 | variant mactex description "If your TeX distribution is MacTeX" { |
---|
43 | # Note: This also needs /usr/texbin in binpath in macports.conf |
---|
44 | configure.args-append --with-texmf-dir=/usr/local/texlive/texmf-local |
---|
45 | } |
---|
46 | |
---|
47 | post-activate { |
---|
48 | system "${prefix}/bin/install-info ${prefix}/share/info/auctex.info ${prefix}/share/info/dir" |
---|
49 | system "${prefix}/bin/install-info ${prefix}/share/info/auctex.info-1 ${prefix}/share/info/dir" |
---|
50 | system "${prefix}/bin/install-info ${prefix}/share/info/auctex.info-2 ${prefix}/share/info/dir" |
---|
51 | system "${prefix}/bin/install-info ${prefix}/share/info/preview-latex.info ${prefix}/share/info/dir" |
---|
52 | |
---|
53 | ui_msg "To use auctex, put the following in your ~/.emacs:" |
---|
54 | ui_msg "(require 'tex-site)" |
---|
55 | } |
---|
56 | |
---|
57 | pre-deactivate { |
---|
58 | system "${prefix}/bin/install-info --delete ${prefix}/share/info/auctex.info ${prefix}/share/info/dir" |
---|
59 | system "${prefix}/bin/install-info --delete ${prefix}/share/info/auctex.info-1 ${prefix}/share/info/dir" |
---|
60 | system "${prefix}/bin/install-info --delete ${prefix}/share/info/auctex.info-2 ${prefix}/share/info/dir" |
---|
61 | system "${prefix}/bin/install-info --delete ${prefix}/share/info/preview-latex.info ${prefix}/share/info/dir" |
---|
62 | } |
---|
63 | |
---|