# $Id: Portfile,v 1.6 2006/02/22 15:49:31 gwright Exp $

PortSystem	1.0
name		auctex
version		11.82
categories	print editors
maintainers	reilles@loria.fr
description	A major emacs mode for editing TeX files.
long_description	\
		AUCTeX is an extensible package for writing\
		and formatting TeX files in GNU Emacs and XEmacs.\
		It supports many different TeX macro packages,\
		including AMS-TeX, LaTeX, Texinfo, ConTeXt, and docTeX.

platforms	darwin
homepage	http://www.gnu.org/software/auctex/
master_sites	gnu

checksums	md5 a18d6ac70b332f47386980f0c4df62e6

# We want emacs from DP since this will install stuff in emacs'
# site-lisp and we want it to go into ${prefix}'s site-lisp.
depends_lib	port:emacs 
depends_run	port:teTeX

variant devel	{ depends_lib-delete port:emacs
		  depends_lib-append port:emacs-devel
		}

configure.args	--with-lispdir=${prefix}/share/emacs/site-lisp	\
		--with-auto-dir=${prefix}/share/emacs/site-lisp/auctex/auto	\
		--infodir=${prefix}/share/info	\
		--mandir=${prefix}/share/man

post-activate {
	ui_msg "To use this, put the following into your ~/.emacs:"
	ui_msg "(require 'tex-site)"
}

