# -*- 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.14
revision            0

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  4955250a3a4713538a4bec03d768be76b19063ca \
                    sha256  613d6ea44f1248d7370c7ccdeee0dd0017a09e6c39de894b3c6f03f981191c6b \
                    size    1369513

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
