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

github.setup        arqbackup arq_restore 5.7
revision            0
checksums           rmd160  770de6a7905a48f92007adb2874015d70133aac2 \
                    sha256  5b8b674bccc141e10d99874490cee0e786bc325c915eb5003f83f849e973b658 \
                    size    2299178

categories          sysutils
license             MIT
maintainers         nomaintainer

description         command-line utility for restoring from backups created by Arq

long_description    ${name} is a {*}${description}. See https://www.arqbackup.com

github.tarball_from archive

openssl.branch      1.0

patchfiles          nil.patch

post-patch {
    reinplace "s|/usr/local/ssl|[openssl::install_area]|g" ${worksrcpath}/arq_restore.xcodeproj/project.pbxproj
}

xcode.destroot.path ${prefix}/bin

post-destroot {
    set docdir ${destroot}${prefix}/share/doc/${name}
    xinstall -d ${docdir}
    copy ${worksrcpath}/README.markdown ${docdir}
}
