Portfile

# $Id: Portfile 20293 2006-11-01 17:47:33Z blair@macports.org $

PortSystem 1.0

name nxml-mode
version 20041004
categories editors lang
maintainers evenson@panix.com

description An Emacs mode for editing XML files
long_description A new major mode for GNU Emacs for editing XML documents. It \
supports editing well-formed XML documents and also provides \
schema-sensitive editing of XML documents using RELAX NG Compact \
Syntax.


homepage http://www.thaiopensource.com/nxml-mode/
master_sites http://www.thaiopensource.com/download/
checksums sha1 5d21ca111957f86c9c237af9161f7ca482a1ef9f

use_configure no

depends_lib path:${prefix}/bin/emacs:emacs

build.target all
build.args "EMACS=${prefix}/bin/emacs"

destroot {
cd ${worksrcpath}
set site_lisp_dest ${destroot}${prefix}/share/emacs/site-lisp/nxml-mode
xinstall -m 755 -d ${site_lisp_dest}
foreach file [glob *.el *.elc] {
xinstall -m 644 ${file} ${site_lisp_dest}
}
file copy char-name ${site_lisp_dest}
file copy schema ${site_lisp_dest}

file copy nxml-mode.info ${destroot}${prefix}/share/info
}

post-activate {
ui_msg "To use this mode, put the following in your ~/.emacs:"
ui_msg "(load \"rng-auto.el\")"
ui_msg ""
ui_msg "To automatically visit files in nxml-mode add some flavor of:"
ui_msg "(add-to-list 'auto-mode-alist "
ui_msg " '(\"\\.\\(xml\\|xsl\\|rng\\|xhtml\\)\\'\" . nxml-mode) nil)"
}