| 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 | |
|---|
| 6 | name auctex |
|---|
| 7 | version 11.86-r20120426 |
|---|
| 8 | categories editors print |
|---|
| 9 | maintainers loria.fr:reilles openmaintainer |
|---|
| 10 | license GPL-3+ |
|---|
| 11 | description A major emacs mode for editing TeX files. |
|---|
| 12 | long_description \ |
|---|
| 13 | AUCTeX is an extensible package for writing\ |
|---|
| 14 | and formatting TeX files in GNU Emacs and XEmacs.\ |
|---|
| 15 | It supports many different TeX macro packages,\ |
|---|
| 16 | including AMS-TeX, LaTeX, Texinfo, ConTeXt, and docTeX. |
|---|
| 17 | |
|---|
| 18 | platforms darwin |
|---|
| 19 | homepage http://www.gnu.org/software/auctex/ |
|---|
| 20 | master_sites http://bitbucket.org/seanfarley/auctex/get |
|---|
| 21 | distname 91f41b659add |
|---|
| 22 | worksrcdir seanfarley-auctex-${distname} |
|---|
| 23 | |
|---|
| 24 | checksums sha1 0f7db8307324fc253fafd9c99c9229afd19c8ca0 \ |
|---|
| 25 | rmd160 8694cfbfd141560adb44e5e566f9dd4ae5309312 |
|---|
| 26 | |
|---|
| 27 | # We want emacs from MacPorts since this will install stuff in emacs' |
|---|
| 28 | # site-lisp and we want it to go into ${prefix}'s site-lisp. |
|---|
| 29 | depends_lib port:emacs |
|---|
| 30 | depends_run bin:tex:texlive |
|---|
| 31 | |
|---|
| 32 | configure.args --with-lispdir=${prefix}/share/emacs/site-lisp \ |
|---|
| 33 | --with-auto-dir=${prefix}/share/emacs/site-lisp/auctex/auto |
|---|
| 34 | |
|---|
| 35 | post-patch { |
|---|
| 36 | system -W ${worksrcpath} "./autogen.sh" |
|---|
| 37 | } |
|---|
| 38 | |
|---|
| 39 | build { |
|---|
| 40 | # hack to make sure everything compiles |
|---|
| 41 | system -W ${worksrcpath} "make; make; make" |
|---|
| 42 | } |
|---|
| 43 | |
|---|
| 44 | variant emacs_app description "If your Emacs is emacs-app" { |
|---|
| 45 | depends_lib-append port:emacs-app |
|---|
| 46 | depends_lib-delete port:emacs |
|---|
| 47 | configure.args-append --with-emacs=${applications_dir}/Emacs.app/Contents/MacOS/Emacs |
|---|
| 48 | configure.args-append --with-lispdir=${applications_dir}/Emacs.app/Contents/Resources/lisp |
|---|
| 49 | } |
|---|
| 50 | |
|---|
| 51 | variant mactex description "If your TeX distribution is MacTeX" { |
|---|
| 52 | depends_lib-delete port:biblatex-biber port:texlive-bibtex-extra |
|---|
| 53 | # Note: This also needs /usr/texbin in binpath in macports.conf |
|---|
| 54 | configure.args-append --with-texmf-dir=/usr/local/texlive/texmf-local |
|---|
| 55 | } |
|---|
| 56 | |
|---|
| 57 | variant biber description {Enable using biblatex with the biber backend} { |
|---|
| 58 | depends_lib-append port:biblatex-biber port:texlive-bibtex-extra |
|---|
| 59 | patchfiles-append biber.patch |
|---|
| 60 | patch.pre_args -p1 |
|---|
| 61 | } |
|---|
| 62 | |
|---|
| 63 | notes "To use this, put the following into your ~/.emacs:\n\ |
|---|
| 64 | (require 'tex-site)" |
|---|