# -*- 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 PortSystem 1.0 PortGroup github 1.0 github.setup emacs-php php-mode 1.26.1 v revision 0 checksums rmd160 f70acea6b64c3e6ba9047c4fc1355ee49fa87b2c \ sha256 fdf8eb56b79b13dd3c27f11de8a9ba17489cdc47d4dcf7e04c7c019c56ca2858 \ size 132347 name php-mode.el categories lang editors platforms any supported_archs noarch license GPL-3+ maintainers {ryandesign @ryandesign} openmaintainer github.tarball_from archive 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 # 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:bin/emacs:emacs use_configure no build.dir ${worksrcpath}/lisp build { system -W ${build.dir} "emacs --batch --eval \ '(progn (setq load-path (cons \".\" load-path)) \ (byte-compile-file \"php-mode.el\"))'" } destroot { set site_lisp ${prefix}/share/emacs/site-lisp xinstall -d ${destroot}${site_lisp} xinstall -W ${build.dir} php-mode.el php-mode.elc ${destroot}${site_lisp} } notes " To use this, put the following into your ~/.emacs: (setq auto-mode-alist (cons '(\"\\\\.php\\\\w?\" . php-mode) auto-mode-alist)) (autoload 'php-mode \"php-mode\" \"PHP mode.\" t) "