# -*- 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
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\; \
homepage http://php-mode.sourceforge.net/
master_sites sourceforge:php-mode
distname php-mode-${version}
checksums md5 6ddad6d150c946846a65bcecfb2cc1a0 \
sha1 e559396eb0e4e47c1de8022612e820ee3e86892e \
rmd160 012155b894cb8eedf83aa5f7a061c2377bb574c5
# 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
system "cd ${worksrcpath} && \
'(progn (setq load-path (cons \".\" load-path)) \
(byte-compile-file \"php-mode.el\"))'"
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/
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)"