# -*- 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

PortSystem          1.0

name                prolog-mode.el
version             1.27
revision            0
checksums           rmd160  b3f4aeb59789f3aa8e2d66dc91abfcf9a8fe1a9c \
                    sha256  5d919a2699d760ebe1619be901b3705d8ebd6e293db50c7e03d79518eb03541e \
                    size    159743

categories          lang editors
license             GPL-2+
maintainers         nomaintainer
platforms           any
supported_archs     noarch

description         An emacs major mode for editing prolog programs.

long_description    So the Prolog mode that comes with Emacs sucks. \
                    Well, here is a better alternative, with all the \
                    features you would expect, including syntax \
                    highlighting, auto indent, and full interaction with \
                    an inferior Prolog process. \
                    This mode supports in principle any Prolog system, \
                    though it is primarily maintained with SWI Prolog \
                    in mind. It also has some special tweaks for SICStus \
                    Prolog, and explicitly supports Prolog's close \
                    relatives Eclipse and Mercury.

distname            prolog.el
dist_subdir         ${name}/${version}
extract.suffix

homepage            https://bruda.ca/emacs/prolog_mode_for_emacs
master_sites        https://bruda.ca/_media/emacs/

depends_lib         path:bin/emacs:emacs

depends_run         bin:swipl:swi-prolog

worksrcdir          ${name}
extract.mkdir       yes
extract {
    file copy ${distpath}/${distfiles} ${worksrcpath}
}

use_configure       no

build               {}

destroot {
    file mkdir ${destroot}${prefix}/share/emacs/site-lisp
    file copy ${worksrcpath}/${distname} ${destroot}${prefix}/share/emacs/site-lisp
}

notes {
To use this, put the following into your ~/.emacs:
(autoload 'run-prolog "prolog" "Start a Prolog sub-process." t)
(autoload 'prolog-mode "prolog" "Major mode for editing Prolog programs." t)
(autoload 'mercury-mode "prolog" "Major mode for editing Mercury programs." t)
(setq prolog-system 'swi)
(setq auto-mode-alist (append '(("\.pl$" . prolog-mode)
                                ("\.m$" . mercury-mode))
                               auto-mode-alist))
}

livecheck.type      regex
livecheck.regex     [quotemeta ${distname}]</a> version (\[0-9.\]+)
