# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           github 1.0

github.setup        macports macports-contrib ad7292c628f1df350a2c731ca1bcb8a380ac2d80
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
name                mpvim
version             20191228
categories-append   editors macports
platforms           any
license             BSD
maintainers         {larryv @larryv} {cal @neverpanic} openmaintainer

description         ${name} adds MacPorts support to vim.
long_description    {*}${description} This currently includes syntax coloring for \
                    Portfiles, running lint from vim and some snippets.
homepage            https://github.com/macports/macports-contrib/tree/master/mpvim

checksums           rmd160  772e947a849bc40406143af78f2696849c9f8c31 \
                    sha256  56205ce45f5b6a9ec6011bea432d60afc1c96865e91dcb1034a8a1128bc3f3c5 \
                    size    242449

supported_archs     noarch
depends_run-append  bin:vim:vim

worksrcdir          ${worksrcdir}/${name}

use_configure       no

destroot.destdir    prefix=${destroot}${prefix}/share/vim/vimfiles
post-destroot {
    xinstall -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 ${worksrcpath}/README \
        ${destroot}${prefix}/share/doc/${name}
}

livecheck.type      none
