# -*- 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                gzip
version             1.15

categories          archivers
license             GPL-3+
platforms           darwin freebsd
maintainers         nomaintainer
conflicts           ncompress

description         gnu replacement utility for unix compress
long_description \
    gzip (GNU zip) is a compression utility designed to be a \
    replacement for compress. Its main advantages over compress are \
    much better compression and freedom from patented algorithms.

homepage            https://www.gzip.org/
master_sites        gnu

checksums           rmd160  0767b07c00ee462cecdadd6db89fde1c36116efe \
                    sha256  545886cf57fa88a65e967fbf705903d7fcb2567c82c7342493e82e8d7b1a210b \
                    size    1211921

depends_build       port:texinfo

installs_libs       no

configure.args      --disable-silent-rules \
                    DEFS=NO_ASM

# Bypass year 2038 awareness code that causes the universal variant to fail.
# https://trac.macports.org/ticket/55643
configure.args-append \
                    --disable-year2038

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

test.run            yes
test.target         check
