1 | # $Id: $ |
---|
2 | PortSystem 1.0 |
---|
3 | |
---|
4 | name nxml-mode |
---|
5 | version 20041004 |
---|
6 | categories lang editors |
---|
7 | maintainers evenson@panix.com |
---|
8 | |
---|
9 | description An Emacs mode for editing XML files |
---|
10 | long_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 | |
---|
16 | homepage http://www.thaiopensource.com/nxml-mode/ |
---|
17 | master_sites http://www.thaiopensource.com/download/ |
---|
18 | checksums sha1 5d21ca111957f86c9c237af9161f7ca482a1ef9f |
---|
19 | |
---|
20 | use_configure no |
---|
21 | |
---|
22 | depends_lib path:${prefix}/bin/emacs:emacs |
---|
23 | |
---|
24 | build.target all |
---|
25 | build.args "EMACS=${prefix}/bin/emacs" |
---|
26 | |
---|
27 | destroot { |
---|
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 | |
---|
40 | post-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 | |
---|