haskell-mode.el: update to 17.5, 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 2bcf1fd448
commit 2e33772d40
+24 -39
View File
@@ -1,47 +1,32 @@
PortSystem 1.0
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
name haskell-mode.el
version 2.4
categories lang editors
license GPL-3+
maintainers nomaintainer
platforms any
supported_archs noarch
PortSystem 1.0
PortGroup elisp 1.0
description An emacs major mode for editing haskell programs.
long_description \
Haskell-mode is a major Emacs mode for editing \
Haskell source code. It provides syntax highlighting \
and automatic indentation and comes with inf-haskell \
which allows interaction with an inferior Haskell \
interactive loop such as the one of Hugs or GHCi.
name haskell-mode.el
elpa.setup haskell-mode 17.5 nongnu
distname haskell-mode-${version}
categories lang editors
license GPL-3+
maintainers nomaintainer
platforms any
supported_archs noarch
homepage http://www.iro.umontreal.ca/~monnier/elisp/
master_sites ${homepage}
description An Emacs major mode for editing Haskell programs.
long_description Haskell-mode is a major Emacs mode for editing \
Haskell source code. It provides syntax highlighting, \
automatic indentation, and interaction with an inferior \
Haskell process such as GHCi.
checksums md5 de5ff32478154a39bea3adb3b7ce0e94
depends_run port:ghc
depends_lib port:emacs
depends_run port:ghc
checksums rmd160 2da202607a6f8de281bc61bd4af34ca651f02827 \
sha256 d6c3519fb05904c698b6c0be0573ca037d636eb8446c9d5ac19615fd36035efa \
size 2129920
worksrcdir ${distname}
post-patch { reinplace s|ghci-program-path|${prefix}/bin/ghci|g ${worksrcpath}/inf-haskell.el }
use_configure no
build {}
destroot { file mkdir ${destroot}${prefix}/share/emacs/site-lisp
file copy ${workpath}/${worksrcdir} \
${destroot}${prefix}/share/emacs/site-lisp
}
post-activate { ui_msg "To use this, put the following into your ~/.emacs:"
ui_msg "(load \"${prefix}/share/emacs/site-lisp/${distname}/haskell-site-file\")"
ui_msg "(add-hook 'haskell-mode-hook 'turn-on-haskell-doc-mode)"
ui_msg "(add-hook 'haskell-mode-hook 'turn-on-haskell-indent)"
ui_msg "(add-hook 'haskell-mode-hook 'font-lock-mode)"
ui_msg "(add-hook 'haskell-mode-hook 'imenu-add-menubar-index)"
ui_msg " "
post-destroot {
# Install info documentation
set infodir ${destroot}${prefix}/share/info
xinstall -d ${infodir}
xinstall -m 0644 ${worksrcpath}/haskell-mode.info ${infodir}
}