# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
maintainers {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
description An EMACS major mode for editing Standard ML
long_description ${description}
homepage https://elpa.gnu.org/packages/sml-mode.html
distname sml-mode-${version}
master_sites https://elpa.gnu.org/packages/
checksums rmd160 58d62006ad19e25482382d325443203c9f6d1521 \
sha256 32e257a103b2b4151a9742707b4cf7136646bbca8127a8708705c97db94fafad \
extract.post_args ${worksrcpath}/${name}
depends_lib-append path:${emacs_binary}:${emacs_binary_provider}
system -W ${build.dir} "${emacs_binary} -batch -f batch-byte-compile sml-mode.el"
system -W ${build.dir} "${emacs_binary} -batch --eval '(update-file-autoloads \"${build.dir}/sml-mode.el\" t \"${build.dir}/sml-mode-autoloads.el\")'"
set lisp_dir ${destroot}${emacs_lispdir}/sml-mode
xinstall -m 0644 -W ${worksrcpath} sml-mode.el ${lisp_dir}
xinstall -m 0644 -W ${worksrcpath} sml-mode.elc ${lisp_dir}
xinstall -m 0644 -W ${worksrcpath} sml-mode-autoloads.el ${lisp_dir}
notes "To use this, put the following into your ~/.emacs:
(load \"${prefix}/share/emacs/site-lisp/sml-mode/sml-mode-autoloads.el\")"
livecheck.regex sml-mode-(\\d+(?:\\.\\d+)*).el
livecheck.url https://elpa.gnu.org/packages/sml-mode.html