source: trunk/dports/lang/ocaml-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: 1.3 KB
Line 
1# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $
2
3PortSystem                      1.0
4name                            ocaml-mode.el
5version                         3.05
6categories                      lang editors ml
7maintainers                     kallisys.net:pguyot
8description                     An EMACS major mode for editing OCaml programs.
9long_description        ${description}
10homepage                        http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/ocaml.html
11platforms                       darwin
12distname                        ocaml-mode-${version}
13master_sites            http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/dist/
14checksums                       md5 ace102dfb75a20e15a60d962cc3a5edb
15
16# We want emacs from MacPorts since this will install stuff in emacs' site-lisp and we want
17# it to go into ${prefix}'s site-lisp.
18depends_lib                     path:${prefix}/bin/emacs:emacs
19depends_run                     bin:ocaml:ocaml
20
21patchfiles                      patch-Makefile
22
23post-patch {
24        reinplace "s|__DESTROOT|${destroot}|g" ${worksrcpath}/Makefile
25}
26
27use_configure           no
28build                           {}
29
30destroot.args           SCRIPTDIR=${destroot}${prefix}/bin
31
32post-install {
33        ui_msg "To use this, put the following into your ~/.emacs:"
34        ui_msg "(setq auto-mode-alist"
35        ui_msg "  (cons '(\"\\\\.ml\[iylp\]?$\" . caml-mode) auto-mode-alist))"
36        ui_msg "(autoload 'caml-mode \"caml\" \"Major mode for editing Caml code.\" t)"
37        ui_msg "(autoload 'run-caml \"inf-caml\" \"Run an inferior Caml process.\" t)"
38}
39
40livecheck.check         regex
41livecheck.regex         {<A HREF="dist/ocaml-mode-(.*).tar.gz">Ocaml-mode \1</A>}
Note: See TracBrowser for help on using the repository browser.