# -*- 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                sharutils
version             4.15.2
categories          archivers
license             GPL-3+
platforms           darwin
maintainers         {judaew @judaew} openmaintainer

description         Makes so-called shell archives out of many files
long_description    \
    GNU shar makes so-called shell archives out of many files, preparing them \
    for transmission by electronic mail services. A shell archive is a \
    collection of files that can be unpacked by /bin/sh. A wide range of \
    features provide extensive flexibility in manufacturing shars and in \
    specifying shar smartness. For example, shar may compress files, uuencode \
    binary files, split long files and construct multi-part mailings, ensure \
    correct unsharing order, and provide simplistic checksums.

homepage            https://www.gnu.org/software/${name}/
master_sites        gnu:${name}

depends_lib         port:gettext \
                    port:libiconv

checksums           rmd160  0a4b6e6f3feb52f2c4bda648ed6e08e7ee607758 \
                    sha256  ee336e68549664e7a19b117adf02edfdeac6307f22e5ba78baca457116914637 \
                    size    2193381

post-destroot {
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} \
        ABOUT-NLS AUTHORS COPYING ChangeLog NEWS README THANKS TODO \
        ${destroot}${docdir}
}

livecheck.type      regex
livecheck.url       https://ftp.gnu.org/gnu/${name}/?C=M&O=D
livecheck.regex     ${name}-(\\d+(?:\\.\\d+)*)
