Ticket #6738: Portfile

File Portfile, 2.1 KB (added by easye, 19 years ago)

slime-1.2.1 Portfile

Line 
1# $Id$
2
3PortSystem 1.0
4
5name            slime
6version         1.2.1
7categories      lang
8maintainers     evenson@panix.com
9
10description             An Emacs mode for unifying Common Lisp development
11
12long_description        SLIME extends Emacs with new support for interactive \
13                        programming in Common Lisp. The features are \
14                        centred around `slime-mode', an Emacs minor-mode \
15                        that complements the standard `lisp-mode'. While \
16                        `lisp-mode' supports editing Lisp source files, \
17                        `slime-mode' adds support for interacting with a \
18                        running Common Lisp process for compilation,\
19                        debugging, documentation lookup, and so on.
20
21homepage        http://common-lisp.net/project/slime/   
22master_sites    http://common-lisp.net/project/slime/
23
24checksums       md5 f7fabc03e1ec5a4d380f0890141058d9 \
25                sha1 553e10a3eb10b0d965a48d63f2fb1fdb5015073b \
26                rmd160 32fe0e7f6a2df63b907711a7c0b5f7267b74defb
27
28use_configure   no
29depends_lib     path:${prefix}/bin/emacs:emacs
30
31patch {
32  reinplace "s|/usr/local|${prefix}/share|g" \
33                ${worksrcpath}/doc/makefile
34}
35build           {
36  cd ${worksrcpath}
37  exec 2>/dev/null "${prefix}/bin/emacs" \
38    --batch --directory . --funcall batch-byte-compile \
39    slime.el hyperspec.el tree-widget.el
40 cd ${worksrcpath}/doc
41 system "make slime.info"
42}
43
44destroot {
45  cd ${worksrcpath}
46  set site_lisp_dest ${destroot}${prefix}/share/emacs/site-lisp/slime
47  xinstall -m 755 -d ${site_lisp_dest}
48  foreach file [glob *.el *.elc *.lisp] {
49    xinstall -m 644 ${file} ${site_lisp_dest}
50  }
51
52  xinstall -m 644 ${worksrcpath}/doc/slime.info ${prefix}/share/info 
53}
54
55post-activate {
56  ui_msg "To use SLIME, you need to have a Common Lisp installed with which"
57  ui_msg "you wish to interact.  DarwinPorts currently has 'clisp',"
58  ui_msg "'maxima-lisp', 'acl2', 'openmcl', and 'gcl' (broken)."
59  ui_msg ""
60  ui_msg "Then put the following in your ~/.emacs:"
61  ui_msg " (require 'slime)"
62  ui_msg " (slime-setup)"
63  ui_msg " (setq inferior-lisp-program \"openmcl\")"
64  ui_msg ""
65  ui_msg "replacing 'openmcl' with the name of the Common Lisp exectuable"
66  ui_msg "you wish to use."
67  ui_msg ""
68  ui_msg "Then, 'M-x slime' from Emacs should connect you to your chosen"
69  ui_msg " Lisp environment/"
70}
71