Portfile

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

name psgml
version 1.3.1
categories editors textproc
maintainers arankine@gmail.com

description XML/SGML editing mode for emacs

long_description Emacs is an advanced and extensible editor. A Major Mode customizes Emacs for \
editing text of a particular sort. PSGML is a major mode for SGML documents. \
\
PSGML has several functions for editing SGML documents. Indentation according to \
element nesting depth and identification of structural errors (but it is not a \
validating SGML parser). Menus and commands for inserting tags with only the \
contextually valid tags. Attribute values can be edited in a separate window with \
information about types and defaults. Structure based editing includes movement \
and killing\; and also several commands for folding editing.

homepage http://www.lysator.liu.se/projects/about_psgml.html
master_sites ftp://ftp.lysator.liu.se/pub/sgml/ALPHA/

checksums ${distname}.tar.gz md5 0c92aac8ef9f8053f062d89216bfbcb9

depends_build bin:emacs:emacs

destroot.destdir prefix=${destroot}${prefix} lispdir=${destroot}${prefix}/share/emacs/site-lisp/${name} \
infodir=${destroot}${prefix}/share/info

destroot.target "install install-info"

post-configure {
reinplace "s|/usr/local|${prefix}|g" "${worksrcpath}/psgml.el" "${worksrcpath}/psgml.info"
}