Ticket #29818: apache2-vim.patch

File apache2-vim.patch, 653 bytes (added by singingwolfboy@…, 13 years ago)
  • Portfile

    old new  
    106106    xinstall -d ${destroot}${docdir}
    107107    xinstall -m 0644 -W ${worksrcpath} ABOUT_APACHE CHANGES LICENSE NOTICE README \
    108108        README.platforms ROADMAP VERSIONING ${destroot}${docdir}
     109
     110    # add info for vim
     111    set vimdir ${destroot}${prefix}/share/vim/vim73
     112    set fp [open "${vimdir}/ftdetect/apache2.vim" "w"]
     113    puts $fp "au BufNewFile,BufRead ${prefix}/apache2/conf/original/*.conf,${prefix}/apache/conf/original/extra/*.conf,${prefix}/apache/conf/extra/*.conf setf apache"
     114    close $fp
    109115}
    110116
    111117post-activate {