Ticket #34846: Portfile

File Portfile, 2.2 KB (added by seanfarley (Sean Farley), 12 years ago)

auctex portfile

Line 
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
4PortSystem      1.0
5
6name            auctex
7version         11.86-r20120426
8categories      editors print
9maintainers     loria.fr:reilles openmaintainer
10license         GPL-3+
11description     A major emacs mode for editing TeX files.
12long_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
18platforms       darwin
19homepage        http://www.gnu.org/software/auctex/
20master_sites    http://bitbucket.org/seanfarley/auctex/get
21distname        91f41b659add
22worksrcdir      seanfarley-auctex-${distname}
23
24checksums       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.
29depends_lib     port:emacs
30depends_run     bin:tex:texlive
31
32configure.args  --with-lispdir=${prefix}/share/emacs/site-lisp \
33                --with-auto-dir=${prefix}/share/emacs/site-lisp/auctex/auto
34
35post-patch {
36        system -W ${worksrcpath} "./autogen.sh"
37}
38
39build {
40        # hack to make sure everything compiles
41        system -W ${worksrcpath} "make; make; make"
42}
43
44variant 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
51variant 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
57variant 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
63notes "To use this, put the following into your ~/.emacs:\n\
64    (require 'tex-site)"