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

Last change on this file was 110104, checked in by jmr@…, 4 years ago

ocaml-mode.el: license, noarch

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