Ticket #32137: auctex.diff

File auctex.diff, 2.8 KB (added by vishketan@…, 13 years ago)

Unified diff of the changes

  • Portfile.

    old new  
    22# $Id$
    33
    44PortSystem      1.0
    5 
    65name            auctex
    76version         11.86
    87categories      editors print
    98maintainers     loria.fr:reilles openmaintainer
    109license         GPL-3+
     10platforms       darwin
     11supported_archs noarch
     12
    1113description     A major emacs mode for editing TeX files.
    1214long_description        \
    1315                AUCTeX is an extensible package for writing\
     
    1517                It supports many different TeX macro packages,\
    1618                including AMS-TeX, LaTeX, Texinfo, ConTeXt, and docTeX.
    1719
    18 platforms       darwin
    1920homepage        http://www.gnu.org/software/auctex/
    20 master_sites    gnu
     21master_sites gnu
    2122
    2223checksums           sha1    af3dd156f8b2db7764c86d9f7de8abd5811d888a \
    2324                    rmd160  48c84c8e0a9d7659aeb80f579dc6807dd8f654a6
     
    2627# site-lisp and we want it to go into ${prefix}'s site-lisp.
    2728depends_lib     port:emacs
    2829depends_run     bin:tex:texlive
     30depends_build  port:texinfo
    2931
    30 configure.args  --with-lispdir=${prefix}/share/emacs/site-lisp \
    31                 --with-auto-dir=${prefix}/share/emacs/site-lisp/auctex/auto
     32configure.args  --prefix=${prefix}\
     33    --with-lispdir=${prefix}/share/emacs/site-lisp \
     34    --infodir=${prefix}/share/info
    3235
    3336variant emacs_app description "If your Emacs is emacs-app" {
    3437        depends_lib-append      port:emacs-app
    3538        depends_lib-delete      port:emacs
    36         configure.args-append   --with-emacs=/Applications/MacPorts/Emacs.app/Contents/MacOS/Emacs
    37         configure.args-append   --with-lispdir=/Applications/MacPorts/Emacs.app/Contents/Resources/lisp
     39        configure.args-append   --with-emacs=${applications_dir}/Emacs.app/Contents/MacOS/Emacs
    3840}
    3941
    4042variant mactex description "If your TeX distribution is MacTeX" {
     
    4244        configure.args-append --with-texmf-dir=/usr/local/texlive/texmf-local
    4345}
    4446
    45 notes "To use this, put the following into your ~/.emacs:\n\
    46     (require 'tex-site)"
     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