PortSystem          1.0

name                gzip
version             1.9
categories          archivers
license             GPL-3+
installs_libs       no
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            http://www.gzip.org/
master_sites        gnu

checksums           rmd160  c0cdc920d71f049ff70c54b1386f4b62d3b422c7 \
                    sha256  5d2d3a3432ef32f24cdb060d278834507b481a75adeca18850c73592f778f6ad

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.
configure.args-append \
                    TIME_T_32_BIT_OK=yes

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

test.run            yes
test.target         check