Ticket #36095: Portfile.diff
File Portfile.diff, 1.4 KB (added by tom@…, 12 years ago) |
---|
-
Portfile
old new 11 11 maintainers explanatorygap.net:nigel puppetlabs.com:nigel openmaintainer 12 12 supported_archs noarch 13 13 14 variant emacs description {Install puppet mode for emacs.} { 15 depends_lib-append port:emacs 16 } 17 14 18 description Puppet is a configuration management solution. 15 19 16 20 long_description Puppet is a configuration management solution. \ … … 50 54 xinstall -m 755 -d ${etcexamplesdestdir} 51 55 eval xinstall -m 644 [glob ${worksrcpath}/examples/etc/puppet/*] \ 52 56 ${etcexamplesdestdir} 57 58 if {[variant_isset emacs]} { 59 set emacsdir ${destroot}${prefix}/share/emacs/site-lisp 60 xinstall -m 755 -d ${emacsdir} 61 eval xinstall -m 644 ${worksrcpath}/ext/emacs/puppet-mode.el ${emacsdir} 62 } 53 63 } 64 65 post-activate { 66 67 if {[variant_isset emacs]} { 68 ui_msg "To use the puppet mode for emacs, put the following into your ~/.emacs:" 69 ui_msg "(autoload 'puppet-mode \"puppet-mode\" \"Major mode for editing puppet manifests\")" 70 ui_msg "(add-to-list 'auto-mode-alist '(\"\\\\.pp$\" . puppet-mode))" 71 } 72 }