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

Last change on this file was 103751, checked in by jmr@…, 5 years ago

tuareg-mode.el: license, noarch

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