1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id: $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name d-mode.el |
---|
7 | version 2.0.4 |
---|
8 | revision 0 |
---|
9 | categories lang editors |
---|
10 | maintainers billitch@gmail.com |
---|
11 | description D Programming Language mode for (X)Emacs |
---|
12 | |
---|
13 | long_description This mode supports most of D's syntax, \ |
---|
14 | including nested /+ +/ comments and \ |
---|
15 | backquote `string literals`. \ |
---|
16 | \ |
---|
17 | This mode has been dubbed "2.0" because \ |
---|
18 | it is a complete rewrite from scratch. \ |
---|
19 | The previous d-mode was based on \ |
---|
20 | cc-mode 5.28 or so. This version is \ |
---|
21 | based on the cc-mode 5.30 derived mode \ |
---|
22 | example by Martin Stjernholm, 2002. \ |
---|
23 | |
---|
24 | homepage http://www.prowiki.org/wiki4d/wiki.cgi?EditorSupport/EmacsDMode |
---|
25 | platforms darwin |
---|
26 | master_sites http://www.billbaxter.com/etc/ |
---|
27 | distname d-mode.el |
---|
28 | distfiles ${distname} |
---|
29 | checksums md5 48da4b1713f5cac8db745dd31bc0a7cd \ |
---|
30 | sha1 d8528a41b16d1ca288df5f5c790e276f2e76ed4f \ |
---|
31 | rmd160 4da89b5c5d5f354d3718715bc5fdc3a33dd9a468 |
---|
32 | use_configure no |
---|
33 | |
---|
34 | depends_lib path:${prefix}/bin/emacs:emacs |
---|
35 | |
---|
36 | extract { |
---|
37 | file mkdir ${worksrcpath} |
---|
38 | file copy ${prefix}/var/macports/distfiles/${name}/${distname} ${worksrcpath} |
---|
39 | } |
---|
40 | |
---|
41 | build { |
---|
42 | system "cd ${worksrcpath} && \ |
---|
43 | emacs --batch --eval \ |
---|
44 | '(progn (setq load-path (cons \".\" load-path)) \ |
---|
45 | (byte-compile-file \"d-mode.el\"))'" |
---|
46 | } |
---|
47 | |
---|
48 | destroot { |
---|
49 | file mkdir ${destroot}${prefix}/share/emacs/site-lisp |
---|
50 | xinstall ${worksrcpath}/d-mode.el ${destroot}${prefix}/share/emacs/site-lisp/ |
---|
51 | xinstall ${worksrcpath}/d-mode.elc ${destroot}${prefix}/share/emacs/site-lisp/ |
---|
52 | } |
---|
53 | |
---|
54 | post-install { |
---|
55 | ui_msg "Put the following into your ~/.emacs:" |
---|
56 | ui_msg "(autoload 'd-mode \"d-mode\" \"Major mode for editing D code.\" t)" |
---|
57 | ui_msg "(add-to-list 'auto-mode-alist '(\"\\\\.d\[i]?\\\\'\" . d-mode))" |
---|
58 | } |
---|