source: trunk/dports/lang/prolog-mode.el/Portfile

Last change on this file was 135896, checked in by petr@…, 2 years ago

prolog-mode.el: nomaintainer

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# $Id: Portfile 135896 2015-05-06 15:04:48Z ryandesign@macports.org $
2
3PortSystem      1.0
4
5name            prolog-mode.el
6version         1.24
7revision        0
8categories      lang editors
9license         GPL-2+
10maintainers     nomaintainer
11platforms       darwin
12supported_archs noarch
13
14description     An emacs major mode for editing prolog programs.
15long_description        \
16                So the Prolog mode that comes with Emacs sucks.         \
17                Well, here is a better alternative, with all the        \
18                features you would expect, including syntax             \
19                highlighting, auto indent, and full interaction with    \
20                an inferior Prolog process.                             \
21                                                                        \
22                This mode supports in principle any Prolog system,      \
23                though it is primarily maintained with SWI Prolog       \
24                in mind. It also has some special tweaks for SICStus    \
25                Prolog, and explicitly supports Prolog's close          \
26                relatives Eclipse and Mercury.
27
28distname        prolog.el
29dist_subdir     ${name}/${version}
30extract.suffix
31
32homepage        http://bruda.ca/emacs/prolog_mode_for_emacs
33master_sites    http://bruda.ca/_media/emacs
34checksums           md5     f871429f5a7803254cdbeaeea947285a \
35                    sha1    cddd5b727f4badcc4dcdef461838c8e02478d573 \
36                    rmd160  6818a7f3248fbe9f45f6a513e1e1b27f92da988d
37
38
39depends_lib     path:bin/emacs:emacs
40depends_run     bin:swipl:swi-prolog
41
42extract         { file mkdir ${workpath}/${name}
43                  file copy ${distpath}/${distfiles} ${workpath}/${name}
44                }
45
46use_configure   no
47build           {}
48destroot        { file mkdir ${destroot}${prefix}/share/emacs/site-lisp
49                  file copy  ${workpath}/${name}/${distname}    \
50                             ${destroot}${prefix}/share/emacs/site-lisp
51                }
52
53post-activate   { ui_msg "To use this, put the following into your ~/.emacs:"
54                  ui_msg "(autoload 'run-prolog \"prolog\" \"Start a Prolog sub-process.\" t)"
55                  ui_msg "(autoload 'prolog-mode \"prolog\" \"Major mode for editing Prolog programs.\" t)"
56                  ui_msg "(autoload 'mercury-mode \"prolog\" \"Major mode for editing Mercury programs.\" t)"
57                  ui_msg "(setq prolog-system 'swi)"
58                  ui_msg "(setq auto-mode-alist (append '((\"\\.pl$\" . prolog-mode)"
59                  ui_msg "                                (\"\\.m$\" . mercury-mode))"
60                  ui_msg "                               auto-mode-alist))"
61}
62
63livecheck.url   "http://bruda.ca/_media/emacs/prolog.el"
64livecheck.regex "Version ((\\d+(\\.)*)+)"
Note: See TracBrowser for help on using the repository browser.