a project to simplify installation of open source software
on Mac OS X and Darwin
# $Id: Portfile 22478 2007-03-02 05:16:40Z pipping@macports.org $
PortSystem 1.0
name prolog-mode.el
version 1.2
revision 1
categories lang editors
maintainers nomaintainer@macports.org
platforms darwin
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
extract.suffix
homepage http://turing.ubishops.ca/home/bruda/emacs-prolog/
master_sites ${homepage}
checksums md5 fbe7da9c3e1a476dd3d8ef21b368f77d
depends_lib path:${prefix}/bin/emacs:emacs
depends_run bin:swipl:swi-prolog
extract { file mkdir ${workpath}/${name}
file copy ${distpath}/${distfiles} ${workpath}/${name}
}
use_configure no
build {}
destroot { file mkdir ${destroot}${prefix}/share/emacs/site-lisp
file copy ${workpath}/${name}/${distname} \
${destroot}${prefix}/share/emacs/site-lisp
}
post-activate { ui_msg "To use this, put the following into your ~/.emacs:"
ui_msg "(autoload 'run-prolog \"prolog\" \"Start a Prolog sub-process.\" t)"
ui_msg "(autoload 'prolog-mode \"prolog\" \"Major mode for editing Prolog programs.\" t)"
ui_msg "(autoload 'mercury-mode \"prolog\" \"Major mode for editing Mercury programs.\" t)"
ui_msg "(setq prolog-system 'swi)"
ui_msg "(setq auto-mode-alist (append '((\"\\.pl$\" . prolog-mode)"
ui_msg " (\"\\.m$\" . mercury-mode))"
ui_msg " auto-mode-alist))"
}