Ticket #6435: Portfile

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

Portfile for nxml-mode-20041004

Line 
1# $Id: $
2PortSystem      1.0
3
4name            nxml-mode
5version         20041004
6categories      lang editors
7maintainers     evenson@panix.com
8
9description             An Emacs mode for editing XML files
10long_description        A new major mode for GNU Emacs for editing XML documents. It \
11                        supports editing well-formed XML documents and also provides \
12                        schema-sensitive editing of XML documents using RELAX NG Compact \
13                        Syntax.
14
15
16homepage        http://www.thaiopensource.com/nxml-mode/
17master_sites    http://www.thaiopensource.com/download/
18checksums       sha1 5d21ca111957f86c9c237af9161f7ca482a1ef9f
19
20use_configure   no
21
22depends_lib     path:${prefix}/bin/emacs:emacs
23
24build.target    all
25build.args      "EMACS=${prefix}/bin/emacs"
26
27destroot {
28  cd ${worksrcpath}
29  set site_lisp_dest ${destroot}${prefix}/share/emacs/site-lisp/nxml-mode
30  xinstall -m 755 -d ${site_lisp_dest}
31  foreach file [glob *.el *.elc] {
32    xinstall -m 644 ${file} ${site_lisp_dest}
33  }
34  file copy char-name ${site_lisp_dest}
35  file copy schema ${site_lisp_dest}
36
37  file copy nxml-mode.info ${destroot}${prefix}/share/info
38}
39       
40post-activate {
41  ui_msg "To use this mode, put the following in your ~/.emacs:"
42  ui_msg "(load \"rng-auto.el\")"
43  ui_msg ""
44  ui_msg "To automatically visit files in nxml-mode add some flavor of:"
45  ui_msg "(add-to-list 'auto-mode-alist "
46  ui_msg "  '(\"\\.\\(xml\\|xsl\\|rng\\|xhtml\\)\\'\" . nxml-mode) nil)"
47}
48
49
50