[39893] trunk/dports/lang

ryandesign at macports.org ryandesign at macports.org
Wed Sep 10 14:14:42 PDT 2008


Revision: 39893
          http://trac.macports.org/changeset/39893
Author:   ryandesign at macports.org
Date:     2008-09-10 14:14:39 -0700 (Wed, 10 Sep 2008)
Log Message:
-----------
php-mode.el: new port, version 1.4.0; closes #16229

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

Added: trunk/dports/lang/php-mode.el/Portfile
===================================================================
--- trunk/dports/lang/php-mode.el/Portfile	                        (rev 0)
+++ trunk/dports/lang/php-mode.el/Portfile	2008-09-10 21:14:39 UTC (rev 39893)
@@ -0,0 +1,49 @@
+# -*- 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                    php-mode.el
+version                 1.4.0
+categories              lang editors
+maintainers             gmail.com:billitch
+description             PHP mode for Emacs
+long_description        An Emacs major mode for editing PHP code. \
+                        Features: Syntax coloring and indenting\; \
+                        Documentation browse and search functions\; \
+                        Support for Imenu and SpeedBar\; \
+                        Customization options
+
+homepage                http://php-mode.sourceforge.net/
+platforms               darwin
+master_sites            sourceforge:php-mode
+distname                php-mode-${version}
+checksums               md5     b6f969215d8e1ebcca3e247fac20f2c7 \
+                        sha1    a869f3c2349f779d8efbbdf9162379c17d4fb62b \
+                        md160   6c9cebbf8ec3c0bbb6662b9a7f971937502c957a
+
+# We want emacs from MacPorts since this will install stuff in emacs' site-lisp and we want
+# it to go into ${prefix}'s site-lisp.
+depends_lib             path:${prefix}/bin/emacs:emacs
+
+use_configure           no
+
+build {
+    system "cd ${worksrcpath} && \
+            emacs --batch --eval \
+              '(progn (setq load-path (cons \".\" load-path)) \
+                      (byte-compile-file \"php-mode.el\"))'"
+}
+
+destroot {
+    file mkdir ${destroot}${prefix}/share/emacs/site-lisp
+    xinstall ${worksrcpath}/php-mode.el ${destroot}${prefix}/share/emacs/site-lisp/
+    xinstall ${worksrcpath}/php-mode.elc ${destroot}${prefix}/share/emacs/site-lisp/
+}
+
+post-install {
+        ui_msg "To use this, put the following into your ~/.emacs:"
+        ui_msg "(setq auto-mode-alist"
+        ui_msg "  (cons '(\"\\\\.php\\\\w?\" . php-mode) auto-mode-alist))"
+        ui_msg "(autoload 'php-mode \"php-mode\" \"PHP mode.\" t)"
+}


Property changes on: trunk/dports/lang/php-mode.el/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080910/8589fe95/attachment.html 


More information about the macports-changes mailing list