[38678] trunk/dports/lang

jmr at macports.org jmr at macports.org
Mon Jul 28 10:10:42 PDT 2008


Revision: 38678
          http://trac.macosforge.org/projects/macports/changeset/38678
Author:   jmr at macports.org
Date:     2008-07-28 10:10:42 -0700 (Mon, 28 Jul 2008)
Log Message:
-----------
New port: d-mode.el (#15792)

Added Paths:
-----------
    trunk/dports/lang/d-mode.el/
    trunk/dports/lang/d-mode.el/Portfile

Added: trunk/dports/lang/d-mode.el/Portfile
===================================================================
--- trunk/dports/lang/d-mode.el/Portfile	                        (rev 0)
+++ trunk/dports/lang/d-mode.el/Portfile	2008-07-28 17:10:42 UTC (rev 38678)
@@ -0,0 +1,57 @@
+# -*- 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
+# $Id$
+
+PortSystem              1.0
+
+name                    d-mode.el
+version                 2.0.4
+categories              lang editors
+maintainers             gmail.com:billitch
+description             D Programming Language mode for (X)Emacs
+
+long_description        This mode supports most of D's syntax, \
+                        including nested /+ +/ comments and \
+                        backquote `string literals`. \
+                        \
+                        This mode has been dubbed "2.0" because \
+                        it is a complete rewrite from scratch. \
+                        The previous d-mode was based on \
+                        cc-mode 5.28 or so. This version is \
+                        based on the cc-mode 5.30 derived mode \
+                        example by Martin Stjernholm, 2002. \
+
+homepage                http://www.prowiki.org/wiki4d/wiki.cgi?EditorSupport/EmacsDMode
+platforms               darwin
+master_sites            http://www.billbaxter.com/etc/
+distname                d-mode.el
+distfiles               ${distname}
+checksums               md5     48da4b1713f5cac8db745dd31bc0a7cd \
+                        sha1    d8528a41b16d1ca288df5f5c790e276f2e76ed4f \
+                        rmd160  4da89b5c5d5f354d3718715bc5fdc3a33dd9a468
+use_configure           no
+
+depends_lib             path:${prefix}/bin/emacs:emacs
+
+extract {
+    file mkdir ${worksrcpath}
+    file copy ${prefix}/var/macports/distfiles/${name}/${distname} ${worksrcpath}
+}
+
+build {
+    system "cd ${worksrcpath} && \
+            emacs --batch --eval \
+              '(progn (setq load-path (cons \".\" load-path)) \
+                      (byte-compile-file \"d-mode.el\"))'"
+}
+
+destroot {
+    file mkdir ${destroot}${prefix}/share/emacs/site-lisp
+    xinstall ${worksrcpath}/d-mode.el ${destroot}${prefix}/share/emacs/site-lisp/
+    xinstall ${worksrcpath}/d-mode.elc ${destroot}${prefix}/share/emacs/site-lisp/
+}
+
+post-install {
+    ui_msg "Put the following into your ~/.emacs:"
+    ui_msg "(autoload 'd-mode \"d-mode\" \"Major mode for editing D code.\" t)"
+    ui_msg "(add-to-list 'auto-mode-alist '(\"\\\\.d\[i]?\\\\'\" . d-mode))"
+}


Property changes on: trunk/dports/lang/d-mode.el/Portfile
___________________________________________________________________
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080728/54e3aa89/attachment-0001.html 


More information about the macports-changes mailing list