sml-mode _unstable_ port information

# Initial Data
Package: sml-mode
Version: 4.0
Revision: 1
Description: Emacs major mode for Standard ML source code
License: GPL
Maintainer: John Ridgway

# Dependencies
Depends: emacsen
BuildDepends: make, texinfo, ghostscript, tetex-base, fink (>= 0.24.12)

# Unpack
Source: http://www.iro.umontreal.ca/~monnier/elisp/%n-%v.tar.gz
Source-MD5: dddcadd1ee488a5f70e875e6d20f69fc

# Patch Phase
PatchFile: %n.patch
PatchFile-MD5: 67777155ecab580614c6f44e90c03373
PatchScript: <<
sed 's|@PREFIX@|%p|g' < %{PatchFile} | patch -p1
<<

# Compile Phase
CompileScript: <<
make prefix=%i info postscript
ps2pdf sml-mode.ps
head -34 sml-mode.el >LICENSE
<<

# Test Suites

# Install Phase
InstallScript: <<
install -m 755 -d %i/share/emacs/site-lisp/%n
make prefix=%i infodir=%i/share/info install_el install_info
install -m 644 Makefile %i/share/emacs/site-lisp/%n
install -m 644 makefile.pkg %i/share/emacs/site-lisp/%n

install -m 755 -d %i/lib/emacsen-common/packages/install
install -m 755 fink/%n-install %i/lib/emacsen-common/packages/install/%n

install -m 755 -d %i/lib/emacsen-common/packages/remove
install -m 755 fink/%n-remove %i/lib/emacsen-common/packages/remove/%n
<<
DocFiles: BUGS ChangeLog INSTALL NEWS README TODO LICENSE sml-mode.pdf

# Build Phase
PostInstScript: %p/lib/emacsen-common/emacs-package-install %n
PreRmScript: %p/lib/emacsen-common/emacs-package-remove %n
InfoDocs: sml-mode.info

# Additional Data
Homepage: http://www.iro.umontreal.ca/~monnier/elisp/
DescDetail: <<
SML-MODE is a major Emacs mode for editing Standard ML. It provides
syntax highlighting and automatic indentation and comes with sml-proc
which allows interaction with an inferior SML interactive loop such as
the one of SML/NJ or Moscow ML (or perhaps Poly/ML?).
<<
DescUsage: <<
You can switch any Emacs buffer into SML mode by entering the command

M-x sml-mode

It is usually more convenient to have Emacs automatically place the
buffer in SML mode whenever you visit a file containing ML programs.
The simplest way of achieving this is to put something like

(add-to-list 'auto-mode-alist '("\\.\\(sml\\|sig\\)\\'" . sml-mode))

in your `.emacs' file. Subsequently (after a restart), any files
with these extensions will be placed in SML mode buffers when you visit
them.
<<