# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4

PortSystem	1.0

name		nxml-mode
version		20041004
categories	editors lang
maintainers	panix.com:evenson
platforms   darwin

description		An Emacs mode for editing XML files
long_description	\
  A 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 {
  set site_lisp_dest ${destroot}${prefix}/share/emacs/site-lisp/nxml-mode
  xinstall -m 755 -d ${site_lisp_dest}
  foreach file [glob ${worksrcpath}/*.el ${worksrcpath}/*.elc] {
    xinstall -m 644 ${file} ${site_lisp_dest}
  }
  file copy ${worksrcpath}/char-name ${site_lisp_dest}
  file copy ${worksrcpath}/schema ${site_lisp_dest}

  file copy ${worksrcpath}/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 "  (setq nxml-slash-auto-complete-flag t)"
  ui_msg "  (add-to-list 'auto-mode-alist "
  ui_msg "    '(\"\\.\\(xml\\|svg\\|wsdl\\|xslt\\|wsdd\\|xsl\\|rng\\|xhtml\\)\\'\" . nxml-mode) nil)"
}

