Ticket #32137: Portfile

File Portfile, 2.5 KB (added by vishketan@…, 13 years ago)

Updated 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
5name            auctex
6version         11.86
7categories      editors print
8maintainers     loria.fr:reilles openmaintainer
9license         GPL-3+
10platforms       darwin
11supported_archs noarch
12
13description     A major emacs mode for editing TeX files.
14long_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
20homepage        http://www.gnu.org/software/auctex/
21master_sites gnu
22
23checksums           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.
28depends_lib     port:emacs
29depends_run     bin:tex:texlive
30depends_build  port:texinfo
31
32configure.args  --prefix=${prefix}\
33    --with-lispdir=${prefix}/share/emacs/site-lisp \
34    --infodir=${prefix}/share/info
35
36variant 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
42variant 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
47post-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
57pre-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