source: trunk/dports/lang/php-mode.el/Portfile @ 54385

Last change on this file since 54385 was 54385, checked in by billitch@…, 10 years ago

Updated maintainer address

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
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: Portfile 54385 2009-07-26 10:14:39Z billitch@macports.org $
3
4PortSystem              1.0
5
6name                    php-mode.el
7version                 1.4.0
8categories              lang editors
9maintainers             billitch
10description             PHP mode for Emacs
11long_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
17homepage                http://php-mode.sourceforge.net/
18platforms               darwin
19master_sites            sourceforge:php-mode
20distname                php-mode-${version}
21checksums               md5     b6f969215d8e1ebcca3e247fac20f2c7 \
22                        sha1    a869f3c2349f779d8efbbdf9162379c17d4fb62b \
23                        md160   6c9cebbf8ec3c0bbb6662b9a7f971937502c957a
24
25# We want emacs from MacPorts since this will install stuff in emacs' site-lisp and we want
26# it to go into ${prefix}'s site-lisp.
27depends_lib             path:${prefix}/bin/emacs:emacs
28
29use_configure           no
30
31build {
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
38destroot {
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
44post-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}
Note: See TracBrowser for help on using the repository browser.