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

Last change on this file was 151191, checked in by mf2k@…, 12 months ago

d-mode.el gtkglextmm php-mode.el planner py-cssutils speex speex-devel uif2iso: Ports abandoned. (#51782)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
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: Portfile 151191 2016-08-09 19:24:56Z ryandesign@macports.org $
3
4PortSystem              1.0
5
6name                    d-mode.el
7version                 2.0.4
8categories              lang editors
9maintainers             nomaintainer
10description             D Programming Language mode for (X)Emacs
11
12long_description        This mode supports most of D's syntax, \
13                        including nested /+ +/ comments and \
14                        backquote `string literals`. \
15                        \
16                        This mode has been dubbed "2.0" because \
17                        it is a complete rewrite from scratch. \
18                        The previous d-mode was based on \
19                        cc-mode 5.28 or so. This version is \
20                        based on the cc-mode 5.30 derived mode \
21                        example by Martin Stjernholm, 2002.
22
23homepage                http://www.prowiki.org/wiki4d/wiki.cgi?EditorSupport/EmacsDMode
24platforms               darwin
25master_sites            http://www.billbaxter.com/etc/
26distname                d-mode.el
27distfiles               ${distname}
28checksums               md5     48da4b1713f5cac8db745dd31bc0a7cd \
29                        sha1    d8528a41b16d1ca288df5f5c790e276f2e76ed4f \
30                        rmd160  4da89b5c5d5f354d3718715bc5fdc3a33dd9a468
31use_configure           no
32
33depends_lib             path:${prefix}/bin/emacs:emacs
34
35extract.mkdir yes
36extract {
37    copy ${distpath}/${distname} ${worksrcpath}
38}
39
40build {
41    system "cd ${worksrcpath} && \
42            emacs --batch --eval \
43              '(progn (setq load-path (cons \".\" load-path)) \
44                      (byte-compile-file \"d-mode.el\"))'"
45}
46
47destroot {
48    xinstall -d -m 755 ${destroot}${prefix}/share/emacs/site-lisp
49    xinstall ${worksrcpath}/d-mode.el ${destroot}${prefix}/share/emacs/site-lisp/
50    xinstall ${worksrcpath}/d-mode.elc ${destroot}${prefix}/share/emacs/site-lisp/
51}
52
53post-install {
54    ui_msg "Put the following into your ~/.emacs:"
55    ui_msg "(autoload 'd-mode \"d-mode\" \"Major mode for editing D code.\" t)"
56    ui_msg "(add-to-list 'auto-mode-alist '(\"\\\\.d\[i]?\\\\'\" . d-mode))"
57}
Note: See TracBrowser for help on using the repository browser.