# -*- 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
PortGroup           makefile 1.0

github.setup        yadm-dev yadm 3.3.0
github.tarball_from archive
revision            1

categories          sysutils
platforms           any
license             GPL-3+
maintainers         {kollar.me:laszlo @lkollar} openmaintainer

description         Yet Another Dotfiles Manager

long_description    yadm is a tool for managing dotfiles. \
                    yadm is like having a version of Git that only \
                    operates on your dotfiles. If you know how to use \
                    Git, you already know how to use yadm.

homepage            https://yadm.io

checksums           sha256  a977836ee874fece3d69b5a8f7436e6ce4e6bf8d2520f8517c128281cc6b101d \
                    rmd160  7a0e7652fe3ea9faf34950b4214f4a486192bf45 \
                    size    111813

installs_libs       no
supported_archs     noarch
makefile.has_destdir \
                    yes

post-destroot {
    # Install shell completions
    xinstall -d ${destroot}${prefix}/share/bash-completion/completions
    xinstall ${worksrcpath}/completion/bash/${name} \
        ${destroot}${prefix}/share/bash-completion/completions/

    xinstall -d ${destroot}${prefix}/share/fish/vendor_completions.d/
    xinstall ${worksrcpath}/completion/fish/${name}.fish \
        ${destroot}${prefix}/share/fish/vendor_completions.d/

    xinstall -d ${destroot}${prefix}/share/zsh/site-functions
    xinstall ${worksrcpath}/completion/zsh/_${name} \
        ${destroot}${prefix}/share/zsh/site-functions/
}
