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

name                dar
version             2.7.15
revision            0
checksums           rmd160  5ac9b15e77c530f1769bd839800104ff70643cba \
                    sha256  fac56b59b78b5435ee19541ff4bd3dc329c8252ff78749ffea240f6421534bfe \
                    size    2443741

categories          archivers
maintainers         {ryandesign @ryandesign} openmaintainer
license             GPL-2+

description         Disk Archiver

long_description    dar is a shell command that backs up directory trees \
                    and files.

homepage            https://dar.sourceforge.io
master_sites        sourceforge:project/dar/dar/${version}

depends_build       path:bin/doxygen:doxygen \
                    path:bin/pkg-config:pkgconfig

depends_lib         port:argon2 \
                    port:bzip2 \
                    port:curl \
                    port:gettext \
                    port:gpgme \
                    port:libgcrypt \
                    port:libiconv \
                    port:librsync \
                    port:lz4 \
                    port:lzo2 \
                    path:lib/libssl.dylib:openssl \
                    port:xz \
                    port:zlib \
                    port:zstd

compiler.cxx_standard 2014
compiler.thread_local_storage yes

universal_variant   no

configure.args      --disable-dar-static \
                    --disable-python-binding \
                    --disable-upx

# Tests fail with "need to be run as root" and MacPorts does not have a
# "test.asroot" option yet:
# https://github.com/macports/macports-base/commit/6f0de6c40e7d3cd13c2ab274564fbf1f5e611eba
test.run            no
test.target         check
#test.asroot         yes
