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: $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name php-mode.el |
---|
7 | version 1.4.0 |
---|
8 | categories lang editors |
---|
9 | maintainers gmail.com:billitch |
---|
10 | description PHP mode for Emacs |
---|
11 | long_description An Emacs major mode for editing PHP code. \ |
---|
12 | Features: Syntax coloring and indenting\; \ |
---|
13 | Documentation browse and search functions\; \ |
---|
14 | Support for Imenu and SpeedBar\; \ |
---|
15 | Customization options |
---|
16 | |
---|
17 | homepage http://php-mode.sourceforge.net/ |
---|
18 | platforms darwin |
---|
19 | master_sites sourceforge:php-mode |
---|
20 | distname php-mode-${version} |
---|
21 | checksums md5 b6f969215d8e1ebcca3e247fac20f2c7 \ |
---|
22 | sha1 a869f3c2349f779d8efbbdf9162379c17d4fb62b \ |
---|
23 | md160 6c9cebbf8ec3c0bbb6662b9a7f971937502c957a |
---|
24 | |
---|
25 | # We want emacs from DP since this will install stuff in emacs' site-lisp and we want |
---|
26 | # it to go into ${prefix}'s site-lisp. |
---|
27 | depends_lib path:${prefix}/bin/emacs:emacs |
---|
28 | |
---|
29 | use_configure no |
---|
30 | |
---|
31 | build { |
---|
32 | system "cd ${worksrcpath} && \ |
---|
33 | emacs --batch --eval \ |
---|
34 | '(progn (setq load-path (cons \".\" load-path)) \ |
---|
35 | (byte-compile-file \"php-mode.el\"))'" |
---|
36 | } |
---|
37 | |
---|
38 | destroot { |
---|
39 | file mkdir ${destroot}${prefix}/share/emacs/site-lisp |
---|
40 | xinstall ${worksrcpath}/php-mode.el ${destroot}${prefix}/share/emacs/site-lisp/ |
---|
41 | xinstall ${worksrcpath}/php-mode.elc ${destroot}${prefix}/share/emacs/site-lisp/ |
---|
42 | } |
---|
43 | |
---|
44 | post-install { |
---|
45 | ui_msg "To use this, put the following into your ~/.emacs:" |
---|
46 | ui_msg "(setq auto-mode-alist" |
---|
47 | ui_msg " (cons '(\"\\\\.php\\\\w?\" . php-mode) auto-mode-alist))" |
---|
48 | ui_msg "(autoload 'php-mode \"php-mode\" \"PHP mode.\" t)" |
---|
49 | } |
---|