source: trunk/dports/lang/tuareg-mode.el/Portfile @ 50984

Last change on this file since 50984 was 50984, checked in by and.damore@…, 10 years ago

Maintainer email change, second batch, mail without @macports.org domain are put in domain:user form.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $
2
3PortSystem                      1.0
4name                            tuareg-mode.el
5# reverting to version 1.45 because 1.46 was removed from official download website
6epoch                           1
7version                         1.45.6
8categories                      lang editors
9maintainers                     kallisys.net:pguyot
10description                     A GNU Emacs/XEmacs major mode for editing Caml and OCaml programs.
11long_description        Tuareg is a Caml mode for GNU Emacs  and XEmacs. It handles \
12                                        automatic indentation of Objective Caml and Camllight codes. \
13                                        Key parts of the code are hilighted using Font-Lock. Support \
14                                        to run an interactive Caml toplevel and debbuger is provided.
15homepage                        http://www-rocq.inria.fr/~acohen/tuareg/
16platforms                       darwin
17distname                        tuareg-mode-${version}
18use_bzip2                       yes
19master_sites            http://www-rocq.inria.fr/~acohen/tuareg/mode/
20checksums           md5     75df362cba2d32e9828eebe80716009f \
21                    sha1    ee557fc003537a2eed8c351fcb50cf52e8926c48 \
22                    rmd160  cd99520a8b6940198b2db9a2cb9abeee309f8514
23
24# We want emacs from MacPorts since this will install stuff in emacs' site-lisp and we want
25# it to go into ${prefix}'s site-lisp.
26depends_lib                     path:${prefix}/bin/emacs:emacs
27depends_run                     bin:ocaml:ocaml
28
29use_configure           no
30
31build                           {
32        system "cd ${worksrcpath} && \
33                emacs --batch --eval \
34                        '(progn (setq load-path (cons \".\" load-path)) \
35                                (byte-compile-file \"tuareg.el\") \
36                                (byte-compile-file \"camldebug.el\"))'"
37}
38
39destroot                        {
40        file mkdir ${destroot}${prefix}/share/emacs/site-lisp
41        xinstall ${worksrcpath}/tuareg.el ${destroot}${prefix}/share/emacs/site-lisp/
42        xinstall ${worksrcpath}/tuareg.elc ${destroot}${prefix}/share/emacs/site-lisp/
43        xinstall ${worksrcpath}/camldebug.el ${destroot}${prefix}/share/emacs/site-lisp/
44        xinstall ${worksrcpath}/camldebug.elc ${destroot}${prefix}/share/emacs/site-lisp/
45        xinstall ${worksrcpath}/sym-lock.el ${destroot}${prefix}/share/emacs/site-lisp/
46}
47
48post-install {
49        ui_msg "To use this, put the following into your ~/.emacs:"
50        ui_msg "(setq auto-mode-alist"
51        ui_msg "  (cons '(\"\\\\.ml\\\\w?\" . tuareg-mode) auto-mode-alist))"
52        ui_msg "(autoload 'tuareg-mode \"tuareg\" \"Major mode for editing Caml code.\" t)"
53        ui_msg "(autoload 'camldebug \"cameldeb\" \"Run the Caml debugger.\" t)"
54}
55
56livecheck.check regex
57livecheck.regex {var last_version = "Tuareg Version (.*)";}
Note: See TracBrowser for help on using the repository browser.