# -*- 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        kholtman afio 2.5.2 v
revision            0
checksums           rmd160  a0da5fafb6cee3fac054bbbb74eacc8e24cd7c7f \
                    sha256  c64ca14109df547e25702c9f3a9ca877881cd4bf38dcbe90fbd09c8d294f42b9 \
                    size    194030

categories          archivers
maintainers         {puffin.lb.shuttle.de:michael.klein @mklein-de}

description         Archiver & backup program with builtin compression

long_description    Afio makes cpio-format archives. It deals somewhat \
                    gracefully with input data corruption, supports \
                    multi-volume archives during interactive operation, and \
                    can make compressed archives that are much safer than \
                    compressed tar or cpio archives. Afio is best used as \
                    an \"archive engine\" in a backup script.

github.tarball_from archive

patchfiles          Makefile.patch \
                    implicit.patch

# cc1: error: unrecognized command line option "-Wno-unused-result"
patchfiles-append   patch-cflags.diff

makefile.override-append \
                    PREFIX

build.target

post-destroot {
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} ANNOUNCE-${version} HISTORY README SCRIPTS ${destroot}${docdir}
}
