tuareg-mode.el: update to 3.1.0, simplify with elisp-1.0's elpa.setup

This commit is contained in:
Dan R. K. Ports
2026-05-18 08:48:00 -07:00
committed by Dan Ports
parent de0ccee0a6
commit 2bcf1fd448
+21 -54
View File
@@ -1,60 +1,27 @@
PortSystem 1.0
PortSystem 1.0
PortGroup elisp 1.0
name tuareg-mode.el
# reverting to version 1.45 because 1.46 was removed from official download website
epoch 1
version 2.0.2
revision 1
categories lang editors
license GPL-2+
maintainers nomaintainer
description A GNU Emacs/XEmacs major mode for editing Caml and OCaml programs.
long_description\
Tuareg is a Caml mode for GNU Emacs and XEmacs. It handles \
automatic indentation of Objective Caml and Camllight codes. \
Key parts of the code are highlighted using Font-Lock. Support \
to run an interactive Caml toplevel and debugger is provided.
name tuareg-mode.el
elpa.setup tuareg 3.1.0 nongnu
homepage http://tuareg.forge.ocamlcore.org/
supported_archs noarch
distname tuareg-${version}
master_sites http://forge.ocamlcore.org/frs/download.php/468/
epoch 1
categories lang editors
license GPL-2+
maintainers nomaintainer
platforms any
supported_archs noarch
checksums rmd160 153a0958bed6e6517db1a30bdd23980f7add37f9 \
sha256 65faece1d281f2d19c05761ec1fb2d24588e0f153b1ccb84f3fabb129da5d895 \
size 64835
description A GNU Emacs major mode for editing OCaml programs.
long_description Tuareg is a Caml mode for GNU Emacs. It handles \
automatic indentation of OCaml code. Key parts of \
the code are highlighted using Font-Lock. Support \
to run an interactive toplevel and debugger is provided.
# We want emacs from MacPorts since this will install stuff in emacs'
# site-lisp and we want it to go into ${prefix}'s site-lisp.
depends_lib port:emacs
depends_run port:ocaml
depends_run bin:ocaml:ocaml
use_configure no
checksums rmd160 cb7aaa8996df9b16beef8cd4f348ec85377f96b6 \
sha256 5527c6558716e25587264f9b6a7c0b9b636fb0d74d0e6f6076f9b79a07091cba \
size 389120
build {
system "cd ${worksrcpath} && \
emacs --batch --eval \
'(progn (setq load-path (cons \".\" load-path)) \
(byte-compile-file \"tuareg.el\") \
(byte-compile-file \"camldebug.el\"))'"
}
destroot {
file mkdir ${destroot}${prefix}/share/emacs/site-lisp
xinstall ${worksrcpath}/tuareg.el ${destroot}${prefix}/share/emacs/site-lisp/
xinstall ${worksrcpath}/tuareg.elc ${destroot}${prefix}/share/emacs/site-lisp/
xinstall ${worksrcpath}/camldebug.el ${destroot}${prefix}/share/emacs/site-lisp/
xinstall ${worksrcpath}/camldebug.elc ${destroot}${prefix}/share/emacs/site-lisp/
xinstall ${worksrcpath}/sym-lock.el ${destroot}${prefix}/share/emacs/site-lisp/
}
post-install {
ui_msg "To use this, put the following into your ~/.emacs:"
ui_msg "(setq auto-mode-alist"
ui_msg " (cons '(\"\\\\.ml\\\\w?\" . tuareg-mode) auto-mode-alist))"
ui_msg "(autoload 'tuareg-mode \"tuareg\" \"Major mode for editing Caml code.\" t)"
ui_msg "(autoload 'camldebug \"cameldeb\" \"Run the Caml debugger.\" t)"
}
livecheck.type regex
livecheck.regex {var last_version = "Tuareg Version (.*)";}
elisp.files tuareg.el tuareg-compat.el tuareg-menhir.el \
tuareg-opam.el ocamldebug.el