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

Last change on this file was 151191, checked in by mf2k@…, 16 months ago

d-mode.el gtkglextmm php-mode.el planner py-cssutils speex speex-devel uif2iso: Ports abandoned. (#51782)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 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 151191 2016-08-09 19:24:56Z ryandesign@macports.org $
3
4PortSystem              1.0
5
6name                    php-mode.el
7version                 1.5.0
8categories              lang editors
9license                 GPL-3+
10maintainers             nomaintainer
11description             PHP mode for Emacs
12long_description        An Emacs major mode for editing PHP code. \
13                        Features: Syntax coloring and indenting\; \
14                        Documentation browse and search functions\; \
15                        Support for Imenu and SpeedBar\; \
16                        Customization options
17
18homepage                http://php-mode.sourceforge.net/
19platforms               darwin
20master_sites            sourceforge:php-mode
21distname                php-mode-${version}
22checksums               md5     6ddad6d150c946846a65bcecfb2cc1a0 \
23                        sha1    e559396eb0e4e47c1de8022612e820ee3e86892e \
24                        rmd160  012155b894cb8eedf83aa5f7a061c2377bb574c5
25
26# We want emacs from MacPorts since this will install stuff in emacs' site-lisp and we want
27# it to go into ${prefix}'s site-lisp.
28depends_lib             path:${prefix}/bin/emacs:emacs
29
30use_configure           no
31
32build {
33    system "cd ${worksrcpath} && \
34            emacs --batch --eval \
35              '(progn (setq load-path (cons \".\" load-path)) \
36                      (byte-compile-file \"php-mode.el\"))'"
37}
38
39destroot {
40    file mkdir ${destroot}${prefix}/share/emacs/site-lisp
41    xinstall ${worksrcpath}/php-mode.el ${destroot}${prefix}/share/emacs/site-lisp/
42    xinstall ${worksrcpath}/php-mode.elc ${destroot}${prefix}/share/emacs/site-lisp/
43}
44
45post-install {
46        ui_msg "To use this, put the following into your ~/.emacs:"
47        ui_msg "(setq auto-mode-alist"
48        ui_msg "  (cons '(\"\\\\.php\\\\w?\" . php-mode) auto-mode-alist))"
49        ui_msg "(autoload 'php-mode \"php-mode\" \"PHP mode.\" t)"
50}
Note: See TracBrowser for help on using the repository browser.