# -*- 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             2.1.6
revision            0

checksums           rmd160  29a988992237211ab640be671ea77723bdf0f042 \
                    sha256  320c7c3e719f4dae63ebee774559ed3c76b91032406363500b77ef9b2463db86 \
                    size    981917

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  314

depends_run-append  \
                    port:borgbackup \
                    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}
}

notes "If you are upgrading from borgmatic < 2.1, see https://projects.torsion.org/borgmatic-collective/borgmatic/releases/tag/2.1.0 for a list of minor breaking changes."
