# -*- 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

PortSystem          1.0
PortGroup           python 1.0

name                borgmatic
version             1.9.13
revision            0

checksums           rmd160  d446a45a8ee9ae4bf1bfc40a907dcd68aaea49b9 \
                    sha256  a30cfa47dae10cd04592f68d9d7fd46d10235e62aeb5195877fb326e0fc89bf9 \
                    size    655690

categories          sysutils
platforms           {darwin any}
supported_archs     noarch
license             GPL-3
maintainers         {cal @neverpanic} openmaintainer

description         convenience wrapper around borgbackup
long_description    \
    borgmatic is simple, configuration-driven backup software for servers and \
    workstations. Protect your files with client-side encryption. Backup your \
    databases too. Monitor it all with integrated third-party services.

homepage            https://torsion.org/borgmatic/

python.default_version  312

depends_build-append \
                    port:py${python.version}-setuptools

depends_run-append  \
                    port:borgbackup \
                    port:py${python.version}-colorama \
                    port:py${python.version}-jsonschema \
                    port:py${python.version}-packaging \
                    port:py${python.version}-requests \
                    port:py${python.version}-ruamel-yaml \
                    port:py${python.version}-ruamel-yaml-clib

post-destroot {
    set docdir ${destroot}${prefix}/share/doc/${name}
    xinstall -d ${docdir}

    xinstall -m 0644 \
        ${worksrcpath}/AUTHORS \
        ${worksrcpath}/LICENSE \
        ${docdir}
}
